-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
138 lines (122 loc) · 4.35 KB
/
index.html
File metadata and controls
138 lines (122 loc) · 4.35 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="icon"
href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>👓</text></svg>"
/>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;1,400;1,700&family=Lora:ital,wght@0,400..700;1,400..700&display=swap"
rel="stylesheet"
/>
<title>Article.css Demo</title>
<link rel="stylesheet" href="src/article.css" />
<style>
html,
body {
margin: 0;
padding: 0;
width: 100%;
}
/** Styling for article container */
main {
width: 100%;
display: flex;
flex-direction: row;
justify-content: center;
}
</style>
</head>
<body>
<main>
<article>
<h1>Article.css Demo</h1>
<div class="subtitle">Use a .subtitle class for subtitles!</div>
<p>
Hey there! Thanks for checking out this CSS style template! I created
this because I wanted a quick, configurable starter set of styles for
any page with a larger amount of written content.
</p>
<p>
If the styling looks familiar, that's because
<mark>Article.css</mark> was inspired by the excellent reading
experience over at <a href="https://medium.com/">Medium</a>.
</p>
<h2>Basic Features</h2>
<p>Some of the basic supported features include:</p>
<ul>
<li>Small code snippets with the <code><code></code> tag</li>
<li>
<mark>Highlighting</mark> with <code><mark></code> or
<code>.highlight</code>
</li>
<li><code><h1></code> and <code><h2></code> headers</li>
<li><code><ol></code> and <code><ul></code> styling</li>
</ul>
<h2>Quotes</h2>
<blockquote>This is a default blockquote</blockquote>
<p>
You can give it a <code>.large</code> class for a bigger blockquote:
</p>
<blockquote class="large">
“If there's a book that you want to read, but it hasn't been written
yet, then you must write it.” ― Toni Morrison
</blockquote>
<h2>Images</h2>
<p>
Images are set to <code>width: 100%;</code> by default. Here's a
sample by
<a
href="https://commons.wikimedia.org/wiki/File:Sunset_in_The_Trossachs,_Scotland.jpg"
>Michal Klajban</a
>,
<a href="https://creativecommons.org/licenses/by-sa/4.0"
>CC BY-SA 4.0</a
>, via Wikimedia Commons:
</p>
<figure>
<img
src="https://upload.wikimedia.org/wikipedia/commons/e/ea/Sunset_in_The_Trossachs%2C_Scotland.jpg"
alt="Sunset in The Trossachs, Scotland"
/>
<figcaption>Sunset in The Trossachs, Scotland</figcaption>
</figure>
<h2>Design System</h2>
<h3>The Grid System</h3>
<p>
Article.css is built around the <code>8px</code> grid system, which is
set as an editable variable <code>--grid</code>.
</p>
<h3>Typography</h3>
<p>
The base serif font used is
<a href="https://fonts.google.com/specimen/Lora">Lora</a>, and the
base serif is
<a href="https://fonts.google.com/specimen/Lato">Lato</a>. Both fonts
are freely available on Google Fonts.
</p>
<h3>Color</h3>
<p>
Article.css uses a solid primary black color of
<code>#121212</code> for ease of reading on a pure white background.
</p>
<p>
The secondary grey <code>#767676</code> and background grey
<code>#e0e0e0</code> are selected to ensure a high level of contrast
for accessibility.
</p>
<p>
<strong>Highlights</strong>
</p>
<p>
Finally, the highlight color can be configured to a color of your
preference.
</p>
</article>
</main>
</body>
</html>