aboutsummaryrefslogtreecommitdiff
path: root/less/type.less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-12-15 14:10:48 -0800
committerMark Otto <[email protected]>2013-12-15 14:10:48 -0800
commit122245fe87bbd293a82ffa6b9c37d8b174b3dc0f (patch)
tree35679d94b5787a2ffaf712caa0fab3bf47dd8fa3 /less/type.less
parent0fcaca86b57bf3a4fa2c8f709e90499c92e0db73 (diff)
parent55f6beb4278979155549e17da6e87a2548ec0b88 (diff)
downloadbootstrap-122245fe87bbd293a82ffa6b9c37d8b174b3dc0f.tar.xz
bootstrap-122245fe87bbd293a82ffa6b9c37d8b174b3dc0f.zip
Merge branch 'master' into pr/11676
Conflicts: less/modals.less
Diffstat (limited to 'less/type.less')
-rw-r--r--less/type.less54
1 files changed, 45 insertions, 9 deletions
diff --git a/less/type.less b/less/type.less
index ac07ac7ce..6c418a489 100644
--- a/less/type.less
+++ b/less/type.less
@@ -61,7 +61,7 @@ p {
.lead {
margin-bottom: @line-height-computed;
- font-size: floor(@font-size-base * 1.15);
+ font-size: floor((@font-size-base * 1.15));
font-weight: 200;
line-height: 1.4;
@@ -81,7 +81,13 @@ small,
// Undo browser default styling
cite { font-style: normal; }
-// Contextual emphasis
+// Alignment
+.text-left { text-align: left; }
+.text-right { text-align: right; }
+.text-center { text-align: center; }
+.text-justify { text-align: justify; }
+
+// Contextual colors
.text-muted {
color: @text-muted;
}
@@ -116,10 +122,42 @@ cite { font-style: normal; }
}
}
-// Alignment
-.text-left { text-align: left; }
-.text-right { text-align: right; }
-.text-center { text-align: center; }
+// Contextual backgrounds
+// For now we'll leave these alongside the text classes until v4 when we can
+// safely shift things around (per SemVer rules).
+.bg-primary {
+ // Given the contrast here, this is the only class to have it's color inverted
+ // automatically.
+ color: #fff;
+ background-color: @brand-primary;
+ a&:hover {
+ background-color: darken(@brand-primary, 10%);
+ }
+}
+.bg-warning {
+ background-color: @state-warning-bg;
+ a&:hover {
+ background-color: darken(@state-warning-bg, 10%);
+ }
+}
+.bg-danger {
+ background-color: @state-danger-bg;
+ a&:hover {
+ background-color: darken(@state-danger-bg, 10%);
+ }
+}
+.bg-success {
+ background-color: @state-success-bg;
+ a&:hover {
+ background-color: darken(@state-success-bg, 10%);
+ }
+}
+.bg-info {
+ background-color: @state-info-bg;
+ a&:hover {
+ background-color: darken(@state-info-bg, 10%);
+ }
+}
// Page header
@@ -201,7 +239,7 @@ dd {
}
dd {
margin-left: @component-offset-horizontal;
- .clearfix(); // Clear the floated `dt` if an empty `dd` is present
+ &:extend(.clearfix all); // Clear the floated `dt` if an empty `dd` is present
}
}
}
@@ -228,8 +266,6 @@ blockquote {
border-left: 5px solid @blockquote-border-color;
p {
font-size: (@font-size-base * 1.25);
- font-weight: 300;
- line-height: 1.25;
}
p:last-child {
margin-bottom: 0;