-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
375 lines (345 loc) · 13.8 KB
/
index.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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Matt's CSS Boilerplate</title>
<meta name="description" content="A simple, modern CSS boilerplate">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="src/_01-tokens.css">
<link rel="stylesheet" href="src/_02-reset.css">
<link rel="stylesheet" href="src/_03-core.css">
<link rel="stylesheet" href="src/_04-forms.css">
<link rel="stylesheet" href="src/_05-layout.css">
<link rel="stylesheet" href="src/_06-animation.css">
<link rel="stylesheet" href="src/_07-components.css">
<link rel="stylesheet" href="src/_08-utilities.css">
</head>
<style>
h2 {
text-transform: uppercase;
font-weight: bold;
}
.permalink {
color: inherit;
text-decoration: none;
position: relative;
}
.permalink::before {
content: "#";
position: absolute;
left: -1em;
padding-right: 0.5em;
display: none;
}
.permalink:focus::before,
.permalink:hover::before {
display: block;
}
.sidebar nav {
background: var(--element-background);
position: sticky;
top: var(--flow-space);
/* padding: 0.5rem 0; */
}
.sidebar nav ul {
margin: 0;
}
.sidebar nav a {
padding: 0.5rem 1rem;
display: block;
color: var(--text-color);
}
.sidebar nav a:hover,
.sidebar nav a:focus {
color: white;
text-decoration-color: white;
background-color: var(--text-color);
}
#footer {
background: var(--element-background);
padding: var(--flow-space);
}
/* html {
scrollbar-color: var(--color-primary-500) var(--color-primary-100);
}
::-webkit-scrollbar {
background-color: var(--color-primary-100);
width: 7px;
height: 7px;
}
::-webkit-scrollbar-thumb {
background-color: var(--color-primary-500);
} */
</style>
<body>
<div id="app">
<!-- <header id="top-header">
</header> -->
<div class="hero container container-wide" id="introduction">
<section class="section">
<h1 class="center">Simple, Modern, Responsive</h1>
<p class="txt-h3 center" style="margin-top: 0;">CSS Boilerplate</p>
</section>
<hr>
</div>
<div id="main" class="has-sidebar">
<div class="sidebar">
<nav>
<ul class="nav">
<li><a href="#introduction">Introduction</a></li>
<li><a href="#typography">Typography</a></li>
<li><a href="#lists">Lists</a></li>
<li><a href="#blockquote">Blockquote</a></li>
<li><a href="#details-summary">Details & Summary</a></li>
<li><a href="#code">Code</a></li>
<li><a href="#buttons">Buttons</a></li>
<li><a href="#forms">Forms</a></li>
<li><a href="#media">Media</a></li>
<li><a href="#tables">Tables</a></li>
</ul>
</nav>
</div>
<main class="content">
<section>
<p>Heavily inspired by Skeleton, this CSS boilerplate contains a simple CSS reset, base html styles using
modern techniques, and a few features to help things along. It enables smooth scrolling, adds a top scroll
margin, enforces the <code>hidden</code> attribute, adds a <code>visually-hidden</code> class to keep hidden
content available for screen readers, and a bunch of other small tweaks and goodies.</p>
<p>This is not a framework, but a starting point. There is no build, no package, no hastle. Just download the
file and start adjusting it to fit your needs. What is here has been designed to be as little opinionated
style as possible while giving a nice baseline aesthetic.</p>
</section>
<section>
<h2 id="typography"><a class="permalink" href="#typography" title="Permalink to Typography">Typography</a>
</h2>
<div class="grid">
<div class="flow">
<p>The typographical base is built on a 16px base (1rem) on a 1.2 modular scale. All font sizes are set
with rems and have custom line heights.</p>
<p>The fonts are Open Sans, with Fira Code for monospace. Fonts can be changed using CSS custom
properties.</p>
<p>Other semantic type tags like <a href="#">anchors</a>, <strong>strong</strong>, <em>emphasis</em>,
<u>underline</u>, <del>del</del>, <ins>ins</ins>, <mark>mark</mark>, <abbr title="abbreviation">abbr
with a title</abbr>, <q cite="example.com">q with cite</q> are all included.</p>
<p><code><address></code> is also supported:</p>
<address>
Name<br>
Street Address<br>
Phone Number<br>
Email Address<br>
Website<br>
</address>
</div>
<div class="flow">
<p class="txt-h1">Heading 1</p>
<p class="txt-h2">Heading 2</p>
<p class="txt-h3">Heading 3</p>
<p class="txt-h4">Heading 4</p>
<p class="txt-h5"">Heading 5</p>
<p class=" txt-h6">Heading 6</p>
<p>Paragraph</p>
<p><small>Small</small></p>
</div>
</div>
</section>
<section>
<h2 id="lists"><a class="permalink" href="#lists" title="Permalink to Lists">Lists</a></h2>
<p>Lists of the same type can be nested up to three times with different styles, and styles have been included
for unordered lists, ordered lists, and definition lists.</p>
<div class="grid">
<div>
<ul>
<li>Item 1
<ul>
<li>Item 2.1
<ul>
<li>Item 2.1.1</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div>
<ol>
<li>Item 1
<ol>
<li>Item 2.1
<ol>
<li>Item 2.1.1</li>
</ol>
</li>
</ol>
</li>
</ol>
</div>
<div>
<dl>
<dt>Term</dt>
<dd>Description</dd>
<dt>Term</dt>
<dd>Description</dd>
</dl>
</div>
</div>
</section>
<section>
<h2 id="blockquote"><a class="permalink" href="#blockquote" title="Permalink to Blockquote">Blockquote</a>
</h2>
<p>A blockquote can be created using the <code><blockquote></code> element, or by using the
<code>.callout</code> class. Paragraph elements should be placed inside the blockquote element.</p>
<blockquote>
<p>Awesome quote</p>
</blockquote>
</section>
<section>
<h2 id="details-summary"><a class="permalink" href="#details-summary"
title="Permalink to Details & Summary">Details & Summary</a></h2>
<details class="accordion">
<summary>I'm a summary</summary>
<div class="details-content">Here is some details content. This accordion style is in the optional
_components.css file and is used by adding the <code>.accordion</code> class to the
<code><details></code> element.</div>
</details>
<details>
<summary>I'm a summary</summary>
<div class="details-content">Here is some details content.</div>
</details>
</section>
<section>
<h2 id="code"><a class="permalink" href="#code" title="Permalink to Code">Code</a></h2>
<p>Styles have been included for <code><code></code>, <code><samp></code>, and
<kbd><kbd></kbd> elements. Code blocks can be made by wrapping a <code><code></code> element
inside a <code><pre></code> element. Code blocks overflow automatically on the x axis in case there is
not enough room for a line of code.</p>
<pre><code>.some-class {
background-color: blue;
}
<!-- Remember every whitespace and break will be preserved in a <pre>, including indentation in your code. --></code></pre>
</section>
<section>
<h2 id="buttons"><a class="permalink" href="#buttons" title="Permalink to Buttons">Buttons</a></h2>
<p>Standard Buttons</p>
<a class="button" href="#">Anchor button</a>
<button>Button element</button>
<input type="submit" value="Submit input">
<input type="button" value="Button input">
<p>Disabled</p>
<a class="button" href="#" disabled tabindex="-1">Anchor button</a>
<button class="button-primary" disabled>Button element</button>
<input type="submit" value="submit input" disabled>
<input class="button-primary" type="button" value="button input" disabled>
</section>
<section>
<h2 id="forms"><a class="permalink" href="#forms" title="Permalink to Forms">Forms</a></h2>
<form>
<fieldset>
<legend>Fieldset</legend>
<div class="grid">
<div>
<label for="exampleEmailInput">Your email</label>
<input class="u-full-width" type="email" placeholder="test@mailbox.com" id="exampleEmailInput">
</div>
<div>
<label for="exampleRecipientInput">Reason for contacting</label>
<select class="u-full-width" id="exampleRecipientInput">
<optgroup label="First group">
<option value="Option 1">Questions</option>
<option value="Option 2">Admiration</option>
</optgroup>
<optgroup label="Second group">
<option value="Option 3">Can I get your number?</option>
</optgroup>
</select>
</div>
</div>
<label for="exampleSearch">Search</label>
<input type="search" id="exampleSearch">
</fieldset>
<label for="dogs">How much do you like dogs?</label>
<input type="range" id="dogs" name="dogs" min="9" max="10" step="0.1" value="10">
<label for="exampleMessage" class="required">Message</label>
<textarea class="u-full-width" placeholder="Hi Dave …" id="exampleMessage" required></textarea>
<label for="exampleProgress">Progress</label>
<progress id="exampleProgress" max="100" value="60"></progress>
<label for="send-copy">
<input type="checkbox" name="example-checkbox-set" id="send-copy" value="send-copy">
Send a copy to yourself
</label>
<label for="radio-1">
<input type="radio" name="example-radio-set" id="radio-1" value="cats">
Cats
</label>
<label for="radio-2">
<input type="radio" name="example-radio-set" id="radio-2" value="dogs">
Dogs
</label>
<input class="button-primary" type="submit" value="Submit">
</form>
</section>
<section>
<h2 id="media"><a class="permalink" href="#media" title="Permalink to Media">Media</a></h2>
<p>Images are given <code>display: block</code> and <code>max-width: 100%</code> by default. A video wrapper
is provided for responsive embeds, and utilities are provided to control aspect ratio for images and video.
</p>
<audio controls src="/media/cc0-audio/t-rex-roar.mp3">
Your browser does not support the
<code>audio</code> element.
</audio>
<figure>
<img src="https://i.picsum.photos/id/1020/4288/2848.jpg?hmac=Jo3ofatg0fee3HGOliAIIkcg4KGXC8UOTO1dm5qIIPc"
alt="Bear cubs in snowy mountains">
<figcaption>Default Figure & Caption styles</figcaption>
</figure>
<div class="video-wrapper">
<iframe width="1704" height="968" src="https://www.youtube.com/embed/dQw4w9WgXcQ"
title="YouTube video player" frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen></iframe>
</div>
</section>
<section>
<h2 id="tables"><a class="permalink" href="#tables" title="Permalink to Tables">Tables</a></h2>
<div class="table-wrapper">
<table>
<caption>Caption</caption>
<thead>
<tr>
<th>Column A</th>
<th>Column B</th>
<th>Column C</th>
</tr>
</thead>
<tbody>
<tr>
<td>A1</td>
<td>B1</td>
<td>C1</td>
</tr>
<tr>
<td>A2</td>
<td>B2</td>
<td>C2</td>
</tr>
<tr>
<td>A3</td>
<td>B3</td>
<td>C3</td>
</tr>
</tbody>
</table>
</div>
</section>
</main>
</div>
<footer id="footer">
<div class="container container-wide">
CSS Boilerplate by <a href="https://mattmcadams.com">Matthew McAdams</a>.<br>
<a href="https://github.com/MattMcAdams/CSS-Boilerplate">Open Source</a> & Free to use (<a
href="https://github.com/MattMcAdams/CSS-Boilerplate/blob/master/LICENSE">Public Domain</a>)
</div>
</footer>
</div>
</body>
</html>