-
-
Notifications
You must be signed in to change notification settings - Fork 43
/
_layout.scss
124 lines (103 loc) · 1.97 KB
/
_layout.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
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
$mobile-breakpoint: 47.99em;
* {
box-sizing: border-box;
margin: 0;
padding: 0;
border: 0;
font: inherit;
color: inherit;
vertical-align: baseline;
&::before,
&::after {
box-sizing: border-box;
}
}
html {
box-sizing: inherit;
overflow-x: hidden;
scroll-behavior: smooth;
height: 100%;
}
::selection {
background: $accent-color
}
body {
@include size(p);
display: flex;
flex-direction: column;
justify-content: space-between;
height: 100%;
color: $primary-fg-color;
font-family: $font-body;
line-height: $base-line-height;
background-color: $secondary-bg-color;
}
main {
transition: .4s ease-in;
&::before {
background-color: $primary-bg-color;
}
&.active {
transform: translate(-100vw, 0);
opacity: 0.4;
}
}
header {
height: 100%;
min-height: 100%;
background-color: $primary-bg-color;
color: $primary-fg-color;
div {
z-index: 101;
}
h1, h2, h3 {
font-family: $font-tagline;
color: $tagline-color;
}
img {
// max-height: $vertical-rhythm * 6;
// max-width: 100%;
height: auto;
// Actually not needed, but in case some CSS is overwritten for bad:
object-fit: contain;
}
}
.container {
max-width: 43.75rem; // 700px
margin: auto;
padding: $vertical-rhythm * 4 0 $vertical-rhythm * 4;
}
@media (max-width: 25em) {
body .container {
padding: $vertical-rhythm * 4 $vertical-rhythm;
}
}
@media (max-width: $mobile-breakpoint) {
body .container {
padding: $vertical-rhythm * 4 $vertical-rhythm;
}
.mobile-hidden {
visibility: hidden;
}
}
footer {
height: $vertical-rhythm * 8;
background-color: $footer-bg-color;
// display: block;
padding-bottom: 2em;
// overflow: hidden;
// a {
// color: $footer-icon-color;
// }
.social {
margin-top: $vertical-rhythm * 2;
margin-bottom: $vertical-rhythm * 2;
.icon {
color: $footer-icon-color;
font-size: 2em;
}
}
small {
color: $footer-text-color;
}
}