-
Notifications
You must be signed in to change notification settings - Fork 13
/
index.html
307 lines (271 loc) · 8.84 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="keywords"
content="concrete, concrete.css, CSS, style, minimal, simple, framework, microframework, classless, stylesheet">
<meta name="author" content="Louis Merlin">
<meta name="description" content="A simple and to the point classless CSS stylesheet">
<title>concrete.css</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="./concrete.css">
<meta name="theme-color" content="#ffffff">
<style>
.badge {
height: 1.75rem;
border: .1rem solid #111;
}
figure.highlight {
margin-left: 0;
margin-right: 0;
}
.row {
display: flex;
flex-direction: column;
padding: 0;
}
.row .column {
display: block;
flex: 1 1 auto;
margin-left: 0;
max-width: 100%;
width: 100%;
}
@media (min-width: 30.0rem) {
.row {
flex-direction: row;
margin: 0 -.5rem;
width: calc(100% + 1rem);
}
.row .column {
margin-bottom: inherit;
padding: 0 .5rem;
}
}
</style>
</head>
<body>
<header>
<h1>concrete.css</h1>
<p>A simple and to the point classless CSS stylesheet</p>
<nav>
<ul>
<li><a href="https://github.com/louismerlin/concrete.css">GitHub</a> |</li>
<li><a href="https://www.npmjs.com/package/concrete.css">npm</a> |</li>
<li><a href="https://cdnjs.cloudflare.com/ajax/libs/concrete.css/3.0.0/concrete.css">CDN</a></li>
</ul>
</nav>
</header>
<main>
<section>
<h2>What is this ?</h2>
<p>This is a classless CSS stylesheet, built for lightness and simplicity.</p>
<p>Concrete can be a great starting point for a simple website.</p>
<p>It also switches to a <strong>dark theme</strong> if your OS uses one.</p>
<p>Inspired by <a href="https://milligram.io">Milligram</a> and <a href="http://getskeleton.com/">Skeleton</a>.
</p>
<p>
<a href="https://www.npmjs.com/package/concrete.css"><img class="badge" alt="Version badge"
src="https://img.shields.io/npm/v/concrete.css.svg?color=fff&labelColor=fff&style=flat-square"></a>
<a href="https://bundlephobia.com/result?p=concrete.css"><img class="badge" alt="Size badge"
src="https://img.shields.io/bundlephobia/minzip/concrete.css.svg?color=fff&labelColor=fff&style=flat-square"></a>
<a href="https://www.npmjs.com/package/concrete.css"><img class="badge" alt="Downloads badge"
src="https://img.shields.io/npm/dw/concrete.css.svg?color=fff&labelColor=fff&style=flat-square"></a>
</p>
</section>
<section>
<h2>Get Started</h2>
<h3>In your HTML <code><head></code></h3>
<p>Just drop this line into your HTML head:</p>
<pre><code><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/concrete.css/3.0.0/concrete.min.css"></code></pre>
<h3>In your javascript project</h3>
<p>Add the dependency:</p>
<pre><code>npm install concrete.css</code></pre>
<p>Import it somewhere in your code:</p>
<pre><code>import 'concrete.css'</code></pre>
</section>
<section>
<h2>Reading this page</h2>
<p>In order to see the HTML code that creates the elements you're seeing, you can either:</p>
<ul>
<li>left-click and "View Page Source"</li>
<li>left-click and "Inspect"</li>
<li>read the <a href="https://github.com/louismerlin/concrete.css/blob/main/index.html">index.html</a> on GitHub
</li>
</ul>
</section>
<section>
<h2>Typography</h2>
<div class="row">
<div class="column">
<h2>h2 heading</h2>
<h3>h3 heading</h3>
<h4>h4 heading</h4>
<h5>h5 heading</h5>
<h6>h6 heading</h6>
</div>
<div class="column">
<p>I can simply be a paragraph.</p>
<p>I can be <a href="./">a link</a>.</p>
<p>I can be <strong>bold</strong>.</p>
<p>I can be <u>underlined</u>.</p>
<p>I can be <em>emphasised</em>.</p>
<p>I can be <small>small</small>.</p>
</div>
</div>
</section>
<section>
<h2>Sections</h2>
<p>
For structuring your page, you can use the <code><main></code> element inside of the body.
It will be automatically centered on the page, with a maximum width of 640px, like the page you are reading
right now.
</p>
<p>
To isolate the title of your page, and make it bigger, you can use the <code><header></code> element.
You can see an example at the top of this page.
</p>
<p>
You can use the <code><section></code> element to separate between the different sections.
The section will simply be given some bottom padding.
</p>
<p>
The <code><footer></code> element will center the text inside of it.
You can see an example at the bottom of this page.
</p>
</section>
<section>
<h2>Buttons</h2>
<p>
<button>just a button</button>
<button disabled>a disabled button</button>
</p>
</section>
<section>
<h2>Images</h2>
<p>Simply add an image element, and voilà !</p>
<img alt="Placeholder" src="https://picsum.photos/640/480?grayscale">
</section>
<section>
<h2>Figures</h2>
<p>Adding a caption to a figure is as simple as it sounds.</p>
<figure>
<img alt="Placeholder" src="https://picsum.photos/640/480?grayscale">
<figcaption>This is the right-aligned caption for the figure. This example is very long to demonstrate at least
one line-break.</figcaption>
</figure>
</section>
<section>
<h2>Lists</h2>
<p>The concrete list is simply marked by a square.</p>
<ul>
<li>Unordered element 1</li>
<li>Unordered element 2</li>
</ul>
<ol>
<li>Ordered element 1</li>
<li>Ordered element 2</li>
</ol>
<dl>
<dt>Description term</dt>
<dd>Description detail</dd>
</dl>
</section>
<section>
<h2>Navigation</h2>
<p>A clean navigation bar is simple to achieve.</p>
<nav>
<ul>
<li>ProjectName</li>
<li><a href="#home">Home</a></li>
<li><a href="#docs">Docs</a></li>
<li><a href="#code">Code</a></li>
</ul>
</nav>
</section>
<section>
<h2>Forms</h2>
<form>
<fieldset>
<legend>Please enter your information</legend>
<div class="row">
<div class="column">
<label for="firstname">First Name</label>
<input type="text" name="firstname" id="firstname">
</div>
<div class="column">
<label for="lastname">Last Name</label>
<input type="text" name="lastname" id="lastname">
</div>
</div>
<label for="os">Operating System</label>
<select name="os" id="os">
<option value="GNU/Linux">GNU/Linux</option>
<option value="MacOS">MacOS</option>
<option value="Windows">Windows</option>
<option value="Other">Other</option>
</select>
<label for="comment">Comment</label>
<textarea name="comment" id="comment" placeholder="Please leave a comment..."></textarea>
<input type="submit" value="Send">
</fieldset>
</form>
</section>
<section>
<h2>Tables</h2>
<table>
<thead>
<tr>
<th>Name</th>
<th>Year</th>
<th>Size</th>
<th>Comment</th>
</tr>
</thead>
<tbody>
<tr>
<td>Skeleton</td>
<td>2011</td>
<td>5.7kB</td>
<td>Awesome</td>
</tr>
<tr>
<td>Milligram</td>
<td>2015</td>
<td>8.3kB</td>
<td>Amazing</td>
</tr>
</tbody>
</table>
</section>
<section>
<h2>Blockquotes</h2>
<blockquote>
"I'm quoting myself" - <em>Louis Merlin</em>
</blockquote>
</section>
<section>
<h2>Progress Bar</h2>
<progress value="40" max="100">40%</progress>
</section>
<section>
<h2>Horizontal Rule</h2>
<hr>
</section>
<section>
<h2>Sites using Concrete</h2>
<ul>
<li><a href="https://repfl.ch">repfl.ch</a></li>
<li><a href="https://louismerl.in">louismerl.in</a></li>
<li><a href="https://vis-uni-bamberg.github.io/evolution-paths/">evolution paths</a></li>
</ul>
</section>
</main>
<footer>
<hr>
<p>
Made with ♥ by <a href="https://louismerl.in">Louis Merlin</a>
</p>
</footer>
</body>
</html>