diff options
| author | Mark Otto <[email protected]> | 2014-02-08 16:52:22 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2014-02-08 16:52:22 -0800 |
| commit | e9199718d64dadc22d61b4cea8c77a2307455823 (patch) | |
| tree | b10f0174a9d564da40df55d658136fef74b6adb9 /less/type.less | |
| parent | 4787a69efbe0fcd81228781b3c91dfe198aa0f1b (diff) | |
| parent | 7f88009394e72395aa7a458ae442b0c3037dbd15 (diff) | |
| download | bootstrap-e9199718d64dadc22d61b4cea8c77a2307455823.tar.xz bootstrap-e9199718d64dadc22d61b4cea8c77a2307455823.zip | |
Merge branch 'master' into fix-12154
Conflicts:
dist/css/bootstrap.css.map
dist/css/bootstrap.min.css
docs/dist/css/bootstrap.css.map
docs/dist/css/bootstrap.min.css
Diffstat (limited to 'less/type.less')
| -rw-r--r-- | less/type.less | 56 |
1 files changed, 13 insertions, 43 deletions
diff --git a/less/type.less b/less/type.less index 91496dc8c..ca574edc8 100644 --- a/less/type.less +++ b/less/type.less @@ -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 @@ -129,34 +114,19 @@ cite { font-style: normal; } // Given the contrast here, this is the only class to have its color inverted // automatically. color: #fff; - background-color: @brand-primary; - a&:hover { - background-color: darken(@brand-primary, 10%); - } + .bg-variant(@brand-primary); } .bg-success { - background-color: @state-success-bg; - a&:hover { - background-color: darken(@state-success-bg, 10%); - } + .bg-variant(@state-success-bg); } .bg-info { - background-color: @state-info-bg; - a&:hover { - background-color: darken(@state-info-bg, 10%); - } + .bg-variant(@state-info-bg); } .bg-warning { - background-color: @state-warning-bg; - a&:hover { - background-color: darken(@state-warning-bg, 10%); - } + .bg-variant(@state-warning-bg); } .bg-danger { - background-color: @state-danger-bg; - a&:hover { - background-color: darken(@state-danger-bg, 10%); - } + .bg-variant(@state-danger-bg); } @@ -263,7 +233,7 @@ abbr[data-original-title] { blockquote { padding: (@line-height-computed / 2) @line-height-computed; margin: 0 0 @line-height-computed; - font-size: (@font-size-base * 1.25); + font-size: @blockquote-font-size; border-left: 5px solid @blockquote-border-color; p, @@ -274,7 +244,7 @@ blockquote { } } - // Deprecating small and .small for v3.1 + // Note: Deprecated small and .small as of v3.1.0 // Context: https://github.com/twbs/bootstrap/issues/11660 footer, small, @@ -292,7 +262,7 @@ blockquote { // Opposite alignment of blockquote // -// Heads up: `blockquote.pull-right` has been deprecated as of v3.1. +// Heads up: `blockquote.pull-right` has been deprecated as of v3.1.0. .blockquote-reverse, blockquote.pull-right { padding-right: 15px; |
