-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathindex.html
163 lines (129 loc) · 4.02 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1" />
<title>Construct.css - Focus on the content and structure of your HTML</title>
<!-- FONTS. -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Pangolin" />
<!-- STYLES. -->
<link rel="stylesheet" href="./css/sanitize.css" />
<link rel="stylesheet" href="./css/construct.css" />
</head>
<body>
<header role="banner">
<h1>
Construct.css
</h1>
<hr />
</header>
<main role="main">
<article>
<blockquote>
<p>
"<b>Construct.css</b> - Focus on the content and structure of your HTML"
</p>
</blockquote>
<p>
To see how your site looks with Construct's HTML debugger, snag this bookmarklet.
</p>
<p>
<b>
<a href="javascript:(function(d){var%20f=Array.prototype.forEach;var%20linkTags=d.querySelectorAll('[rel=\'stylesheet\']');var%20styleTags=d.querySelectorAll('style');f.call(linkTags,function(x){x.rel=''});f.call(styleTags,function(x){x.innerHTML=''});var%20newLink=d.createElement('link');newLink.rel='stylesheet';newLink.href='https://t7.github.io/construct.css/css/bookmarklet.css';d.head.appendChild(newLink)})(document);">
Deconstruct!
</a>
</b>
</p>
<hr />
<p>
Read more about the reasoning behind this project.
</p>
<ul>
<li>
<a href="https://css-tricks.com/introducing-trashy-css">https://css-tricks.com/introducing-trashy-css</a>
</li>
</ul>
<p>
(It was initially called Trashy.css but was renamed.)
</p>
<hr />
<p>
This is just a silly idea, a CSS "library" that styles tags directly — as opposed to using <code>class</code> names as style hooks — to help people become more familiar with how to use semantic HTML.
</p>
<p>
It builds incrementally from a common base, then also includes "boxes" and "theme" CSS files. These allow a user to visually see what would otherwise be invisible semantic tags, and adds a hand drawn effect to prevent observers from paying too much attention to the aesthetics of a document.
</p>
<p>
Below are links to the same underlying HTML structure, but with different CSS files applied.
</p>
<ul>
<li>
<p>
<a href="./example.html">
Example page: <code>construct.css</code>
</a>
</p>
</li>
<li>
<p>
<a href="./example-boxes.html">
Example page: <code>construct.boxes.css</code>
</a>
</p>
</li>
<li>
<p>
<a href="./example-theme.html">
Example page: <code>construct.theme.css</code>
</a>
</p>
</li>
<li>
<p>
<a href="./example-boxes-and-theme.html">
Example page: <code>construct.boxes.css</code> + <code>construct.theme.css</code>
</a>
</p>
</li>
<li>
<p>
<a href="./example-no-css.html">
Example page: no CSS
</a>
</p>
</li>
</ul>
<p>
It also includes an additional <code>construct.debug.css</code> file, that can be used to flag invalid or incomplete HTML.
</p>
<ul>
<li>
<p>
<a href="./example-invalid.html">Example page: invalid HTML</a>
</p>
</li>
<li>
<p>
<a href="./example-invalid-with-debug.html">Example page: invalid HTML + <code>construct.debug.css</code></a>
</p>
</li>
</ul>
<p>
View the project repository here.
</p>
<ul>
<li>
<a href="https://github.com/t7/construct.css">https://github.com/t7/construct.css</a>
</li>
</ul>
</article>
</main>
<footer role="contentinfo">
<hr />
<p>
NOTE: Construct uses <a href="https://csstools.github.io/sanitize.css/">Sanitize</a> as a CSS "reset."
</p>
</footer>
</body>
</html>