all repos — nirvash @ 8fdc9ddb460f6dc76363da7c64bdae15927bf430

modular CMS using the quartzgun library

static/style.css (raw)

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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
body {
  padding: 0;
  margin: 0;
  font-family: sans;
  font-size: 16px;
  height: 100vh;
  background: black;
  color: white;
  background: url('/static/bg2.png');
  background-size: cover;
  background-position: top left;
  background-attachment: fixed;
}

.login-body {
  background: url('/static/bg.png');
  background-size: cover;
  background-position: center center;
}

.login {
  text-align: center;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  height: auto;
  top: 50%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  background-color: rgba(0,0,0,0.8);
  padding: 1em;
}

.login h1 {
  font-size: 225%;
  text-transform: uppercase;
  color: lightgray;
}

.login form input {
  display: block;
  margin: 1em;
  margin-left: auto;
  margin-right: auto;
  background: transparent;
  border: solid 2px lightgray;
  font-size: 200%;
  color: lightgray;
  padding: 0.2em;
}

.login form input[type="text"], login form input[type="password"] {
  transition: border 1s;
  outline: none;
}

.login form input:focus {
  border: solid 2px cyan;
  outline: none;
}


.login form input[type="submit"] {
  text-transform: uppercase;
  transition: background 1s, color 1s;
}

.login form input[type="submit"]:hover {
  background: lightgray;
  color: black;
}

.login .error {
  positon: relative;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  color: lightgray;
  border-bottom: 2px solid crimson;
  width: auto;
}

h1 {
  text-align: center;
  font-size: 225%;
  text-transform: uppercase;
  background: rgba(0,0,0,0.8);
  margin: 0;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
}

.login h1 {
  background: transparent;
}

nav {
  text-align: center;
    background: rgba(0,0,0,0.8);
      padding-top: 0.5em;
  padding-bottom: 0.5em;
  position: sticky;
  top: 0px;
}

nav ul {
  list-style: none;
}

nav ul li {
  display: inline;
  margin-left: 0.5em;
  margin-right: 0.5em;
}

a {
  color: white;
  font-weight: normal;
  text-decoration: underline;
}

a:hover {
  color: cyan;
}

a.new-page-button {
  position: sticky;
  top: 0;
  text-decoration: none;
  background: transparent;
  border: solid 2px lightgray;
  font-size: 150%;
  color: lightgray;
  padding: 0.2em;
  text-transform: uppercase;
  transition: background 1s, color 1s;
  float: right;
  z-index: 2;
}

a.new-page-button:hover {
  background: lightgray;
  color: black;
}

h2 {
  margin: 1em;
  font-size: 200%;
  text-transform: uppercase;
  background: rgba(0,0,0,0.8);
  display: block;
  border-left: 8px solid cyan;
  padding-left: 8px;
  position: sticky;
  top: 3em;
}

.page-list, form.editor, form.build, span.adapter-error, span.adapter-success, .danger-zone {
  width: 80%;
  max-width: 500px;
  background: rgba(0,0,0,0.8);
  padding: 2em;
  margin-left: auto;
  margin-right: auto;
  max-height: calc(100vh - 20em);
  overflow-y: auto;
}

form.editor label, form.build label {
  font-size: 80%;
  color: lightgray;
  text-transform: uppercase;
}

form.editor input, form.build input, form.editor textarea {
  display: block;
  margin: 0;
  margin-top: 0.2em;
  margin-bottom: 0.2em;
  background: transparent;
  border: solid 2px lightgray;
  color: lightgray;
  padding: 0.2em;
  transition: border 1s;
  outline: none;
}

form.editor input.title-input {
  margin: 0;
  width: 100%;
  font-size: 150%;
}

form.editor, .danger-zone {
  max-width: 80em;
}

form.editor textarea {
  margin: 0;
  width: 80em;
  font-size: 16px;
  height: 25em;
}

form.editor input[type="submit"], form.build input[type="submit"] {
  margin-left: auto;
  margin-right: 0;
  font-size: 150%;
  text-transform: uppercase;
  transition: background 1s, color 1s;
}

form.editor input[type="submit"]:hover {
  background: lightgray;
  color: black;
}

.edited-time {
  font-size: 75%;
  color: lightgray;
  float: right;
}

.page-list ul {
  margin: 0;
  position: relative;
  list-style: none;
  z-index: 1;
}

.page-list ul li a {
  line-height: 2em;
}

form input[hidden] {
  display: none;
}