-
Notifications
You must be signed in to change notification settings - Fork 0
/
style-guide.html
592 lines (433 loc) · 22.7 KB
/
style-guide.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
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
<!DOCTYPE html>
<html lang="en" prefix="og: http://ogp.me/ns#">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="canonical" href="https://peter.dolkens.me/style-guide">
<title>Style Guide | My Blog</title>
<meta name="description" content="DevOps Lead Architect at ClubSpark" />
<!-- Open Graph -->
<meta property="og:title" content="Style Guide | My Blog" />
<meta property="og:site_name" content="My Blog" />
<meta property="og:description" content="DevOps Lead Architect at ClubSpark" />
<meta property="og:url" content="https://peter.dolkens.me/style-guide">
<meta property="og:type" content="article">
<meta property="og:image" content="https://peter.dolkens.me/assets/images/flickr/graffiti.jpg">
<!-- Twitter Card -->
<meta name="twitter:title" content="Style Guide | My Blog">
<meta name="twitter:description" content="DevOps Lead Architect at ClubSpark">
<meta name="twitter:site" content="@dolkensp">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="https://peter.dolkens.me/assets/images/flickr/graffiti.jpg">
<!-- JSON-LD -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BlogPosting",
"url": "https://peter.dolkens.me/style-guide",
"name": "Style Guide",
"headline": "Style Guide",
"keywords": "",
"description": "DevOps Lead Architect at ClubSpark",
"author": {
"@type": "Person",
"name": "Peter Dolkens",
"logo": {
"@type": "ImageObject",
"url": "https://peter.dolkens.me"
}
},
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "https://peter.dolkens.me/style-guide"
},
"image": {
"@type": "ImageObject",
"url": "https://peter.dolkens.me/assets/images/flickr/graffiti.jpg"
}
}
</script>
<!-- Site Favicon -->
<link rel="apple-touch-icon" sizes="180x180" href="https://peter.dolkens.me/assets/images/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="https://peter.dolkens.me/assets/images/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="https://peter.dolkens.me/assets/images/favicon-16x16.png">
<link rel="manifest" href="https://peter.dolkens.me/site.webmanifest">
<link rel="mask-icon" href="https://peter.dolkens.me/assets/images/safari-pinned-tab.svg" color="#f66904">
<meta name="apple-mobile-web-app-title" content="peter.dolkens.me">
<meta name="application-name" content="peter.dolkens.me">
<meta name="msapplication-TileColor" content="#f66904">
<meta name="theme-color" content="#f66904">
<!-- Font Embed Code -->
<link href="//fonts.googleapis.com/css?family=Lato:400,400italic,700,700italic%7CPlayfair+Display:400,400italic,700,700italic&display=swap" rel="stylesheet" type="text/css" />
<!-- CSS Styles -->
<link href="https://peter.dolkens.me/assets/css/style.css?v=202107280154410000" rel="stylesheet">
</head>
<body class="home-template">
<div id="page" class="site">
<header class="site-header">
<h1 class="site-title" style="margin-top: 1em">
<a href="https://peter.dolkens.me" rel="home">
<svg viewBox="0 0 100 100" height="4em" width="4em" style="float: left; margin-top: -1.1em">
<title></title>
<use xlink:href="https://peter.dolkens.me/assets/images/branding.svg#logo" />
</svg>
My Blog
</a>
</h1>
<a class="sidebar-toggle">
<span class="screen-reader-text">Menu and Widgets</span>
<span class="icon" aria-hidden="true"></span>
</a>
</header><!-- .site-header -->
<main class="site-main">
<div class="site-content">
<article class="page-template">
<header class="cover post-header">
<div class="cover-bg" style="background-image: url(https://peter.dolkens.me/assets/images/flickr/graffiti.jpg)">
</div>
<div class="cover-content">
<div class="inner">
<h1 class="post-title">Style Guide</h1>
<a href="#" class="arrow-down"><span class="screen-reader-text">Scroll Down</span></a>
</div><!-- .inner -->
</div><!-- .cover-content -->
</header><!-- .post-header -->
<div class="inner">
<div class="post-content">
<p>The style guide provides you with a blueprint of Subtle default post and page styles. The style guide is also a great reference for suggested typographic treatment and styles for your content.</p>
<h2 id="images">Images</h2>
<p>This theme supports <strong>regular image with or without caption</strong>, <strong>wide images with or without caption</strong> and <strong>full-width images with or without the caption</strong>. The examples provided below.</p>
<figure class="kg-card kg-image-card">
<img src="/assets/images/flickr/hex-tiles.jpg" alt="Concrete roads" />
<figcaption class="caption-text">This regular image with caption</figcaption>
</figure>
<figure class="kg-card kg-image-card full-width">
<img src="/assets/images/flickr/opera-house.jpg" alt="Wide image with caption" />
<figcaption class="caption-text">This wide image with caption</figcaption>
</figure>
<figure class="kg-card kg-image-card kg-width-full">
<img src="/assets/images/flickr/black-waves.jpg" alt="Full-width image with caption" class="kg-image" />
<figcaption class="caption-text">This full-width image with caption</figcaption>
</figure>
<p>One neat trick which you can use in Markdown to distinguish between different types of images is to add a #hash value to the end of the source URL, and then target images containing the hash with special styling. For example, to add a wider image, you need to add the #wide value to the end of the source URL.</p>
<h2 id="align-image-left">Align Image Left</h2>
<div class="alignleft">
<img src="/assets/images/flickr/warsaw-bridge.jpg" alt="left" />
</div>
<p>One neat trick which you can use in Markdown to distinguish between different types of images is to add a #hash value to the end of the source URL, and then target images containing the hash with special styling. For example, to add a wider image, you need to add the #wide value to the end of the source URL.</p>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra gravida, orci magna rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras pulvinar tincidunt turpis ac fringilla. Mauris eget dolor neque. Donec ac ex quis lectus sagittis vestibulum.</p>
<p>Morbi commodo, ipsum sed pharetra gravida, orci magna rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat condimentum. Aliquam erat volutpat.</p>
<h2 id="align-image-right">Align Image Right</h2>
<div class="alignright">
<img src="/assets/images/flickr/melbourne.jpg" alt="left" />
</div>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra gravida, orci magna rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla libero.</p>
<h1 id="this-is-an-h1">This is an H1</h1>
<p><mark>Quisque facilisis erat a dui</mark>. Nam malesuada ornare dolor. Cras gravida, diam sit amet rhoncus ornare, erat elit consectetuer erat, id egestas pede nibh eget odio. Proin tincidunt, velit vel porta elementum, magna diam molestie sapien, non aliquet massa pede eu diam. Aliquam iaculis. Fusce et ipsum et nulla tristique facilisis.</p>
<h2 id="this-is-an-h2">This is an H2</h2>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra gravida, orci magna rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla libero.</p>
<h3 id="this-is-an-h3">This is an H3</h3>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi commodo, ipsum sed pharetra gravida, orci magna rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla libero.</p>
<h4 id="this-is-an-h4">This is an H4</h4>
<p>Quisque facilisis erat a dui. Nam malesuada ornare dolor. Cras gravida, diam sit amet rhoncus ornare, erat elit consectetuer erat, id egestas pede nibh eget odio. Proin tincidunt, velit vel porta elementum, magna diam molestie sapien, non aliquet massa pede eu diam. Aliquam iaculis.</p>
<h2 id="quoting">Quoting</h2>
<p>Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla libero.</p>
<blockquote>
<p>“Creativity is allowing yourself to make mistakes. Design is knowing which ones to keep.” <cite>― Scott Adams ―</cite></p>
</blockquote>
<p>Lorem ipsum dolor sit amet, <code class="highlighter-rouge">consectetuer adipiscing</code> elit. Morbi commodo, ipsum sed pharetra gravida, orci magna rhoncus neque, id pulvinar odio lorem non turpis. Nullam sit amet enim. Suspendisse id velit vitae ligula volutpat condimentum. Aliquam erat volutpat. Sed quis velit. Nulla facilisi. Nulla libero.</p>
<hr />
<h2 id="code-blocks">Code Blocks</h2>
<div class="highlighter-rouge"><div class="highlight"><pre class="highlight"><code>// Simple map
var map;
function initMap() {
map = new google.maps.Map(document.getElementById('map'), {
center: {lat: -34.397, lng: 150.644},
zoom: 8
});
}
</code></pre></div></div>
<p>Code blocks, highlighted with <a href="http://prismjs.com/index.html">Prism</a>.</p>
<pre><code class="language-markup"><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Prism</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<header>
<div class="intro" data-src="templates/header-main.html" data-type="text/html"></div>
<ul id="features">
<li>Dead simple</li>
<li>Light as a feather</li>
<li>Extensible</li>
</ul>
</header>
<section id="features-full" class="language-markup">
<h1>Full list of features</h1>
<ul>
<li><strong>Only 2KB</strong> minified & gzipped (core). Each language definition adds roughly 300-500 bytes.</li>
<li>Very easy to extend without modifying the code, due to Prism’s <a href="#plugins">plugin architecture</a>. Multiple hooks are scattered throughout the source.</li>
<li>Very easy to <a href="extending.html#language-definitions">define new languages</a>. Only thing you need is a good understanding of regular expressions</li>
</ul>
</section>
<footer data-src="templates/footer.html" data-type="text/html"></footer>
</body>
</html>
</code></pre>
<pre><code class="language-javascript">var Token = _.Token = function(type, content, alias, matchedStr, greedy) {
this.type = type;
this.content = content;
this.alias = alias;
// Copy of the full string this token was created from
this.length = (matchedStr || "").length|0;
this.greedy = !!greedy;
};</code></pre>
<pre><code class="language-css">@import url(http://fonts.googleapis.com/css?family=Arvo);
/* Styles */
body {
font: 100%/1.5 Questrial, sans-serif;
tab-size: 4;
hyphens: auto;
}
a {
color: inherit;
}
section h1 {
font-size: 250%;
}
section h1,
#features li strong,
header h2,
footer p {
font: 100% Rockwell, Arvo, serif;
}</code></pre>
<h2 id="lists">Lists</h2>
<h3 id="unordered-lists">Unordered Lists</h3>
<p>The HTML <ul> element represents an unordered list of items, typically rendered as a bulleted list.</p>
<p>Usage notes:</p>
<ul>
<li>The <ul> element is for grouping a collection of items that do not have a numerical ordering, and their order in the list is meaningless. Typically, unordered-list items are displayed with a bullet, which can be of several forms, like a dot, a circle or a squared.</li>
<li>There is no limitation to the depth and alternation of nested lists defined with the <ol> and <ul> elements.</li>
<li>The <ol> and <ul> elements both represent a list of items. They differ in that, with the <ol> element, the order is meaningful.</li>
</ul>
<h3 id="ordered-lists">Ordered Lists</h3>
<p>The HTML <ol> element represents an ordered list of items, typically rendered as a numbered list.</p>
<p>Usage notes:</p>
<ol>
<li>Typically, ordered-list items are displayed with a preceding numbering, which can be of any form, like numerals, letters or Romans numerals or even simple bullets.</li>
<li>There is no limitation to the depth and alternation of nested lists defined with the <ol> and <ul> elements.</li>
<li>The <ol> and <ul> both represent a list of items. They differ in the way that, with the <ol> element, the order is meaningful.</li>
</ol>
<h2 id="footnotes">Footnotes</h2>
<p>The quick brown fox<sup id="fnref:1"><a href="#fn:1" class="footnote">1</a></sup> jumped over the lazy dog<sup id="fnref:2"><a href="#fn:2" class="footnote">2</a></sup>.</p>
<p>Footnotes are a great way to add additional contextual details when appropriate. Ghost will automatically add footnote content to the very end of your post.</p>
<h2 id="tables">Tables</h2>
<table>
<caption>Table Caption</caption>
<thead>
<tr>
<th>Content categories</th>
<th>Flow content</th>
</tr>
</thead>
<tbody>
<tr>
<td>Permitted content</td>
<td>
An optional <code><caption></code> element;<br />
zero or more <code><colgroup></code> elements;<br />
an optional <code><thead></code> element;<br />
an optional <code><tfoot></code> element;
</td>
</tr>
<tr>
<td>Tag omission</td>
<td>None, both the start tag and the end tag are mandatory</td>
</tr>
<tr>
<td>Permitted parent elements</td>
<td>Any element that accepts flow content</td>
</tr>
<tr>
<td>Normative document</td>
<td><a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/tabular-data.html#the-table-element" rel="external nofollow">HTML5, section 4.9.1</a> (<a href="http://www.w3.org/TR/REC-html40/struct/tables.html#edef-TABLE">HTML4.01, section 11.2.1</a>)</td>
</tr>
</tbody>
</table>
<h2 id="videos">Videos</h2>
<iframe src="https://player.vimeo.com/video/137643135?color=ffffff&title=0&byline=0&portrait=0" width="500" height="281" frameborder="0" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen=""></iframe>
<p><a href="https://vimeo.com/137643135">This Mountain</a> from <a href="https://vimeo.com/evanmann">Evan Mann / OWP Denver</a> on <a href="https://vimeo.com">Vimeo</a>.</p>
<h2 id="audio">Audio</h2>
<iframe width="100%" height="450" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/165895349&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&visual=true"></iframe>
<div class="footnotes">
<ol>
<li id="fn:1">
<p>Foxes are red <a href="#fnref:1" class="reversefootnote">↩</a></p>
</li>
<li id="fn:2">
<p>Dogs are usually not red <a href="#fnref:2" class="reversefootnote">↩</a></p>
</li>
</ol>
</div>
</div>
</div><!-- .inner -->
</article><!-- .page-template -->
</div><!-- .site-content -->
</main><!-- .site-main -->
<aside class="sidebar">
<div class="sidebar-scrollable">
<div class="inner">
<div class="widget-area">
<nav class="site-navigation">
<h2>Explore Website</h2>
<ul class="menu">
<li class="menu-item"><a href="https://peter.dolkens.me/style-guide">Style Guide</a></li>
<li class="menu-item"><a href="https://peter.dolkens.me/brand-guidelines">Brand Guidelines</a></li>
</ul>
</nav>
<section class="widget widget-text">
<h2 class="widget-title">About My Blog</h2>
<p>DevOps Lead Architect at ClubSpark</p>
</section>
<!-- Create a sorted array of tags -->
<section class="widget widget-tags">
<h2 class="widget-title">Tags</h2>
<div class="tagcloud">
<a class="button" href="https://peter.dolkens.me/tag/devops/">devops
<span aria-hidden="true">
<span class="line left"></span>
<span class="line top"></span>
<span class="line right"></span>
<span class="line bottom"></span>
</span>
</a>
<a class="button" href="https://peter.dolkens.me/tag/docker/">docker
<span aria-hidden="true">
<span class="line left"></span>
<span class="line top"></span>
<span class="line right"></span>
<span class="line bottom"></span>
</span>
</a>
<a class="button" href="https://peter.dolkens.me/tag/gaming/">gaming
<span aria-hidden="true">
<span class="line left"></span>
<span class="line top"></span>
<span class="line right"></span>
<span class="line bottom"></span>
</span>
</a>
<a class="button" href="https://peter.dolkens.me/tag/github/">github
<span aria-hidden="true">
<span class="line left"></span>
<span class="line top"></span>
<span class="line right"></span>
<span class="line bottom"></span>
</span>
</a>
<a class="button" href="https://peter.dolkens.me/tag/linux/">linux
<span aria-hidden="true">
<span class="line left"></span>
<span class="line top"></span>
<span class="line right"></span>
<span class="line bottom"></span>
</span>
</a>
<a class="button" href="https://peter.dolkens.me/tag/mac/">mac
<span aria-hidden="true">
<span class="line left"></span>
<span class="line top"></span>
<span class="line right"></span>
<span class="line bottom"></span>
</span>
</a>
<a class="button" href="https://peter.dolkens.me/tag/modding/">modding
<span aria-hidden="true">
<span class="line left"></span>
<span class="line top"></span>
<span class="line right"></span>
<span class="line bottom"></span>
</span>
</a>
<a class="button" href="https://peter.dolkens.me/tag/recipe/">recipe
<span aria-hidden="true">
<span class="line left"></span>
<span class="line top"></span>
<span class="line right"></span>
<span class="line bottom"></span>
</span>
</a>
<a class="button" href="https://peter.dolkens.me/tag/starcitizen/">starcitizen
<span aria-hidden="true">
<span class="line left"></span>
<span class="line top"></span>
<span class="line right"></span>
<span class="line bottom"></span>
</span>
</a>
<a class="button" href="https://peter.dolkens.me/tag/windows/">windows
<span aria-hidden="true">
<span class="line left"></span>
<span class="line top"></span>
<span class="line right"></span>
<span class="line bottom"></span>
</span>
</a>
</div>
</section>
</div><!-- .widget-area -->
<a class="sidebar-toggle">
<span class="screen-reader-text">Close</span>
<span class="icon" aria-hidden="true"></span>
</a>
</div><!-- .inner -->
</div><!-- .sidebar-scrollable -->
</aside><!-- .sidebar -->
<footer class="site-footer">
<div class="inner">
<div class="offsite-links">
<a href="https://twitter.com/dolkensp" class="circle" target="_blank">
<i class="icon-twitter" aria-hidden="true"></i>
<span class="screen-reader-text">Twitter</span>
</a>
<a href="https://www.linkedin.com/in/peterdolkens" class="circle" target="_blank">
<i class="icon-linkedin" aria-hidden="true"></i>
<span class="screen-reader-text">Linkedin</span>
</a>
<a href="https://github.com/peter-dolkens" class="circle" target="_blank">
<i class="icon-github" aria-hidden="true"></i>
<span class="screen-reader-text">GitHub</span>
</a>
<a href="https://medium.com/@peter.dolkens" class="circle" target="_blank">
<i class="icon-medium" aria-hidden="true"></i>
<span class="screen-reader-text">Medium</span>
</a>
<a href="/rss/" class="circle" target="_blank">
<i class="icon-feed" aria-hidden="true"></i>
<span class="screen-reader-text">RSS</span>
</a>
</div><!-- .offsite-links -->
<div class="site-info">
<a href="#">My Blog</a> © 2021 . Powered by
<a target="_jeckyll" href="https://jekyllrb.com/">Jekyll</a>.
</div><!-- .site-info -->
<a href="#page" class="arrow-up" title="Back to Top"><span class="screen-reader-text">Back to the top</span></a>
</div><!-- .inner -->
</footer><!-- .site-footer -->
</div><!-- .site -->
<!-- Javascript Assets -->
<script src="https://peter.dolkens.me/assets/js/jquery-3.2.1.min.js"></script>
<script src="https://peter.dolkens.me/assets/js/plugins.js?v=202107280154410000"></script>
<script src="https://peter.dolkens.me/assets/js/custom.js?v=202107280154410000"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-29781027-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-29781027-1', { 'anonymize_ip': true });
</script>
</body>
</html>