Skip to content

Commit 33a6e5d

Browse files
committed
honour brwoser font size
1 parent 2528335 commit 33a6e5d

4 files changed

Lines changed: 30 additions & 26 deletions

File tree

assets/scss/baseline.scss

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
html, body {
66
line-height: 1.7;
77
font-family: $font-family-base;
8-
font-size: 12pt;
98
padding: 0;
109
margin: 0;
1110
}
@@ -102,8 +101,8 @@ section.arrow {
102101
}
103102

104103
section.arrow::after {
105-
--width: 60px;
106-
--height: 45px;
104+
--width: 3rem;
105+
--height: 2.5rem;
107106

108107
left: 50%;
109108
margin-left: #{"calc(-1 * var(--width))"};
@@ -129,7 +128,7 @@ pre {
129128
blockquote {
130129
padding: 0.5rem 1.5rem;
131130
margin-left: 1rem;
132-
border-left: 4px solid #ddd;
131+
border-left: 0.25rem solid #ddd;
133132
color: #777;
134133
}
135134

assets/scss/features.scss

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
background: white;
1212
color: #212730;
1313
border: 1px solid #ddd;
14-
border-radius: 4px;
14+
border-radius: 0.25rem;
1515
padding: 1rem 2rem;
1616
display: inline-block;
1717
margin: 1rem auto;
@@ -55,7 +55,7 @@
5555

5656
.button {
5757
background: var(--background-1);
58-
box-shadow: $border-color 0 5px;
58+
box-shadow: $border-color 0 0.25rem;
5959
border: 1px solid $border-color;
6060

6161
&, &:visited, &:hover {
@@ -68,7 +68,7 @@
6868

6969
.primary &, .primary-1 &, .stage & {
7070
background: rgba(255, 255, 255, 0.7);
71-
box-shadow: rgba(0, 0, 0, 0.6) 0 5px;
71+
box-shadow: rgba(0, 0, 0, 0.6) 0 0.25rem;
7272
border: none;
7373

7474
&, &:visited, &:hover {
@@ -89,7 +89,7 @@
8989
transition: all 0.25s ease-out;
9090

9191
&:hover {
92-
transform: translateY(-3px);
92+
transform: translateY(-0.15rem);
9393
}
9494
}
9595
}
@@ -215,27 +215,29 @@
215215
}
216216

217217
.play {
218-
height: 72px;
219-
width: 72px;
218+
height: 5rem;
219+
width: 5rem;
220220
left: 50%;
221221
top: 50%;
222-
margin-left: -36px;
223-
margin-top: -36px;
222+
transform: translate(-50%, -50%);
224223
position: absolute;
225224
background: url("../images/play.png") no-repeat;
225+
background-size: 100%;
226226
z-index: 1;
227227
cursor: pointer;
228228
}
229229

230230
.comment {
231231
left: 50%;
232232
top: 50%;
233-
transform: translate(-50%, 50px);
233+
transform: translate(-50%, 3rem);
234234
position: absolute;
235235
z-index: 1;
236236
cursor: pointer;
237237
color: white;
238238
text-align: center;
239+
text-shadow: 0 0 0.25rem black;
240+
font-weight: 500;
239241
}
240242
}
241243

@@ -273,7 +275,7 @@
273275
animation: stage-scroll-effect linear;
274276
animation-duration: 1ms;
275277
animation-timeline: view();
276-
animation-range: exit -60px;
278+
animation-range: exit #{"-"}$menu-height;
277279
}
278280
}
279281

@@ -294,7 +296,7 @@
294296
font-size: #{"min(max(1.5rem, 4.5vw), 4rem)"};
295297
font-weight: 300;
296298
margin: 0;
297-
text-shadow: 0 0 10px black;
299+
text-shadow: 0 0 1rem black;
298300

299301
@media ($media-mobile) {
300302
font-weight: 500;
@@ -356,7 +358,7 @@
356358

357359
.label {
358360
order: -2;
359-
height: 40px;
361+
height: 2rem;
360362
align-self: center;
361363
display: flex;
362364
justify-content: center;
@@ -382,7 +384,7 @@
382384
img {
383385
margin-block: 1rem;
384386
width: 70%;
385-
height: 200px;
387+
height: 8rem;
386388
object-fit: contain;
387389
align-self: center;
388390
}

assets/scss/layout.scss

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
color: white;
55
display: flex;
66
align-items: center;
7-
height: 60px;
8-
padding: 0 16px;
7+
height: $menu-height;
8+
padding: 0 1rem;
99
position: sticky;
1010
top: 0;
1111
z-index: 10000;
@@ -25,8 +25,8 @@
2525
padding: 0;
2626

2727
svg {
28-
width: 50px;
29-
height: 50px;
28+
width: 3rem;
29+
height: 3rem;
3030
margin: 0;
3131
display: block;
3232
align-self: center;
@@ -258,13 +258,14 @@ footer {
258258
display: none;
259259
z-index: 1;
260260

261-
height: #{"calc(100vh - 100px)"};
262-
box-shadow: 0 10px 10px -5px rgba(0, 0, 0, 0.1);
261+
height: #{"calc(100vh - "} $menu-height #{" - "} $submenu-height #{")"};
262+
box-shadow: 0 1rem 1rem -0.5rem rgba(0, 0, 0, 0.1);
263263
border-bottom: 1px solid $border-color;
264264
}
265265

266266
> main {
267267
padding: 1rem;
268+
min-width: 0;
268269
}
269270
}
270271

@@ -340,13 +341,13 @@ input[name='mobile-menu'] {
340341

341342
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
342343
padding: 0 1rem;
343-
height: 40px;
344+
height: $submenu-height;
344345
display: flex;
345346
align-items: center;
346347
justify-content: space-between;
347348
gap: 1rem;
348349

349-
.inline-svg { height: 16px; }
350+
.inline-svg { height: 1rem; }
350351
label {
351352
flex: 1 1 auto;
352353
white-space: nowrap;

assets/scss/variables.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ $font-family-base: $font-family-sans-serif !default;
1919

2020
$font-size-small: 0.85rem;
2121
$font-size-base: 1rem;
22+
$menu-height: 3.75rem;
23+
$submenu-height: 2.5rem;
2224

23-
$desktop-size: 1024px;
25+
$desktop-size: 1280px;
2426
$media-mobile: screen and (max-width: ($desktop-size - 1px));
2527
$media-desktop: screen and (min-width: $desktop-size);
2628

0 commit comments

Comments
 (0)