mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-16 10:34:07 +02:00
Remove all #font mixins; replace single instance of its use in Bootstrap with the @font-family-monospace variable
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
code,
|
code,
|
||||||
pre {
|
pre {
|
||||||
padding: 0 3px 2px;
|
padding: 0 3px 2px;
|
||||||
#font > #family > .monospace;
|
font-family: @font-family-monospace;
|
||||||
font-size: (@font-size-base - 2);
|
font-size: (@font-size-base - 2);
|
||||||
color: @grayDark;
|
color: @grayDark;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
|
@@ -79,41 +79,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// FONTS
|
|
||||||
// --------------------------------------------------
|
|
||||||
|
|
||||||
#font {
|
|
||||||
#family {
|
|
||||||
.serif() {
|
|
||||||
font-family: @font-family-serif;
|
|
||||||
}
|
|
||||||
.sans-serif() {
|
|
||||||
font-family: @font-family-sans-serif;
|
|
||||||
}
|
|
||||||
.monospace() {
|
|
||||||
font-family: @font-family-monospace;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.shorthand(@size: @font-size-base, @weight: normal, @lineHeight: @line-height-base) {
|
|
||||||
font-size: @size;
|
|
||||||
font-weight: @weight;
|
|
||||||
line-height: @lineHeight;
|
|
||||||
}
|
|
||||||
.serif(@size: @font-size-base, @weight: normal, @lineHeight: @line-height-base) {
|
|
||||||
#font > #family > .serif;
|
|
||||||
#font > .shorthand(@size, @weight, @lineHeight);
|
|
||||||
}
|
|
||||||
.sans-serif(@size: @font-size-base, @weight: normal, @lineHeight: @line-height-base) {
|
|
||||||
#font > #family > .sans-serif;
|
|
||||||
#font > .shorthand(@size, @weight, @lineHeight);
|
|
||||||
}
|
|
||||||
.monospace(@size: @font-size-base, @weight: normal, @lineHeight: @line-height-base) {
|
|
||||||
#font > #family > .monospace;
|
|
||||||
#font > .shorthand(@size, @weight, @lineHeight);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// CSS3 PROPERTIES
|
// CSS3 PROPERTIES
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user