Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
a7dd1088
Commit
a7dd1088
authored
11 years ago
by
Chris Rebert
Browse files
Options
Download
Email Patches
Plain Diff
extract .label-variant mix-in
parent
95655e72
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
less/labels.less
+4
-28
less/labels.less
less/mixins.less
+12
-0
less/mixins.less
with
16 additions
and
28 deletions
+16
-28
less/labels.less
+
4
-
28
View file @
a7dd1088
...
@@ -30,41 +30,17 @@
...
@@ -30,41 +30,17 @@
// Colors
// Colors
// Contextual variations (linked labels get darker on :hover)
// Contextual variations (linked labels get darker on :hover)
.label-danger {
.label-danger {
background-color: @label-danger-bg;
.label-variant(@label-danger-bg);
&[href] {
&:hover,
&:focus {
background-color: darken(@label-danger-bg, 10%);
}
}
}
}
.label-success {
.label-success {
background-color: @label-success-bg;
.label-variant(@label-success-bg);
&[href] {
&:hover,
&:focus {
background-color: darken(@label-success-bg, 10%);
}
}
}
}
.label-warning {
.label-warning {
background-color: @label-warning-bg;
.label-variant(@label-warning-bg);
&[href] {
&:hover,
&:focus {
background-color: darken(@label-warning-bg, 10%);
}
}
}
}
.label-info {
.label-info {
background-color: @label-info-bg;
.label-variant(@label-info-bg);
&[href] {
&:hover,
&:focus {
background-color: darken(@label-info-bg, 10%);
}
}
}
}
This diff is collapsed.
Click to expand it.
less/mixins.less
+
12
-
0
View file @
a7dd1088
...
@@ -392,6 +392,18 @@
...
@@ -392,6 +392,18 @@
}
}
}
}
// Labels
// -------------------------
.label-variant(@color) {
background-color: @color;
&[href] {
&:hover,
&:focus {
background-color: darken(@color, 10%);
}
}
}
// Navbar vertical align
// Navbar vertical align
// -------------------------
// -------------------------
// Vertically center elements in the navbar.
// Vertically center elements in the navbar.
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets