Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
9a4fbde4
Commit
9a4fbde4
authored
11 years ago
by
Chris Rebert
Browse files
Options
Download
Email Patches
Plain Diff
add variables for heading font sizes; fixes
#9921
parent
d666a896
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
less/type.less
+6
-6
less/type.less
less/variables.less
+7
-0
less/variables.less
with
13 additions
and
6 deletions
+13
-6
less/type.less
+
6
-
6
View file @
9a4fbde4
...
@@ -72,12 +72,12 @@ h6 {
...
@@ -72,12 +72,12 @@ h6 {
margin-bottom: (@line-height-computed / 2);
margin-bottom: (@line-height-computed / 2);
}
}
h1, .h1 { font-size:
floor(
@font-size-
base * 2.60); } // ~36px
h1, .h1 { font-size: @font-size-
h1; }
h2, .h2 { font-size:
floor(
@font-size-
base * 2.15); } // ~30px
h2, .h2 { font-size: @font-size-
h2; }
h3, .h3 { font-size:
ceil(
@font-size-
base * 1.70); } // ~24px
h3, .h3 { font-size: @font-size-
h3; }
h4, .h4 { font-size:
ceil(
@font-size-
base * 1.25); } // ~18px
h4, .h4 { font-size: @font-size-
h4; }
h5, .h5 { font-size:
@font-size-
base
; }
h5, .h5 { font-size: @font-size-
h5
; }
h6, .h6 { font-size:
ceil(
@font-size-
base * 0.85); } // ~12px
h6, .h6 { font-size: @font-size-
h6; }
h1 small, .h1 small { font-size: ceil(@font-size-base * 1.70); } // ~24px
h1 small, .h1 small { font-size: ceil(@font-size-base * 1.70); } // ~24px
h2 small, .h2 small { font-size: ceil(@font-size-base * 1.25); } // ~18px
h2 small, .h2 small { font-size: ceil(@font-size-base * 1.25); } // ~18px
...
...
This diff is collapsed.
Click to expand it.
less/variables.less
+
7
-
0
View file @
9a4fbde4
...
@@ -48,6 +48,13 @@
...
@@ -48,6 +48,13 @@
@font-size-large: ceil(@font-size-base * 1.25); // ~18px
@font-size-large: ceil(@font-size-base * 1.25); // ~18px
@font-size-small: ceil(@font-size-base * 0.85); // ~12px
@font-size-small: ceil(@font-size-base * 0.85); // ~12px
@font-size-h1: floor(@font-size-base * 2.60); // ~36px
@font-size-h2: floor(@font-size-base * 2.15); // ~30px
@font-size-h3: ceil(@font-size-base * 1.70); // ~24px
@font-size-h4: ceil(@font-size-base * 1.25); // ~18px
@font-size-h5: @font-size-base;
@font-size-h6: ceil(@font-size-base * 0.85); // ~12px
@line-height-base: 1.428571429; // 20/14
@line-height-base: 1.428571429; // 20/14
@line-height-computed: floor(@font-size-base * @line-height-base); // ~20px
@line-height-computed: floor(@font-size-base * @line-height-base); // ~20px
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment