diff options
| author | Mark Otto <[email protected]> | 2012-11-30 14:45:25 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2012-11-30 14:45:25 -0800 |
| commit | b0e2b5813db753bdfa3ee018ccdd73e78a69457e (patch) | |
| tree | 817eae216acdf4986a59137da9aa65a6764fbd88 /less/variables.less | |
| parent | 7a3d15eb210cc9343875760bfa575a9273244ed3 (diff) | |
| download | bootstrap-b0e2b5813db753bdfa3ee018ccdd73e78a69457e.tar.xz bootstrap-b0e2b5813db753bdfa3ee018ccdd73e78a69457e.zip | |
more consistent variable naming patterns
Diffstat (limited to 'less/variables.less')
| -rw-r--r-- | less/variables.less | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/less/variables.less b/less/variables.less index 26a3ca70c..6623b288b 100644 --- a/less/variables.less +++ b/less/variables.less @@ -46,30 +46,30 @@ @font-family-sans-serif: "Helvetica Neue", Helvetica, Arial, sans-serif; @font-family-serif: Georgia, "Times New Roman", Times, serif; @font-family-monospace: Monaco, Menlo, Consolas, "Courier New", monospace; +@font-family-base: @font-family-sans-serif; -@base-font-size: 14px; -@base-font-family: @font-family-sans-serif; -@base-line-height: 20px; +@font-size-base: 14px; +@font-size-large: @font-size-base * 1.25; // ~18px +@font-size-small: @font-size-base * 0.85; // ~12px +@font-size-mini: @font-size-base * 0.75; // ~11px -@headings-font-family: inherit; // empty to use BS default, @base-font-family +@line-height-base: 20px; + +@headings-font-family: inherit; // empty to use BS default, @font-family-base @headings-font-weight: bold; // instead of browser default, bold // Component sizing // ------------------------- -// Based on 14px font-size and 20px line-height - -@fontSizeLarge: @base-font-size * 1.25; // ~18px -@fontSizeSmall: @base-font-size * 0.85; // ~12px -@fontSizeMini: @base-font-size * 0.75; // ~11px +// Based on 14px font-size and 1.5 line-height -@paddingLarge: 11px 19px; // 44px -@paddingSmall: 2px 10px; // 26px -@paddingMini: 0 6px; // 22px +@padding-large: 11px 19px; // 44px +@padding-small: 2px 10px; // 26px +@padding-mini: 0 6px; // 22px -@baseBorderRadius: 4px; -@borderRadiusLarge: 6px; -@borderRadiusSmall: 3px; +@border-radius-base: 4px; +@border-radius-large: 6px; +@border-radius-small: 3px; // Tables @@ -109,11 +109,11 @@ // ------------------------- @inputBackground: @white; @inputBorder: #ccc; -@inputBorderRadius: @baseBorderRadius; +@inputBorderRadius: @border-radius-base; @inputSearchBorderRadius: 20px; @inputDisabledBackground: @grayLighter; @formActionsBackground: #f5f5f5; -@inputHeight: @base-line-height + 14px; // base line-height + 12px vertical padding + 2px top/bottom border +@inputHeight: @line-height-base + 14px; // base line-height + 12px vertical padding + 2px top/bottom border // Dropdowns |
