Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 712e213

Browse files
committed
add modern reset
1 parent 821c6ac commit 712e213

5 files changed

Lines changed: 52 additions & 84 deletions

File tree

cv/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<meta charset="UTF-8">
77
<meta name="viewport" content="width=device-width, initial-scale=1">
88

9+
<link rel="stylesheet" href="../reset.css">
910
<link rel="stylesheet" href="styles.css">
1011
</head>
1112

cv/styles.css

Lines changed: 4 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,3 @@
1-
/* http://meyerweb.com/eric/tools/css/reset/
2-
v2.0 | 20110126
3-
License: none (public domain)
4-
*/
5-
6-
html, body, div, span, applet, object, iframe,
7-
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
8-
a, abbr, acronym, address, big, cite, code,
9-
del, dfn, em, img, ins, kbd, q, s, samp,
10-
small, strike, strong, sub, sup, tt, var,
11-
b, u, i, center,
12-
dl, dt, dd, ol, ul, li,
13-
fieldset, form, label, legend,
14-
table, caption, tbody, tfoot, thead, tr, th, td,
15-
article, aside, canvas, details, embed,
16-
figure, figcaption, footer, header, hgroup,
17-
menu, nav, output, ruby, section, summary,
18-
time, mark, audio, video {
19-
margin: 0;
20-
padding: 0;
21-
border: 0;
22-
font-size: 100%;
23-
font: inherit;
24-
vertical-align: baseline;
25-
}
26-
/* HTML5 display-role reset for older browsers */
27-
article, aside, details, figcaption, figure,
28-
footer, header, hgroup, menu, nav, section {
29-
display: block;
30-
}
31-
body {
32-
line-height: 1;
33-
}
34-
ol, ul {
35-
list-style: none;
36-
}
37-
/* page styles */
381
html {
392
font-family: Georgia, "Cambria", serif;
403
}
@@ -60,12 +23,6 @@ h1 {
6023
}
6124
}
6225

63-
@media print {
64-
.links, .links * {
65-
display: none;
66-
}
67-
}
68-
6926
h2 {
7027
font-size: 1.6em;
7128
font-weight: 600;
@@ -112,7 +69,7 @@ li {
11269
}
11370

11471
strong {
115-
text-size: 110%;
72+
font-size: 110%;
11673
font-weight:bold;
11774
}
11875

@@ -142,5 +99,7 @@ a, a:visited, a:hover, a:active {
14299
}
143100

144101
@media print {
145-
.pagebreak { page-break-before: always; }
102+
.pagebreak {
103+
page-break-before: always;
104+
}
146105
}

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<title>Hi! I'm Jan van Thoor</title>
55
<meta charset="UTF-8">
66
<meta name="viewport" content="width=device-width, initial-scale=1">
7+
<link rel="stylesheet" href="reset.css">
78
<link rel="stylesheet" href="styles.css">
89
<meta property="og:url" content="https://janvt.dev" />
910
<meta property="og:type" content="website" />

reset.css

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
/*
2+
1. Use a more-intuitive box-sizing model.
3+
*/
4+
*, *::before, *::after {
5+
box-sizing: border-box;
6+
}
7+
/*
8+
2. Remove default margin
9+
*/
10+
* {
11+
margin: 0;
12+
}
13+
/*
14+
Typographic tweaks!
15+
3. Add accessible line-height
16+
4. Improve text rendering
17+
*/
18+
body {
19+
line-height: 1.5;
20+
-webkit-font-smoothing: antialiased;
21+
}
22+
/*
23+
5. Improve media defaults
24+
*/
25+
img, picture, video, canvas, svg {
26+
display: block;
27+
max-width: 100%;
28+
}
29+
/*
30+
6. Remove built-in form typography styles
31+
*/
32+
input, button, textarea, select {
33+
font: inherit;
34+
}
35+
/*
36+
7. Avoid text overflows
37+
*/
38+
p, h1, h2, h3, h4, h5, h6 {
39+
overflow-wrap: break-word;
40+
}
41+
/*
42+
8. Create a root stacking context
43+
*/
44+
#root, #__next {
45+
isolation: isolate;
46+
}

styles.css

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,3 @@
1-
/* http://meyerweb.com/eric/tools/css/reset/
2-
v2.0 | 20110126
3-
License: none (public domain)
4-
*/
5-
6-
html, body, div, span, applet, object, iframe,
7-
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
8-
a, abbr, acronym, address, big, cite, code,
9-
del, dfn, em, img, ins, kbd, q, s, samp,
10-
small, strike, strong, sub, sup, tt, var,
11-
b, u, i, center,
12-
dl, dt, dd, ol, ul, li,
13-
fieldset, form, label, legend,
14-
table, caption, tbody, tfoot, thead, tr, th, td,
15-
article, aside, canvas, details, embed,
16-
figure, figcaption, footer, header, hgroup,
17-
menu, nav, output, ruby, section, summary,
18-
time, mark, audio, video {
19-
margin: 0;
20-
padding: 0;
21-
border: 0;
22-
font-size: 100%;
23-
font: inherit;
24-
vertical-align: baseline;
25-
}
26-
/* HTML5 display-role reset for older browsers */
27-
article, aside, details, figcaption, figure,
28-
footer, header, hgroup, menu, nav, section {
29-
display: block;
30-
}
31-
body {
32-
line-height: 1;
33-
background: #FAFAFA;
34-
}
35-
ol, ul {
36-
list-style: none;
37-
}
38-
39-
/* page styles */
401
html {
412
font-family: Georgia, "Cambria", serif;
423
}

0 commit comments

Comments
 (0)