-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
162 lines (131 loc) · 3.82 KB
/
index.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
:root {
--section-padding: 1em;
--section-left-padding: var(--section-padding);
--section-right-padding: var(--section-padding);
--box-shadow-2: 0 2px 2px 0 rgba(0, 0, 0, .14), 0 3px 1px -2px rgba(0, 0, 0, .2), 0 1px 5px 0 rgba(0, 0, 0, .12);
--box-shadow-3: 0 3px 4px 0 rgba(0, 0, 0, .14), 0 3px 3px -2px rgba(0, 0, 0, .2), 0 1px 8px 0 rgba(0, 0, 0, .12);
--box-shadow-4: 0 4px 5px 0 rgba(0, 0, 0, .14), 0 1px 10px 0 rgba(0, 0, 0, .12), 0 2px 4px -1px rgba(0, 0, 0, .2);
--box-shadow-6: 0 6px 10px 0 rgba(0, 0, 0, .14), 0 1px 18px 0 rgba(0, 0, 0, .12), 0 3px 5px -1px rgba(0, 0, 0, .2);
--box-shadow-8: 0 8px 10px 1px rgba(0, 0, 0, .14), 0 3px 14px 2px rgba(0, 0, 0, .12), 0 5px 5px -3px rgba(0, 0, 0, .2);
--box-shadow-16: 0 16px 24px 2px rgba(0, 0, 0, .14), 0 6px 30px 5px rgba(0, 0, 0, .12), 0 8px 10px -5px rgba(0, 0, 0, .2);
}
html,
body {
font-family: 'Fira Sans', sans-serif;
color: var(--color-2);
}
header {
display: grid;
justify-content: center;
align-content: center;
height: 100vh;
background-color: var(--color-primary-lighter);
color: var(--color-primary-darker);
text-align: center;
}
header > .name {
font-family: 'Alfa Slab One', serif;
font-size: 3.5em;
}
header > .name span.aux { color: var(--color-primary-dark); }
header > .tagline {
font-family: 'Fira Sans', sans-serif;
font-weight: bold;
font-size: 1.5em;
}
header > .tagline > span.item.bigger + span.item:before { content: attr(data-separator) " "; }
header > .tagline > span.item.bigger { font-size: 1.25em; }
header > .tagline > span.item::after {
font-size: var(--tagline-font-size);
content: " " attr(data-separator);
}
header > .tagline > span:last-child:after,
header > .tagline > span.bigger:after {
content: "";
}
@media screen and (max-width: 512px) {
header > .name .aux {
display: none;
}
header > .tagline {
display: none;
}
}
section {
background-color: var(--section-bg-primary);
align-items: center;
justify-content: center;
}
#about .inner > p > b { color: var(--color-secondary-0-dark); }
#projects .inner > p > b { color: var(--color-secondary-1-dark); }
section:nth-of-type(2) {
background-color: var(--section-bg-secondary);
}
.example {
display: grid;
margin: 1em 2em 1em 2em;
font-size: 90%;
box-shadow: var(--box-shadow-2);
padding: 16pt;
transition: box-shadow 0.125s ease-in-out;
border-radius: 4pt;
background-color: var(--section-bg-primary);
}
.example > * {
margin-top: 0;
margin-bottom: 0;
}
.example:hover {
box-shadow: var(--box-shadow-8);
transition: box-shadow 0.125s ease-in-out;
z-index: 1;
}
.example p.description { font-style: italic; }
.example.e31 { grid-template-columns: 3fr 1fr; }
.example.e4 { grid-template-columns: 4fr; }
.example.e13 { grid-template-columns: 1fr 3fr; }
.example:first-of-type { margin-top: 2em; }
.example:last-of-type { margin-bottom: 2em; }
.example { grid-row-gap: 0em; grid-column-gap: 1em; }
.example > h1 { align-self: flex-end; }
.example > .text { align-self: flex-start; }
.example > .left { grid-column: 1; }
.example > .right { grid-column: 2; }
.example > h1 { display: flex; flex-direction: row; justify-content: space-between; }
.example > h1 > * { flex: 0 1 auto; }
.example > h1 > .links {
font-weight: 500;
color: var(--section-fg-primary-lighter);
}
.example > h1 > .links a { padding-right: 1em; }
.example > h1 > .links a:last-child { padding-right: 0; }
.example > .image {
display: grid;
justify-content: center;
align-items: center;
grid-row: span 2;
}
.example > .text {
display: flex;
text-align: justify;
flex-direction: column;
justify-content: flex-start;
grid-row: 2;
}
.example img {
max-width: 100%;
}
@media screen and (max-width: 768px) {
.example,
.example.e31,
.example.e4,
.example.e13 {
grid-template-columns: auto;
}
.example > h1 > .links {
margin-right: 0;
}
.example > .image, img#aao-screenshot {
display: none;
}
}