-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
130 lines (108 loc) · 1.82 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
:root {
--line-color: rgb(189, 172, 154);
--bg-color: rgb(75, 70, 65);
--panel-color: rgba(188, 169, 151, 0.18);
--main-color: rgb(158, 141, 125);
--text-color-inverted: rgb(48, 35, 28);
--highlight-color: rgb(148, 167, 101);
}
@media (max-aspect-ratio: 9/19) {
body {
grid-template-rows: 1fr 1fr 1fr;
grid-template-columns: 0fr 2fr 0fr;
font-size: 1.5em;
row-gap: 2em;
}
#nav {
align-self: flex-end;
}
#footer {
align-self: flex-start;
}
}
* {
box-sizing: border-box;
}
body {
background-color: var(--bg-color);
color: var(--main-color);
padding: 1em;
margin: 0;
height: 100vh;
}
body {
display: grid;
grid-template-columns: 0.5fr 2fr 0.5fr;
grid-template-rows: 0.3fr 2.4fr 0.3fr;
row-gap: 1em;
grid-template-areas:
". header ."
". main ."
". footer .";
align-items: center;
justify-content: center;
}
main {
grid-area: main;
display: flex;
justify-content: center;
}
a {
color: var(--main-color);
text-decoration: underline solid var(--highlight-color);
}
a:visited {
color: inherit;
}
a:hover {
color: var(--highlight-color);
}
hr {
border: none;
border-top: 1px solid var(--line-color);
}
h1, h2, h3, h4 {
margin: 0;
margin-bottom: 0.25em;
padding: 0;
/* display: block; */
}
/* Utils */
.faded {
opacity: 0.3
}
.hidden {
display: none !important;
}
.title {
text-transform: uppercase;
}
.title:first-letter {
font-size: 1.5em;
}
.panel {
background-color: var(--panel-color);
padding: 1em;
}
/* Elements */
#contact {
cursor: pointer;
}
#nav {
grid-area: header;
display: flex;
column-gap: 1em;
/* flex: 1; */
justify-content: space-evenly;
}
#nav a {
text-decoration: none;
}
#contact {
cursor: pointer;
}
#footer {
grid-area: footer;
/* text-align: center; */
justify-self: center;
}