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
b886fd2f
Commit
b886fd2f
authored
11 years ago
by
Chris Rebert
Browse files
Options
Download
Email Patches
Plain Diff
refactoring: add & use .text-emphasis-variant() mixin
parent
0ef8d1ba
1 merge request
!12247
refactoring: add & use .text-emphasis-variant() mixin
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
less/mixins.less
+9
-0
less/mixins.less
less/type.less
+5
-20
less/type.less
with
14 additions
and
20 deletions
+14
-20
less/mixins.less
+
9
-
0
View file @
b886fd2f
...
...
@@ -577,6 +577,15 @@
}
}
// Typography
// -------------------------
.text-emphasis-variant(@color) {
color: @color;
&:hover {
color: darken(@color, 10%);
}
}
// Navbar vertical align
// -------------------------
// Vertically center elements in the navbar.
...
...
This diff is collapsed.
Click to expand it.
less/type.less
+
5
-
20
View file @
b886fd2f
...
...
@@ -92,34 +92,19 @@ cite { font-style: normal; }
color: @text-muted;
}
.text-primary {
color: @brand-primary;
&:hover {
color: darken(@brand-primary, 10%);
}
.text-emphasis-variant(@brand-primary);
}
.text-success {
color: @state-success-text;
&:hover {
color: darken(@state-success-text, 10%);
}
.text-emphasis-variant(@state-success-text);
}
.text-info {
color: @state-info-text;
&:hover {
color: darken(@state-info-text, 10%);
}
.text-emphasis-variant(@state-info-text);
}
.text-warning {
color: @state-warning-text;
&:hover {
color: darken(@state-warning-text, 10%);
}
.text-emphasis-variant(@state-warning-text);
}
.text-danger {
color: @state-danger-text;
&:hover {
color: darken(@state-danger-text, 10%);
}
.text-emphasis-variant(@state-danger-text);
}
// Contextual backgrounds
...
...
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