-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
81 lines (68 loc) · 1.36 KB
/
styles.css
File metadata and controls
81 lines (68 loc) · 1.36 KB
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
*,
*::before,
*::after {
box-sizing: border-box;
}
:root {
--text: #e7ffd6;
--background: #1c0523;
--primary: #73d831;
--secondary: #a0ee6d;
--accent: #7d1ba0;
scroll-behavior: smooth;
}
body {
margin: 0;
font-family: Verdana, Geneva, Tahoma, sans-serif;
background-color: var(--background);
color: var(--text);
display: flex;
}
main {
margin-inline: 2rem;
}
p {
max-width: 75ch;
}
a {
color: inherit;
&:hover {
color: var(--secondary);
}
}
aside {
position: relative;
& h1 {
color: var(--primary);
background-color: var(--accent);
text-align: center;
padding: 1rem;
margin: 0;
border-bottom: 2px solid var(--background);
}
& nav {
display: flex;
flex-direction: column;
align-items: center;
row-gap: 2px;
& a {
width: 100%;
text-align: center;
padding-block: 1rem;
background-color: var(--primary);
color: var(--accent);
text-decoration: none;
transition: background-color 250ms, color 250ms;
&:hover {
background-color: var(--secondary);
color: var(--background);
}
}
}
}
h2 ~ * {
margin-left: 2rem;
}
h3 ~ *:not(h3) {
margin-left: 4rem;
}