blob: bc93d42a4b8ba3be04ca6732e65e843804996118 (
plain) (
blame)
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
|
/* Change the maximum width of content (stuff inside pages and navbar),
* depending on width of browser window.
* Configuration copied from default Bootstrap
*/
@media (min-width: 576px) {
:root {
--max-content-width: 540px;
}
}
@media (min-width: 768px) {
:root {
--max-content-width: 720px;
}
}
@media (min-width: 992px) {
:root {
--max-content-width: 960px;
}
}
@media (min-width: 1200px) {
:root {
--max-content-width: 1140px;
}
}
/* Main */
.main {
width: 100%;
height: 100%;
}
/* Stuff that you need in the middle portion
* of the screen (like the stuff inside the
* navbar and footer) should be inside
* an element with this tag
*/
.middle-content-container {
max-width: var(--max-content-width);
margin-left: auto;
margin-right: auto;
}
/* Navbar and footer */
.navbar {
width: 100%;
background-color: white;
}
.navbar, footer {
padding-top: 8px;
padding-bottom: 8px;
}
.navbar a {
padding-left: 5px;
padding-right: 5px;
text-decoration: none;
color: #343a40;
}
.navbar a:hover {
color: black;
}
.navbar-contents {
width: 100%;
display: flex;
padding-right: 15px;
padding-left: 15px;
}
.navbar-contents > * {
display: flex;
align-items: center;
justify-content: center;
}
/* Forms */
form {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
max-width: 300px;
margin-left: auto;
margin-right: auto;
}
.main > div > form {
margin-top: 10px;
}
form > * {
width: 100%;
box-sizing: border-box;
}
input {
margin: 5px;
padding: 9px;
border: 1px solid darkgrey;
border-radius: 4px;
}
input[type="submit"] {
color: white;
background-color: black;
}
.form-error {
font-size: 0.8em;
color: red;
}
/* Other general stuff */
.flex-spacer {
flex: 1;
}
|