This repository has been archived by the owner on Oct 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
103 lines (86 loc) · 1.58 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
body {
display: grid;
grid-template-columns: 1fr;
grid-template-rows: 3rem 1fr 2rem;
gap: 0px 0px;
grid-auto-flow: row;
grid-template-areas:
"nav"
"main"
"footer";
background-color: var(--background-color);
}
nav {
grid-area: nav;
display: flex;
}
nav a,
nav div {
flex-grow: 1;
height: 100%;
display: grid;
place-content: center;
border: 0.5rem solid var(--background-color);
border-top: 0px;
transition: 0.3s;
cursor: pointer;
border-radius: 0 0 1rem 1rem;
background-color: var(--background2-color);
color: var(--text-color);
text-decoration: none;
}
nav a:first-child,
nav div:first-child {
border-left: 0;
border-bottom-left-radius: 0;
}
nav a:last-child,
nav div:last-child {
border-right: 0;
border-bottom-right-radius: 0;
}
nav a:hover,
nav div:hover {
background-color: var(--background3-color);
color: var(--accent-color);
}
/*
Main
*/
#main {
grid-area: main;
width: 100%;
height: 100%;
padding-bottom: 0.5rem;
}
/*
Footer
*/
footer {
grid-area: footer;
background-color: var(--background2-color);
display: grid;
place-items: center;
}
footer a {
color: #fff;
text-decoration: none;
}
footer a:hover {
text-decoration: underline;
}
/* Small screens */
@media screen and (max-width: 580px) {
body {
grid-template-rows: min-content 1fr 2rem;
}
nav {
flex-direction: column;
}
nav a,
nav div {
border: 0;
border-radius: 0;
padding: 0.5rem;
}
}