summaryrefslogtreecommitdiff
path: root/static/css/general_style.css
blob: a4e032e4ac4952e8f1cc345866f895bed98d6208 (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
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
163
164
165
:root {
  font-family: Verdana, Geneva, sans-serif;
  font-size: larger;
}

body {
  max-width: 50em;
  margin-top: 1em;
  margin-bottom: 1em;
  margin-left: auto;
  margin-right: auto;
  padding: 0.5em;
  text-align: center;
}

a{
  text-decoration: none;
}

/* switch */
/* slider container */
.switch {
  position: relative;
  display: inline-block;
  width: 2rem;
  height: 1rem;
}

/* specifically the theme switcher */
#theme-switcher-container {
  position: absolute;
  top: 1.6em;
  --hardcoded-pos: calc(50vw - 25.2em);
  --resized-pos: calc(0.4px + 0.5em);
  --calculated-pos: max(var(--hardcoded-pos), var(--resized-pos));
  right: var(--calculated-pos);
}

#theme-switcher-container i {
  position: relative;
  top: -0.2em;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* slider dimentions */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.slider:before {
  position:absolute;
  content: "";
  height: 0.8em;
  width: 0.8em;
  left: 0.1em;
  bottom: 0.1em;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

/* slider movement on click */
.switch input:checked + .slider:before {
  -webkit-transform: translateX(0.9em);
  -ms-transform: translateX(0.9em);
  transform: translateX(0.9em);
}

/* slider container */
.slider.round {
  border-radius: 1em;
}

/* slider */
.slider.round:before {
  border-radius: 1em;
}

/* menu bar (header) */
header {
  margin-top: 1em;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.menubar {
  display: inline-block;
  margin: 0;
  padding: 0;
}

.menubar li {
  display: block;
  float: left;
  min-width: 2em;
  max-width: 10em;
  padding-top: 0.2em;
  padding-bottom: 0.2em;
  padding-left: 0.4em;
  padding-right: 0.4em;
  margin-left: 0.2em;
  margin-right: 0.2em;
}

.menubar ul {
  visibility: hidden;
  position: absolute;
  padding-top: 0.2em;
  padding-bottom: 0.2em;
  margin-left: -2.6em;
  min-width: 2em;
  max-width: 10em;
}

.menubar li:hover ul {
  visibility: visible;
}

/* keep subitmes as list */
.menubar li ul li{
  float: none;
  margin-top: 0.4em;
}

/* separation from icon */
.menubar span {
  padding-left: 0.4em;
}

/* footer */
footer {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* image gallery (not really being used rn) */
div.gallery {
  margin: 5px;
  border: 1px solid;
  float: left;
  width: 180px;
}

div.gallery img {
  width: 100%;
  height: auto;
}

div.desc {
  padding: 15px;
  text-align: center;
}