├── .gitignore
├── README.md
├── package.json
├── base.css.map
├── base.css
├── base.scss
└── test.html
/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # My CSS
2 |
3 | Some utilities I like to have handy for CSS projects.
4 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "css",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "index.js",
6 | "scripts": {
7 | "start": "sass base.scss base.css"
8 | },
9 | "repository": {
10 | "type": "git",
11 | "url": "git+https://github.com/ireade/css.git"
12 | },
13 | "author": "",
14 | "license": "ISC",
15 | "bugs": {
16 | "url": "https://github.com/ireade/css/issues"
17 | },
18 | "homepage": "https://github.com/ireade/css#readme",
19 | "devDependencies": {
20 | "sass": "^1.15.2"
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/base.css.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sourceRoot":"","sources":["base.scss"],"names":[],"mappings":"AAAA;AAAA;AAAA;AAAA;AAAA;AAMA;AAAA;AAGA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAsBI;EACA;EACA;;;AAGJ;AAAA;AAGA;EACI;;;AAGJ;EACI;EACA;;;AAGJ;EACI;EACA;EACA;;;AAGJ;AAAA;EAEI;;;AAGJ;AAAA;AAGA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAOI;;;AAGJ;EACI;;;AAGJ;AAAA;EAEI;;;AAGJ;AAAA;AAGA;EACI;EACA;;;AAGJ;AAAA;EAEI;;;AAGJ;AAAA;EAEI;;;AAGJ;EACI;;;AAGJ;AAAA;EAEI;;;AAGJ;AAAA;AAAA;AAAA;EAII;EACA;;;AAGJ;AAAA;AAGA;EACI;;;AAGJ;EACI;;;AAGJ;EACI;;;AAGJ;AAAA;AAGA;EACI;EACA;EACA;EACA","file":"base.css"}
--------------------------------------------------------------------------------
/base.css:
--------------------------------------------------------------------------------
1 | /* ***********************************
2 | *
3 | * Ire's CSS Reset & Base
4 | *
5 | * *********************************** */
6 | /* Reset margin, padding, border
7 | * *********************************** */
8 | html, body,
9 | h1, h2, h3, h4, h5, h6,
10 | a, p, span,
11 | em, small, strong,
12 | sub, sup,
13 | mark, del, ins, strike,
14 | abbr, dfn,
15 | blockquote, q, cite,
16 | code, pre,
17 | ol, ul, li, dl, dt, dd,
18 | div, section, article,
19 | main, aside, nav,
20 | header, hgroup, footer,
21 | img, figure, figcaption,
22 | address, time,
23 | audio, video,
24 | canvas, iframe,
25 | details, summary,
26 | fieldset, form, label, legend,
27 | table, caption,
28 | tbody, tfoot, thead,
29 | tr, th, td {
30 | margin: 0;
31 | padding: 0;
32 | border: 0;
33 | }
34 |
35 | /* Typography
36 | * *********************************** */
37 | html {
38 | font-size: 62.5%;
39 | }
40 |
41 | body {
42 | font-size: 1.6rem;
43 | line-height: 1.4;
44 | }
45 |
46 | * {
47 | font-family: inherit;
48 | font-size: inherit;
49 | line-height: inherit;
50 | }
51 |
52 | a,
53 | a:visited {
54 | color: inherit;
55 | }
56 |
57 | /* Layout
58 | * *********************************** */
59 | article,
60 | aside,
61 | footer,
62 | header,
63 | nav,
64 | section,
65 | main {
66 | display: block;
67 | }
68 |
69 | * {
70 | box-sizing: border-box;
71 | }
72 |
73 | *:before,
74 | *:after {
75 | box-sizing: inherit;
76 | }
77 |
78 | /* Elements
79 | * *********************************** */
80 | table {
81 | border-collapse: collapse;
82 | border-spacing: 0;
83 | }
84 |
85 | ol,
86 | ul {
87 | list-style: none;
88 | }
89 |
90 | img,
91 | video {
92 | max-width: 100%;
93 | }
94 |
95 | img {
96 | border-style: none;
97 | }
98 |
99 | blockquote,
100 | q {
101 | quotes: none;
102 | }
103 |
104 | blockquote:after,
105 | blockquote:before,
106 | q:after,
107 | q:before {
108 | content: "";
109 | content: none;
110 | }
111 |
112 | /* Attributes & states
113 | * *********************************** */
114 | [hidden] {
115 | display: none !important;
116 | }
117 |
118 | [disabled] {
119 | cursor: not-allowed;
120 | }
121 |
122 | :focus:not(:focus-visible) {
123 | outline: none;
124 | }
125 |
126 | /* Utility classes
127 | * *********************************** */
128 | .sr-only {
129 | position: absolute;
130 | clip: rect(1px, 1px, 1px, 1px);
131 | left: -9999px;
132 | top: -9999px;
133 | }
134 |
135 | /*# sourceMappingURL=base.css.map */
136 |
--------------------------------------------------------------------------------
/base.scss:
--------------------------------------------------------------------------------
1 | /* ***********************************
2 | *
3 | * Ire's CSS Reset & Base
4 | *
5 | * *********************************** */
6 |
7 | /* Reset margin, padding, border
8 | * *********************************** */
9 |
10 | html, body,
11 | h1, h2, h3, h4, h5, h6,
12 | a, p, span,
13 | em, small, strong,
14 | sub, sup,
15 | mark, del, ins, strike,
16 | abbr, dfn,
17 | blockquote, q, cite,
18 | code, pre,
19 | ol, ul, li, dl, dt, dd,
20 | div, section, article,
21 | main, aside, nav,
22 | header, hgroup, footer,
23 | img, figure, figcaption,
24 | address, time,
25 | audio, video,
26 | canvas, iframe,
27 | details, summary,
28 | fieldset, form, label, legend,
29 | table, caption,
30 | tbody, tfoot, thead,
31 | tr, th, td {
32 | margin: 0;
33 | padding: 0;
34 | border: 0;
35 | }
36 |
37 | /* Typography
38 | * *********************************** */
39 |
40 | html {
41 | font-size: 62.5%;
42 | }
43 |
44 | body {
45 | font-size: 1.6rem;
46 | line-height: 1.4;
47 | }
48 |
49 | * {
50 | font-family: inherit;
51 | font-size: inherit;
52 | line-height: inherit;
53 | }
54 |
55 | a,
56 | a:visited {
57 | color: inherit;
58 | }
59 |
60 | /* Layout
61 | * *********************************** */
62 |
63 | article,
64 | aside,
65 | footer,
66 | header,
67 | nav,
68 | section,
69 | main {
70 | display: block;
71 | }
72 |
73 | * {
74 | box-sizing: border-box;
75 | }
76 |
77 | *:before,
78 | *:after {
79 | box-sizing: inherit;
80 | }
81 |
82 | /* Elements
83 | * *********************************** */
84 |
85 | table {
86 | border-collapse: collapse;
87 | border-spacing: 0;
88 | }
89 |
90 | ol,
91 | ul {
92 | list-style: none;
93 | }
94 |
95 | img,
96 | video {
97 | max-width: 100%;
98 | }
99 |
100 | img {
101 | border-style: none;
102 | }
103 |
104 | blockquote,
105 | q {
106 | quotes: none;
107 | }
108 |
109 | blockquote:after,
110 | blockquote:before,
111 | q:after,
112 | q:before {
113 | content: "";
114 | content: none;
115 | }
116 |
117 | /* Attributes & states
118 | * *********************************** */
119 |
120 | [hidden] {
121 | display: none !important;
122 | }
123 |
124 | [disabled] {
125 | cursor: not-allowed;
126 | }
127 |
128 | :focus:not(:focus-visible) {
129 | outline: none;
130 | }
131 |
132 | /* Utility classes
133 | * *********************************** */
134 |
135 | .sr-only {
136 | position: absolute;
137 | clip: rect(1px, 1px, 1px, 1px);
138 | left: -9999px;
139 | top: -9999px;
140 | }
141 |
--------------------------------------------------------------------------------
/test.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | HTML5 Test Page
7 |
8 |
9 |
10 |
11 |
12 |
16 |
17 |
58 |
59 |
60 |
61 |
62 |
63 |
66 |
67 |
Heading 1
68 | Heading 2
69 | Heading 3
70 | Heading 4
71 | Heading 5
72 | Heading 6
73 |
74 |
75 |
76 |
77 |
78 |
79 |
A paragraph (from the Greek paragraphos, “to write beside” or “written beside”) is a self-contained unit of a discourse in writing dealing with a particular point or idea. A paragraph consists of one or more sentences. Though not required by the syntax of any language, paragraphs are usually an expected part of formal writing, used to organize longer prose.
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 | A block quotation (also known as a long quotation or extract) is a quotation in a written document, that is set off from the main text as a paragraph, or block of text.
88 | It is typically distinguished visually using indentation and a different typeface or smaller size quotation. It may or may not include a citation, usually placed at the bottom.
89 | Said no one, ever.
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
Definition list
98 |
99 | Definition List Title
100 | This is a definition list division.
101 |
102 |
Ordered List
103 |
104 | List Item 1
105 | List Item 2
106 | List Item 3
107 |
108 |
Unordered List
109 |
110 | List Item 1
111 | List Item 2
112 | List Item 3
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 | Table Caption
128 |
129 |
130 | Table Heading 1
131 | Table Heading 2
132 | Table Heading 3
133 | Table Heading 4
134 | Table Heading 5
135 |
136 |
137 |
138 |
139 | Table Footer 1
140 | Table Footer 2
141 | Table Footer 3
142 | Table Footer 4
143 | Table Footer 5
144 |
145 |
146 |
147 |
148 | Table Cell 1
149 | Table Cell 2
150 | Table Cell 3
151 | Table Cell 4
152 | Table Cell 5
153 |
154 |
155 | Table Cell 1
156 | Table Cell 2
157 | Table Cell 3
158 | Table Cell 4
159 | Table Cell 5
160 |
161 |
162 | Table Cell 1
163 | Table Cell 2
164 | Table Cell 3
165 | Table Cell 4
166 | Table Cell 5
167 |
168 |
169 | Table Cell 1
170 | Table Cell 2
171 | Table Cell 3
172 | Table Cell 4
173 | Table Cell 5
174 |
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 |
Keyboard input: Cmd
183 |
Inline code: <div>code</div>
184 |
Sample output: This is sample output from a computer program.
185 |
Pre-formatted text
186 |
P R E F O R M A T T E D T E X T
187 | ! " # $ % & ' ( ) * + , - . /
188 | 0 1 2 3 4 5 6 7 8 9 : ; < = > ?
189 | @ A B C D E F G H I J K L M N O
190 | P Q R S T U V W X Y Z [ \ ] ^ _
191 | ` a b c d e f g h i j k l m n o
192 | p q r s t u v w x y z { | } ~
193 |
194 |
195 |
196 |
197 |
198 |
199 |
This is a text link .
200 |
Strong is used to indicate strong importance.
201 |
This text has added emphasis.
202 |
The b element is stylistically different text from normal text, without any special importance.
203 |
The i element is text that is offset from the normal text.
204 |
The u element is text with an unarticulated, though explicitly rendered, non-textual annotation.
205 |
This text is deleted and This text is inserted .
206 |
This text has a strikethrough .
207 |
Superscript® .
208 |
Subscript for things like H2 O.
209 |
This small text is small for for fine print, etc.
210 |
Abbreviation: HTML
211 |
This text is a short inline quotation.
212 |
This is a citation.
213 |
The dfn element indicates a definition.
214 |
The mark element indicates a highlight.
215 |
The variable element , such as x = y .
216 |
The time element: 2 weeks ago
217 |
218 |
219 |
220 |
231 |
232 |
233 |
234 |
235 |
236 |
237 |
No <figure> element
238 |
239 |
Wrapped in a <figure> element, no <figcaption>
240 |
241 |
Wrapped in a <figure> element, with a <figcaption>
242 |
243 |
244 | Here is a caption for this image.
245 |
246 |
247 |
248 |
249 |
250 |
251 |
252 |
253 |
254 |
255 |
256 | video
257 |
258 |
259 |
260 |
261 | canvas
262 |
263 |
264 |
265 |
266 | 2 out of 10
267 |
268 |
269 |
270 |
271 |
272 |
273 |
274 |
275 |
276 |
277 |
278 |
279 |
280 |
281 |
282 |
283 |
284 |
285 |
422 |
423 |
426 |
427 |
428 |
429 |
--------------------------------------------------------------------------------