-
Notifications
You must be signed in to change notification settings - Fork 0
/
baseline-grid.html
173 lines (156 loc) · 7.04 KB
/
baseline-grid.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
<!doctype html>
<html class="no-js mui-baselineGridSetup" lang="" data-grid-count="30">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-touch-icon" href="apple-touch-icon.png">
<!-- Place favicon.ico in the root directory -->
<link rel="stylesheet" href="css/main.css">
<script src="js/modernizr.js"></script>
<link rel="stylesheet" href="css/monokai-sublime.css">
<script src="js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
</head>
<body>
<!--[if lt IE 9]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<!-- Menu -->
<nav class="mui-mfn-nav mui-mainHead" role='navigation'>
<ul class="nmb">
<li><a href="index.html">michaeltrilford.mui</a></li>
<li class="mui-subHead">Guides</li>
<li><a href="baseline-grid-overlay.html">Baseline Grid</a></li>
<li class="mui-subHead">Base</li>
<li><a href="resets.html">Resets</a></li>
<li><a href="baseline-grid.html" class="mui-mfn-active">Baseline</a></li>
<li><a href="typography.html">Typography</a></li>
<li><a href="formalize.html">Formalize</a></li>
<li><a href="lists.html">Lists</a></li>
<li><a href="images.html">Images</a></li>
<li><a href="accordion.html">Accordion</a></li>
<li><a href="table.html">Table</a></li>
<li><a href="buttons.html">Buttons</a></li>
<li class="mui-subHead">Layout</li>
<li><a href="columns.html">Columns</a></li>
<li><a href="css-grid.html">CSS Grid</a></li>
<li><a href="wrapper.html">Wrappers</a></li>
<li class="mui-subHead">Components</li>
<li><a href="browser-upgrade.html">Browser Upgrade</a></li>
<li><a href="navigation.html">Navigation</a></li>
<li><a href="transformicons.html">Transformicons</a></li>
</ul>
</nav>
<!-- Navigation Bar -->
<aside class="mui-mfn-navigation-bar nmb">
<a id="mui-mfn-menu-toggle" class="bounceIn mui-mfn-menu-toggle tIcons" href="#" aria-hidden="true">
<!-- Menu Icon -->
<svg viewBox="0 0 36 30">
<rect width="36" height="6" />
<rect y="24" width="36" height="6" />
<rect y="12" width="36" height="6" />
</svg>
<!-- Close Icon -->
<svg viewBox="0 0 36 30">
<polygon points="32.8,4.4 28.6,0.2 18,10.8 7.4,0.2 3.2,4.4 13.8,15 3.2,25.6 7.4,29.8 18,19.2 28.6,29.8 32.8,25.6 22.2,15 " />
</svg>
</a>
<div class="bounceIn mui-mfn-website-name nmb">michaeltrilford.mui</div>
</aside>
<main class="mui-mfn-offset-wrapper">
<article class="wrapper--medium">
<div class="header mt-24 mb-48">
<h1 class="large">Vertical Rythym</h1>
<hr>
</div>
<section class="mb-72">
<h3>Typographic Scale</h3>
<div class="card">
<p><strong>This scale is the basis of the vertical rythym for this starter kit.</strong></p>
<hr>
<p class="nmb">6px, 7px, 8px, 9px, 10px, 11px, 12px</p>
<p class="mui-light-text">|------------------- +1 -------------------|</p>
<p class="nmb">12px, 14px, 16px, 18px</p>
<p class="mui-light-text">|----------- +2 -----------|</p>
<p class="nmb">18px, 21px, 24px</p>
<p class="mui-light-text">|------- +3 -------|</p>
<p class="nmb">24px, 36px, 48px, 60px, 72px, 84px, 96px, 108, 120, 132, 144, 156, 168, 180, 192</p>
<p class="mui-light-text">|------------------------------------------- +12 --------------------------------------------|</p>
</div>
</section>
<section class="mb-72">
<h3>Base: Font Size</h3>
<div class="card">
<p><strong>Even though the CSS is structured in a Mobile First approach, the desktop font-size of 16px is used to calulate the rem units for devices below desktop.</strong></p>
<hr>
<p class="nmb"><strong>Small Devices:</strong></p>
<mark>12px / 16px = 0.75rem</mark>
<p class="nmb"><strong>Medium Devices:</strong></p>
<mark>14px / 16px = 0.875rem</mark>
<p class="nmb"><strong>Large Devices:</strong></p>
<mark>16px / 16px = 1rem</mark>
</div>
</div>
<pre class="highlight-code nmb">
<code class="sass">
html {
font-size: 0.75rem;
}
@media only screen and (min-width: 48rem)
html {
font-size: 0.875rem;
}
@media only screen and (min-width: 53.125rem)
html {
font-size: 1rem;
}
</code>
</pre>
</section>
<section class="mb-72">
<h3>Base: Line Height</h3>
<div class="card">
<p class="nmb"><strong>Small Devices:</strong></p>
<mark>1.5 * 12px = 18px</mark>
<p class="nmb"><strong>Medium Devices:</strong></p>
<mark>1.5 * 14px = 21px</mark>
<p class="nmb"><strong>Large Devices:</strong></p>
<mark>1.5 * 16px = 24px</mark>
</div>
<pre class="highlight-code nmb">
<code class="sass">
html {
line-height: 1.5;
}
</code>
</pre>
</section>
<section class="mb-72">
<h3>Base: Bottom Margin</h3>
<div class="card">
<p class="nmb"><strong>Small Devices:</strong></p>
<mark>1.5 * 12px = 18px</mark>
<p class="nmb"><strong>Medium Devices:</strong></p>
<mark>1.5 * 14px = 21px</mark>
<p class="nmb"><strong>Large Devices:</strong></p>
<mark>1.5 * 16px = 24px</mark>
</div>
<pre class="highlight-code nmb">
<code class="css">
h1, h2, h3, h4, h5, h6, p, header, table, figure, footer, details, section, article, dl, menu, ul, ol, pre, aside, div, hr, dd, fieldset, textarea, keygen, select, input {
margin: 0 0 1.5rem 0;
}
</code>
</pre>
</section>
</article>
</main>
<!-- Grid Overlay -->
<!-- <div class="grid"></div> -->
<script src="js/vendor/umbrella.js"></script>
<script src="js/main.js"></script>
</body>
</html>