Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bootstrap
Commits
906d04a4
Commit
906d04a4
authored
Jul 07, 2013
by
Mark Otto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8407 from cvrebert/label-variant-mixin
extract .label-variant mix-in
parents
65141338
a7dd1088
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
28 deletions
+16
-28
less/labels.less
less/labels.less
+4
-28
less/mixins.less
less/mixins.less
+12
-0
No files found.
less/labels.less
View file @
906d04a4
...
@@ -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%);
}
}
}
}
less/mixins.less
View file @
906d04a4
...
@@ -406,6 +406,18 @@
...
@@ -406,6 +406,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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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