0
0
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:
Mark Otto 2013-03-17 11:34:27 -07:00
parent 6012d8221b
commit 4aba489cfd
2 changed files with 1 additions and 36 deletions

View File

@ -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;

View File

@ -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
// --------------------------------------------------