Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 76cfd70

Browse files
fix(css): global page style improvements for min-height and text
Ensure the page always fills at least the entire height of the viewport. Prevent iOS text size adjust after orientation change, without disabling user zoom Fonts on OSX will look more consistent with other systems that do not render text using sub-pixel anti-aliasing.
1 parent bbe9659 commit 76cfd70

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

src/core/style/typography.scss

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,21 @@
1+
// Global page styles
2+
//
3+
// [2] Ensure the page always fills at least the entire height of the viewport.
4+
// [3] Prevent iOS text size adjust after orientation change, without disabling user zoom
5+
// [4] Fonts on OSX will look more consistent with other systems that do not
6+
// render text using sub-pixel anti-aliasing.
7+
18
html, body {
29
-webkit-tap-highlight-color: rgba(0,0,0,0);
310
-webkit-touch-callout: none;
4-
-webkit-text-size-adjust: 100%;
5-
//-webkit-font-smoothing: antialiased;
11+
12+
min-height: 100%; // [2]
13+
14+
-webkit-text-size-adjust: 100%; // [3]
15+
-ms-text-size-adjust: 100%; // [3]
16+
17+
-webkit-font-smoothing: antialiased; // [4]
18+
-moz-osx-font-smoothing: grayscale; // [4]
619
}
720

821
md-select, md-card, md-list, md-toolbar,

0 commit comments

Comments
 (0)