blob: a8b4cbc48fc15ef5c36489ad1d87b36bc3cb9740 (
plain)
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
|
/*******************************************************************************
* Reset
******************************************************************************/
* {
box-sizing: border-box;
padding: 0;
margin: 0;
}
html {
scroll-behavior: smooth;
}
/*******************************************************************************
* Flexbox and base colors
******************************************************************************/
body {
display: flex;
justify-content: center;
min-height: 100vh;
color: #222;
background: #c0c0c0;
}
body.dark-theme {
color: #eee;
background: #121212;
}
.container {
display: flex;
flex-direction: column;
}
.sidebar {
background: #eeeeee;
}
body.dark-theme .sidebar {
background: #333333;
}
main {
background: #ffffff;
}
body.dark-theme main {
background: #444;
}
/*******************************************************************************
* Desktop
******************************************************************************/
@media (min-width: 768px) {
.container {
flex-direction: row;
flex-wrap: wrap;
width: 80vw;
}
main {
order: 2;
flex: 5;
min-height: 100vh;
}
.sidebar {
order: 1;
flex: 1;
}
}
/*******************************************************************************
* Elements
******************************************************************************/
a {
color: #ff0000;
}
body.dark-theme a {
color: #ff0000;
}
img {
width: 100%;
object-fit: cover;
}
/*******************************************************************************
* Navigaton
******************************************************************************/
nav {
position: sticky;
top: 2rem;
white-space: nowrap;
}
nav ul {
list-style: none;
margin: 0;
padding: 0;
}
nav ul li a {
display: block;
padding: 0.5rem 1rem;
color: red;
text-decoration: none;
}
nav ul li.active {
background: black;
transition: all 200ms ease-in-out;
}
|