-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreset.css
146 lines (125 loc) · 2.34 KB
/
reset.css
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
/* https://hankchizljaw.com/wrote/a-modern-css-reset/ */
/* Box sizing rules */
*,
*::before,
*::after {
box-sizing: border-box;
}
/* Remove default padding */
ul[class],
ol[class] {
padding: 0;
}
/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
ul[class],
ol[class],
li,
figure,
figcaption,
blockquote,
dl,
dd {
margin: 0;
}
/* Set core body defaults */
body {
min-height: 100vh;
scroll-behavior: smooth;
text-rendering: optimizeSpeed;
line-height: 1.5;
background-image: url(assets/background.webp);
background-repeat: no-repeat;
background-size: cover; /* Ensures the image covers the entire background */
background-position: center; /* Centers the background image */
background-attachment: fixed; /* Keeps the background fixed while scrolling */
}
/* add padding */
ol, h2, h3, h4, h5, h6 {
padding: 1.2em 20vw 0;
}
p {
padding: 0.8em 20vw 0.4em;
}
ul {
padding: 0 24vw;
}
table {
padding: 0.8em 20vw 0.4em;
}
td {
vertical-align: top;
}
.time {
width: 150px;
}
/* change fonts */
p, ul, ol, a, td {
font-family: "Didact Gothic", sans-serif;
font-weight: 400;
font-style: normal;
font-size: 20px;
}
h1 {
color: #6aa8ae;
}
h2, h3, h4, h5, h6 {
/* font-family: 'Courier New', Courier, monospace; */
font-family: 'JetBrains Mono', monospace;
/* color: #6aa8ae; */
color: #b3a586;
}
/* Remove list styles on ul, ol elements with a class attribute */
ul[class],
ol[class] {
list-style: none;
}
a {
color: #6aa8ae;
transition: 0.4s ease-in-out;
}
a:hover {
color: #b3a586;
}
/* A elements that don't have a class get default styles */
/* a:not([class]) {
text-decoration-skip-ink: auto;
} */
/* Make images easier to work with */
img {
max-width: 100%;
/*display: block;*/
}
/* Natural flow and rhythm in articles by default */
article > * + * {
margin-top: 1em;
}
/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
font: inherit;
}
/* Remove all animations and transitions for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
* {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}
@media (max-width: 600px) {
p, ul, ol, h1, h2, h3, h4, h5, h6, table {
padding: 0 7.5vw;
}
.time {
width: 50px;
}
}