forked from yegor256/tacit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
237 lines (237 loc) · 9.17 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta name="keywords" content="css, html5, css framework"/>
<meta name="description" content="CSS Framework for Dummies"/>
<link rel="stylesheet" href="tacit.min.css"/>
<title>tacit</title>
<link rel="icon" type="image/png" href="./tacit_logo.png"/>
</head>
<body>
<section>
<header>
<nav>
<ul>
<li><code>VERSION</code></li>
</ul>
</nav>
<nav>
<ul>
<li><a href=".">home</a></li>
<li><a href=".">about</a></li>
<li><a href=".">projects</a></li>
<li><a href=".">talks</a></li>
</ul>
</nav>
</header>
<article>
<figure>
<img src="./tacit_logo.png" alt="tacit logo" style="max-height: 100px;"/>
</figure>
<p>
<strong>Tacit</strong> is a CSS framework for <em>dummies</em>, who want their
web services to look attractive but have almost zero
skills in graphic design, just like
<a href="https://github.com/yegor256">myself</a>.
This is how your website will look if you add just this code to your HTML:
</p>
<pre><!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/yegor256/tacit@gh-pages/tacit-css-VERSION.min.css"/>
</head>
</html></pre>
<p>
You should <strong>not</strong> use any CSS classes to make your HTML code look nice. Just
make sure it is <a href="http://www.w3.org/TR/html5/">HTML5</a>
compliant and you'll be fine. Again, <mark>no classes</mark>,
just standard HTML elements, like <code><table></code> and <code><input></code>.
</p>
<p>
Check the source code of this page.
</p>
<p>
By the way, Tacit is compliant with
W3C validator requirements:
<a href="https://validator.w3.org/check?uri=https%3A%2F%2Fyegor256.github.io%2Ftacit%2F&doctype=Inline">HTML</a> and
<a href="https://jigsaw.w3.org/css-validator/validator?uri=https%3A%2F%2Fyegor256.github.io%2Ftacit%2F&profile=css3">CSS</a>.
</p>
<h2>Forms</h2>
<form method="get" action="#">
<fieldset>
<legend>Here is a simple form with <code><fieldset></code>:</legend>
<label for="email">Your email:</label>
<input name="email" type="text" id="email" size="25" placeholder="must be unique"/>
<label for="sex">Your gender:</label>
<select name="sex" id="sex">
<option value="none">don't want to say</option>
<option value="female">female</option>
<option value="male">male</option>
</select>
<label for="age">Your age:</label>
<label><input type="radio" id="under" name="age" value="under"/> I'm under 18</label>
<label><input type="radio" id="over" name="age" value="over"/> I'm over 18</label>
<label for="food">Your favorite food:</label>
<select multiple="multiple" name="food" id="food">
<optgroup label="Italian">
<option value="1">Pizza</option>
<option value="2">Spaghetti</option>
</optgroup>
<optgroup label="Asian">
<option value="4">Sushi</option>
</optgroup>
<option value="3">Hamburger</option>
<option value="5">Borsht</option>
</select>
<label for="address">Your full address:</label>
<textarea name="address" id="address" placeholder="PO box is not allowed"></textarea>
<label><input type="checkbox" name="consent" id="consent" value="test"/>I agree with all possible terms and conditions</label>
<button type="submit">Subscribe</button>
<button type="reset">Reset</button>
<button disabled>Can't click</button>
</fieldset>
</form>
<p>This is a one-line form without <code><fieldset></code>:</p>
<form>
<label>Add funds:</label><input type="text" size="10" placeholder="e.g. $10"/><button type="submit">Pay</button>
</form>
<h2>Tables</h2>
<p>
A simple table would look like this:
</p>
<table>
<thead>
<tr>
<th>Make</th>
<th>Price</th>
<th>Year</th>
</tr>
</thead>
<tbody>
<tr>
<td>BMW X6</td>
<td>$75,000</td>
<td>2013</td>
</tr>
<tr>
<td>Mercedes-Benz E350</td>
<td>$52,700</td>
<td>2014</td>
</tr>
</tbody>
</table>
<h2>Headings</h2>
<p>Just use standard <code><h1></code>...<code><h6></code> tags:
<h1>This is <h1></h1>
<p>Use a heading of the highest level once per page.</p>
<h2>This is <h2></h2>
<p>Use <code><h2></code> for sections of the page.</p>
<h3>This is <h3></h3>
<p>Use <code><h3></code> for sub-sections.</p>
<h4>This is <h4></h4>
<p>I would recommend to avoid this type of heading at all.</p>
<h5>This is <h5></h5>
<p>I would recommend to avoid this type of heading at all.</p>
<h6>This is <h6></h6>
<p>I would recommend to avoid this type of heading at all.</p>
<p>Sup<sup>®</sup> and Sub<sub>®</sub> Elements</p>
<h2>Lists</h2>
<p>Just use standard <code><ul></code>, <code><ol></code> and <code><dl></code> tags:
<ul>
<li>Orange</li>
<li>
Apple
<ol>
<li>First</li>
<li>
Second
<ul>
<li>Blue</li>
<li>Yellow</li>
<li>Green</li>
<li>Red</li>
</ul>
</li>
<li>Third</li>
</ol>
</li>
<li>Apricot</li>
</ul>
<dl>
<dt>Banana</dt>
<dd>A yellow fruit that is easy to peel.</dd>
<dd>Which also grows on a tree.</dd>
<dt>Cashew</dt>
<dd>A tan nut without a peel.</dd>
<dt>Cherry</dt>
<dd>A red fruit that is hard to peel.</dd>
</dl>
<h2>Blockquote</h2>
<blockquote>
Use this to emphasize a quote
<footer>— Author Name, Publication</footer>
</blockquote>
<h2>Aside</h2>
<aside>
Use this to emphasize a content related to the main content.
</aside>
<p>main content</p>
<h2>Keyboard</h2>
<p>Sometimes you want to let people know they should press a keyboard command like <kbd>ctrl + l</kbd>.</p>
<h2>Images</h2>
<figure>
<img src="https://via.placeholder.com/900x500" alt="placeholder image 900 pixels wide by 500 pixels tall"/>
<figcaption>A photo placeholder text</figcaption>
</figure>
<h2>Work in progress</h2>
<p>
The framework is still in development. If you want to contribute,
fork it and submit a <a href="https://github.com/yegor256/tacit">pull request</a>.
Your help is always appreciated.
</p>
</article>
<footer>
<nav>
<ul>
<li>
<small>Made by <a href="http://www.yegor256.com">Yegor Bugayenko</a>, 2015-2022</small>
</li>
</ul>
</nav>
<nav>
<ul>
<li><small><a href="https://github.com/yegor256/tacit">GitHub</a></small></li>
<li><small><a href="https://yegor256.github.io/tacit/tacit-css-VERSION.min.css">Download</a></small></li>
<li><small><a href="https://opensource.org/licenses/MIT">MIT license</a></small></li>
</ul>
</nav>
<nav>
<ul>
<li>
<a href="https://github.com/yegor256/tacit/stargazers">
<img src="https://img.shields.io/github/stars/yegor256/tacit.svg?style=flat-square" alt="github stars"/>
</a>
</li>
<li>
<a href="http://jigsaw.w3.org/css-validator/check/referer">
<img style="border:0;width:88px;height:31px"
src="http://jigsaw.w3.org/css-validator/images/vcss-blue"
alt="Valid CSS!" />
</a>
</li>
</ul>
</nav>
</footer>
</section>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-1963507-39', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>