-
Notifications
You must be signed in to change notification settings - Fork 7
/
styles.scss
93 lines (82 loc) · 1.36 KB
/
styles.scss
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
@use 'baselinegrid' as bg with (
$debug: 1
);
@import url(node_modules/sanitize.css/sanitize.css);
@include bg.begin();
html {
font-family: Georgia, serif;
@include bg.root();
}
article {
@include bg.pad-scale();
transition: padding .3s cubic-bezier(.65,.05,.36,1);
> section {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(bg.h(18), 1fr));
column-gap: bg.h();
padding: bg.v() 0;
}
}
h1, h2 {
font-family: Verdana, sans-serif;
}
h1, h2, p {
max-width: bg.h(40);
margin: 0;
transition: all .3s cubic-bezier(.65,.05,.36,1);
}
h1 {
@include bg.scale('font-size', (
'xs': 35px,
's': 38px,
'm': 60px,
'l': 65px,
'xl': 70px,
'xxl': 73px
));
}
h2 {
@include bg.scale('font-size', (
'xs': 30px,
's': 34px,
'm': 42px,
'l': 44px,
'xl': 48px,
'xxl': 52px
));
}
p {
@include bg.set();
}
section {
p, figcaption {
&:nth-of-type(1) {
@include bg.set();
}
&:nth-of-type(2) {
@include bg.set(23px);
}
&:nth-of-type(3) {
@include bg.set(11px);
padding-top: bg.v();
}
}
}
figure {
margin: 0;
padding-top: bg.v();
img {
width: 100%;
object-fit: cover;
height: bg.v(20);
display: block;
}
}
#gridblock {
position: fixed;
top: 0;
left: bg.h();
width: bg.h();
height: bg.v();
background-color: red;
}