mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-17 09:52:29 +01:00
Remove all #font mixins; replace single instance of its use in Bootstrap with the @font-family-monospace variable
This commit is contained in:
parent
6012d8221b
commit
4aba489cfd
@ -7,7 +7,7 @@
|
||||
code,
|
||||
pre {
|
||||
padding: 0 3px 2px;
|
||||
#font > #family > .monospace;
|
||||
font-family: @font-family-monospace;
|
||||
font-size: (@font-size-base - 2);
|
||||
color: @grayDark;
|
||||
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
|
||||
// --------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user