-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
232 lines (226 loc) · 5.02 KB
/
style.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
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
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap');
:root {
--pico-font-size: 17px;
}
h2 {
--pico-font-size: 1.3rem;
--pico-typography-spacing-vertical: 2.25rem;
}
h1 {
font-style: normal;
font-weight: 700;
font-size: 50px;
font-family: 'Montserrat', sans-serif;
line-height: 56px;
text-transform: none;
letter-spacing: -2px;
color: #505050;
white-space: nowrap;
}
@media only screen and (prefers-color-scheme: dark) {
h1 {
color:#fff;
}
}
h1 span {
font-size: 70px;
vertical-align: middle;
}
h1 span:first-child {
letter-spacing: -14px;
}
h1 span:nth-child(2) {
position: relative;
letter-spacing: -15px;
z-index: 1;
}
h1 span:nth-child(3) {
color: #c39f76;
filter: blur(2px);
}
h1 span:nth-child(2):before {
content: "";
position: absolute;
top: 10px;
height: 28px;
border-left: 1.5px solid var(--pico-background-color);
border-top: 1.5px solid var(--pico-background-color);
width: 44px;
left: 2px;
border-top-left-radius: 41px 24px;
}
h1 span:nth-child(2):after {
content: "";
position: absolute;
bottom: 0;
left: 4.5px;
height: 37px;
border-left: 1.5px solid var(--pico-background-color);
z-index: 5;
}
body header h1 + p {
text-indent: 130px;
margin-top: -22px;
font-size: 15px;
}
body header > * {
margin: 5px;
}
body>footer, body>header, body>main {
padding: 0;
}
body header,
body footer {
text-align: center;
margin-bottom: 5px;
}
main {
display: grid;
grid-template-columns: repeat(auto-fill,minmax(280px,1fr));
grid-gap: 20px;
margin: 0 0 var(--pico-block-spacing-vertical);
}
nav {
padding: 0 var(--pico-spacing);
}
nav ul:first-child {
margin: 0 auto 20px;
}
@media (max-width: 992px) {
nav ul:first-child {
flex-wrap: wrap;
}
nav ul li {
flex: 30%;
}
}
@media (max-width: 767px) {
nav ul:first-child {
gap: 0;
}
nav ul li {
flex: 50%;
}
}
nav li {
padding: 0;
}
nav ul label {
cursor: pointer;
padding: calc(var(--pico-spacing) * .3) calc(var(--pico-spacing) * .5);
border-radius: 5px;
}
nav li label img {
border-radius: 50%;
}
nav li label[for=verpex] img,
nav li label[for=smashingmagazine] img {
border-radius: 0;
}
.hide {
visibility: hidden;
pointer-events: none;
position: absolute;
z-index: -9999;
}
#all:checked ~ nav [for=all],
#freecodecamp:checked ~ nav [for=freecodecamp],
#css-tricks:checked ~ nav [for=css-tricks],
#dev:checked ~ nav [for=dev],
#verpex:checked ~ nav [for=verpex],
#sitepoint:checked ~ nav [for=sitepoint],
#smashingmagazine:checked ~ nav [for=smashingmagazine],
#frontendmasters:checked ~ nav [for=frontendmasters] {
background-color: var(--pico-primary-focus);
}
#freecodecamp:checked ~ main article:not([data-type=freecodecamp]),
#css-tricks:checked ~ main article:not([data-type=css-tricks]),
#dev:checked ~ main article:not([data-type=dev]),
#verpex:checked ~ main article:not([data-type=verpex]),
#sitepoint:checked ~ main article:not([data-type=sitepoint]),
#smashingmagazine:checked ~ main article:not([data-type=smashingmagazine]),
#frontendmasters:checked ~ main article:not([data-type=frontendmasters]){
display: none;
}
.container-fluid {
max-width: 1200px;
}
section.me {
display: flex;
gap: 1em;
align-items: center;
}
section.me p {
font-size: 1.1rem;
margin-bottom: .5em;
}
section.me img {
--s: 240px;
--b: 5px;
--c: var(--pico-primary);
--f: 1;
width: var(--s);
aspect-ratio: 1;
box-sizing: content-box;
padding-top: calc(var(--s)/5);
margin-top: calc(var(--s)/-5);
cursor: pointer;
border-radius: 0 0 999px 999px;
--_g: 50%/calc(100%/var(--f)) 100% no-repeat content-box;
--_o: calc((1/var(--f) - 1)*var(--s)/2 - var(--b));
outline: var(--b) solid var(--c);
outline-offset: var(--_o);
background:
radial-gradient(
circle closest-side,
#e8e8e8 calc(99% - var(--b)),var(--c) calc(100% - var(--b)) 99%,#0000
) var(--_g);
-webkit-mask:
linear-gradient(#000 0 0) no-repeat
50% calc(1px - var(--_o)) / calc(100%/var(--f) - 2*var(--b) - 2px) 50%,
radial-gradient(circle closest-side,#000 99%,#0000) var(--_g);
transform: scale(var(--f));
transition: .5s;
}
section.me img:hover {
--f: 1.4; /* hover scale */
}
@media (max-width: 992px) {
section.me img {
display: none;
}
}
main article {
padding: 0;
margin: 0;
display: flex;
flex-direction: column;
}
main article div {
padding: 1rem;
display: flex;
flex-direction: column;
}
main article div h2 {
margin: 0;
}
main article img.featured {
aspect-ratio: 2.1;
object-fit: cover;
width: 100%;
}
main article a {
color: inherit;
text-decoration: none;
}
main article > a:last-child {
font-size: 0.8em;
margin: auto 1rem 1rem auto;
}
main article > a:last-child img {
border-radius: 50%;
margin-right: 5px;
}
main article > a:last-child img[alt=Verpex] {
border-radius: 0;
}