Skip to content

Commit 87ae056

Browse files
author
Mat Mannion
authored
Merge pull request #236 from UniversityofWarwick/ID-384
ID-384 Fix font sizes for headings and .lead at xs viewport
2 parents ceeaeaf + de7e0d3 commit 87ae056

9 files changed

+30
-29
lines changed

dist/css/69a50db13f2f3a62a67a8214a9d98c06-id7.css

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/6e74eff1e255061b98cbdb3a3579d058-id7.css

Lines changed: 0 additions & 18 deletions
This file was deleted.

dist/css/id7.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/id7.css.md5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6e74eff1e255061b98cbdb3a3579d058
1+
69a50db13f2f3a62a67a8214a9d98c06

dist/js/24910d5647d430c8b8d892f37d1baa62-id7-bundle.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/js/500b30fb92b387f4cba0300073f59b4d-id7-bundle.js renamed to dist/js/9b258f9a2b488ecc5361bbfd5fe1c16d-id7-bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/b27b575de5b50e9f258381443dcdae40-id7-bundle.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

less/text-styles.less

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,16 @@ abbr[title] {
7878

7979
.lead {
8080
font-weight: 700;
81+
font-size: (@font-size-base * 1.15);
8182
}
8283

8384
// ID-105 Reduce heading sizes on XS
84-
h1, .h1 { font-size: ceil((@font-size-h1 * @font-scale-xs)); }
85-
h2, .h2 { font-size: ceil((@font-size-h2 * @font-scale-xs)); }
86-
h3, .h3 { font-size: ceil((@font-size-h3 * @font-scale-xs)); }
87-
h4, .h4 { font-size: ceil((@font-size-h4 * @font-scale-xs)); }
88-
h5, .h5 { font-size: ceil((@font-size-h5 * @font-scale-xs)); }
89-
h6, .h6 { font-size: ceil((@font-size-h6 * @font-scale-xs)); }
85+
h1, .h1 { font-size: (@font-size-h1 * @font-scale-xs); }
86+
h2, .h2 { font-size: (@font-size-h2 * @font-scale-xs); }
87+
h3, .h3 { font-size: (@font-size-h3 * @font-scale-xs); }
88+
h4, .h4 { font-size: (@font-size-h4 * @font-scale-xs); }
89+
h5, .h5 { font-size: (@font-size-h5 * @font-scale-xs); }
90+
h6, .h6 { font-size: (@font-size-h6 * @font-scale-xs); }
9091

9192
@media (min-width: @grid-float-breakpoint) {
9293
h1, .h1 { font-size: @font-size-h1; }

less/variables.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143

144144
// End of font-size-based bootstrap overrides
145145

146-
@font-scale-xs: 0.85;
146+
@font-scale-xs: 0.875;
147147

148148
@border-radius-base: 0px;
149149
@border-radius-large: 0px;

0 commit comments

Comments
 (0)