Przeglądaj źródła

New theme color Clear Digits added

master
Dirk Alders 1 rok temu
rodzic
commit
13a8d8ebc4
94 zmienionych plików z 799 dodań i 0 usunięć
  1. 1
    0
      __init__.py
  2. BIN
      static/themes/clear-digits/1st-color/0.png
  3. BIN
      static/themes/clear-digits/1st-color/1.png
  4. BIN
      static/themes/clear-digits/1st-color/2.png
  5. BIN
      static/themes/clear-digits/1st-color/3.png
  6. BIN
      static/themes/clear-digits/1st-color/4.png
  7. BIN
      static/themes/clear-digits/1st-color/5.png
  8. BIN
      static/themes/clear-digits/1st-color/6.png
  9. BIN
      static/themes/clear-digits/1st-color/7.png
  10. BIN
      static/themes/clear-digits/1st-color/8.png
  11. BIN
      static/themes/clear-digits/1st-color/9.png
  12. BIN
      static/themes/clear-digits/1st-color/admin.png
  13. BIN
      static/themes/clear-digits/1st-color/back.png
  14. BIN
      static/themes/clear-digits/1st-color/delete.png
  15. BIN
      static/themes/clear-digits/1st-color/display.png
  16. BIN
      static/themes/clear-digits/1st-color/download.png
  17. BIN
      static/themes/clear-digits/1st-color/download_flat.png
  18. BIN
      static/themes/clear-digits/1st-color/edit.png
  19. BIN
      static/themes/clear-digits/1st-color/edit2.png
  20. BIN
      static/themes/clear-digits/1st-color/favourite.png
  21. BIN
      static/themes/clear-digits/1st-color/filter.png
  22. BIN
      static/themes/clear-digits/1st-color/folder.png
  23. BIN
      static/themes/clear-digits/1st-color/gps.png
  24. BIN
      static/themes/clear-digits/1st-color/help.png
  25. BIN
      static/themes/clear-digits/1st-color/home.png
  26. BIN
      static/themes/clear-digits/1st-color/info.png
  27. BIN
      static/themes/clear-digits/1st-color/is_favourite.png
  28. BIN
      static/themes/clear-digits/1st-color/login.png
  29. BIN
      static/themes/clear-digits/1st-color/logout.png
  30. BIN
      static/themes/clear-digits/1st-color/permission.png
  31. BIN
      static/themes/clear-digits/1st-color/play.png
  32. BIN
      static/themes/clear-digits/1st-color/plus.png
  33. BIN
      static/themes/clear-digits/1st-color/print.png
  34. BIN
      static/themes/clear-digits/1st-color/register.png
  35. BIN
      static/themes/clear-digits/1st-color/save.png
  36. BIN
      static/themes/clear-digits/1st-color/search.png
  37. BIN
      static/themes/clear-digits/1st-color/settings.png
  38. BIN
      static/themes/clear-digits/1st-color/shuffle.png
  39. BIN
      static/themes/clear-digits/1st-color/sort.png
  40. BIN
      static/themes/clear-digits/1st-color/staging.png
  41. BIN
      static/themes/clear-digits/1st-color/stop.png
  42. BIN
      static/themes/clear-digits/1st-color/task.png
  43. BIN
      static/themes/clear-digits/1st-color/upload.png
  44. BIN
      static/themes/clear-digits/1st-color/user.png
  45. BIN
      static/themes/clear-digits/1st-color/view.png
  46. BIN
      static/themes/clear-digits/2nd-color/0.png
  47. BIN
      static/themes/clear-digits/2nd-color/1.png
  48. BIN
      static/themes/clear-digits/2nd-color/2.png
  49. BIN
      static/themes/clear-digits/2nd-color/3.png
  50. BIN
      static/themes/clear-digits/2nd-color/4.png
  51. BIN
      static/themes/clear-digits/2nd-color/5.png
  52. BIN
      static/themes/clear-digits/2nd-color/6.png
  53. BIN
      static/themes/clear-digits/2nd-color/7.png
  54. BIN
      static/themes/clear-digits/2nd-color/8.png
  55. BIN
      static/themes/clear-digits/2nd-color/9.png
  56. BIN
      static/themes/clear-digits/2nd-color/admin.png
  57. BIN
      static/themes/clear-digits/2nd-color/back.png
  58. BIN
      static/themes/clear-digits/2nd-color/delete.png
  59. BIN
      static/themes/clear-digits/2nd-color/display.png
  60. BIN
      static/themes/clear-digits/2nd-color/download.png
  61. BIN
      static/themes/clear-digits/2nd-color/download_flat.png
  62. BIN
      static/themes/clear-digits/2nd-color/edit.png
  63. BIN
      static/themes/clear-digits/2nd-color/edit2.png
  64. BIN
      static/themes/clear-digits/2nd-color/favourite.png
  65. BIN
      static/themes/clear-digits/2nd-color/filter.png
  66. BIN
      static/themes/clear-digits/2nd-color/folder.png
  67. BIN
      static/themes/clear-digits/2nd-color/gps.png
  68. BIN
      static/themes/clear-digits/2nd-color/home.png
  69. BIN
      static/themes/clear-digits/2nd-color/info.png
  70. BIN
      static/themes/clear-digits/2nd-color/login.png
  71. BIN
      static/themes/clear-digits/2nd-color/logout.png
  72. BIN
      static/themes/clear-digits/2nd-color/permission.png
  73. BIN
      static/themes/clear-digits/2nd-color/play.png
  74. BIN
      static/themes/clear-digits/2nd-color/plus.png
  75. BIN
      static/themes/clear-digits/2nd-color/print.png
  76. BIN
      static/themes/clear-digits/2nd-color/register.png
  77. BIN
      static/themes/clear-digits/2nd-color/save.png
  78. BIN
      static/themes/clear-digits/2nd-color/search.png
  79. BIN
      static/themes/clear-digits/2nd-color/settings.png
  80. BIN
      static/themes/clear-digits/2nd-color/shuffle.png
  81. BIN
      static/themes/clear-digits/2nd-color/sort.png
  82. BIN
      static/themes/clear-digits/2nd-color/staging.png
  83. BIN
      static/themes/clear-digits/2nd-color/stop.png
  84. BIN
      static/themes/clear-digits/2nd-color/task.png
  85. BIN
      static/themes/clear-digits/2nd-color/upload.png
  86. BIN
      static/themes/clear-digits/2nd-color/user.png
  87. BIN
      static/themes/clear-digits/2nd-color/view.png
  88. BIN
      static/themes/clear-digits/search.png
  89. BIN
      static/themes/clear-digits/transparency.png
  90. BIN
      static/themes/white/help.png
  91. 662
    0
      templates/themes/clear-digits/base.css
  92. 115
    0
      templates/themes/clear-digits/base.html
  93. 16
    0
      templates/themes/clear-digits/menubar.html
  94. 5
    0
      templates/themes/clear-digits/navigationbar.html

+ 1
- 0
__init__.py Wyświetl plik

@@ -10,6 +10,7 @@ available_themes = [
10 10
     ('clear-red', 'Clear Red'),
11 11
     ('clear-green', 'Clear Green'),
12 12
     ('clear-blue', 'Clear Blue'),
13
+    ('clear-digits', 'Clear Digits'),
13 14
 ]
14 15
 default_theme = 'default'
15 16
 

BIN
static/themes/clear-digits/1st-color/0.png Wyświetl plik


BIN
static/themes/clear-digits/1st-color/1.png Wyświetl plik


BIN
static/themes/clear-digits/1st-color/2.png Wyświetl plik


BIN
static/themes/clear-digits/1st-color/3.png Wyświetl plik


BIN
static/themes/clear-digits/1st-color/4.png Wyświetl plik


BIN
static/themes/clear-digits/1st-color/5.png Wyświetl plik


BIN
static/themes/clear-digits/1st-color/6.png Wyświetl plik


BIN
static/themes/clear-digits/1st-color/7.png Wyświetl plik


BIN
static/themes/clear-digits/1st-color/8.png Wyświetl plik


BIN
static/themes/clear-digits/1st-color/9.png Wyświetl plik


BIN
static/themes/clear-digits/1st-color/admin.png Wyświetl plik


BIN
static/themes/clear-digits/1st-color/back.png Wyświetl plik


BIN
static/themes/clear-digits/1st-color/delete.png Wyświetl plik


BIN
static/themes/clear-digits/1st-color/display.png Wyświetl plik


BIN
static/themes/clear-digits/1st-color/download.png Wyświetl plik


BIN
static/themes/clear-digits/1st-color/download_flat.png Wyświetl plik


BIN
static/themes/clear-digits/1st-color/edit.png Wyświetl plik


BIN
static/themes/clear-digits/1st-color/edit2.png Wyświetl plik


BIN
static/themes/clear-digits/1st-color/favourite.png Wyświetl plik


BIN
static/themes/clear-digits/1st-color/filter.png Wyświetl plik


BIN
static/themes/clear-digits/1st-color/folder.png Wyświetl plik


BIN
static/themes/clear-digits/1st-color/gps.png Wyświetl plik


BIN
static/themes/clear-digits/1st-color/help.png Wyświetl plik


BIN
static/themes/clear-digits/1st-color/home.png Wyświetl plik


BIN
static/themes/clear-digits/1st-color/info.png Wyświetl plik


BIN
static/themes/clear-digits/1st-color/is_favourite.png Wyświetl plik


BIN
static/themes/clear-digits/1st-color/login.png Wyświetl plik


BIN
static/themes/clear-digits/1st-color/logout.png Wyświetl plik


BIN
static/themes/clear-digits/1st-color/permission.png Wyświetl plik


BIN
static/themes/clear-digits/1st-color/play.png Wyświetl plik


BIN
static/themes/clear-digits/1st-color/plus.png Wyświetl plik


BIN
static/themes/clear-digits/1st-color/print.png Wyświetl plik


BIN
static/themes/clear-digits/1st-color/register.png Wyświetl plik


BIN
static/themes/clear-digits/1st-color/save.png Wyświetl plik


BIN
static/themes/clear-digits/1st-color/search.png Wyświetl plik


BIN
static/themes/clear-digits/1st-color/settings.png Wyświetl plik


BIN
static/themes/clear-digits/1st-color/shuffle.png Wyświetl plik


BIN
static/themes/clear-digits/1st-color/sort.png Wyświetl plik


BIN
static/themes/clear-digits/1st-color/staging.png Wyświetl plik


BIN
static/themes/clear-digits/1st-color/stop.png Wyświetl plik


BIN
static/themes/clear-digits/1st-color/task.png Wyświetl plik


BIN
static/themes/clear-digits/1st-color/upload.png Wyświetl plik


BIN
static/themes/clear-digits/1st-color/user.png Wyświetl plik


BIN
static/themes/clear-digits/1st-color/view.png Wyświetl plik


BIN
static/themes/clear-digits/2nd-color/0.png Wyświetl plik


BIN
static/themes/clear-digits/2nd-color/1.png Wyświetl plik


BIN
static/themes/clear-digits/2nd-color/2.png Wyświetl plik


BIN
static/themes/clear-digits/2nd-color/3.png Wyświetl plik


BIN
static/themes/clear-digits/2nd-color/4.png Wyświetl plik


BIN
static/themes/clear-digits/2nd-color/5.png Wyświetl plik


BIN
static/themes/clear-digits/2nd-color/6.png Wyświetl plik


BIN
static/themes/clear-digits/2nd-color/7.png Wyświetl plik


BIN
static/themes/clear-digits/2nd-color/8.png Wyświetl plik


BIN
static/themes/clear-digits/2nd-color/9.png Wyświetl plik


BIN
static/themes/clear-digits/2nd-color/admin.png Wyświetl plik


BIN
static/themes/clear-digits/2nd-color/back.png Wyświetl plik


BIN
static/themes/clear-digits/2nd-color/delete.png Wyświetl plik


BIN
static/themes/clear-digits/2nd-color/display.png Wyświetl plik


BIN
static/themes/clear-digits/2nd-color/download.png Wyświetl plik


BIN
static/themes/clear-digits/2nd-color/download_flat.png Wyświetl plik


BIN
static/themes/clear-digits/2nd-color/edit.png Wyświetl plik


BIN
static/themes/clear-digits/2nd-color/edit2.png Wyświetl plik


BIN
static/themes/clear-digits/2nd-color/favourite.png Wyświetl plik


BIN
static/themes/clear-digits/2nd-color/filter.png Wyświetl plik


BIN
static/themes/clear-digits/2nd-color/folder.png Wyświetl plik


BIN
static/themes/clear-digits/2nd-color/gps.png Wyświetl plik


BIN
static/themes/clear-digits/2nd-color/home.png Wyświetl plik


BIN
static/themes/clear-digits/2nd-color/info.png Wyświetl plik


BIN
static/themes/clear-digits/2nd-color/login.png Wyświetl plik


BIN
static/themes/clear-digits/2nd-color/logout.png Wyświetl plik


BIN
static/themes/clear-digits/2nd-color/permission.png Wyświetl plik


BIN
static/themes/clear-digits/2nd-color/play.png Wyświetl plik


BIN
static/themes/clear-digits/2nd-color/plus.png Wyświetl plik


BIN
static/themes/clear-digits/2nd-color/print.png Wyświetl plik


BIN
static/themes/clear-digits/2nd-color/register.png Wyświetl plik


BIN
static/themes/clear-digits/2nd-color/save.png Wyświetl plik


BIN
static/themes/clear-digits/2nd-color/search.png Wyświetl plik


BIN
static/themes/clear-digits/2nd-color/settings.png Wyświetl plik


BIN
static/themes/clear-digits/2nd-color/shuffle.png Wyświetl plik


BIN
static/themes/clear-digits/2nd-color/sort.png Wyświetl plik


BIN
static/themes/clear-digits/2nd-color/staging.png Wyświetl plik


BIN
static/themes/clear-digits/2nd-color/stop.png Wyświetl plik


BIN
static/themes/clear-digits/2nd-color/task.png Wyświetl plik


BIN
static/themes/clear-digits/2nd-color/upload.png Wyświetl plik


BIN
static/themes/clear-digits/2nd-color/user.png Wyświetl plik


BIN
static/themes/clear-digits/2nd-color/view.png Wyświetl plik


BIN
static/themes/clear-digits/search.png Wyświetl plik


BIN
static/themes/clear-digits/transparency.png Wyświetl plik


BIN
static/themes/white/help.png Wyświetl plik


+ 662
- 0
templates/themes/clear-digits/base.css Wyświetl plik

@@ -0,0 +1,662 @@
1
+{% load static %}
2
+/*
3
+* Common
4
+*/
5
+html {
6
+  color: #0A1E2D;
7
+  font-family: sans-serif;
8
+  -ms-text-size-adjust: 100%;
9
+  -webkit-text-size-adjust: 100%;
10
+}
11
+
12
+body {
13
+  margin-bottom: 0;
14
+}
15
+
16
+.app-content {
17
+  padding-top: 30px;
18
+  padding-bottom: 30px;
19
+  padding-left: 10px;
20
+  padding-right: 10px;
21
+}
22
+
23
+h1 {
24
+  padding: 6px;
25
+  background-color: #f2f2f2;
26
+  border-left:5px solid #0A1E2D;
27
+  border-bottom:5px solid #0A1E2D;
28
+  font-size: 22px;
29
+}
30
+
31
+.image_bg h1 {
32
+  margin: 2px 0px;
33
+  margin-bottom: 4px;
34
+  border-left:0px;
35
+  border-bottom:0px;
36
+}
37
+
38
+h2 {
39
+  padding: 6px;
40
+  background-color: #f2f2f2;
41
+  border-left:3px solid #0A1E2D;
42
+  border-bottom:3px solid #0A1E2D;
43
+  font-size: 18px;
44
+}
45
+
46
+h3 {
47
+  padding: 6px;
48
+  background-color: #f2f2f2;
49
+  font-size: 14px;
50
+}
51
+
52
+ul {
53
+  list-style-type: square;
54
+  padding: 10px 30px;
55
+}
56
+
57
+a {
58
+  color: #007076;
59
+  font-weight: bold;
60
+}
61
+
62
+a:hover {
63
+  background: #01D0DA;
64
+}
65
+
66
+table {
67
+  opacity: 0.75;
68
+  background-color: #ffffff;
69
+  border-collapse: collapse;
70
+  width: 100%;
71
+  margin: 2px 0px;
72
+}
73
+
74
+td, th {
75
+  border: 1px solid #dddddd;
76
+  text-align: left;
77
+  padding: 8px;
78
+}
79
+
80
+tr:nth-child(even) {
81
+  background-color: #dddddd;
82
+}
83
+/*
84
+* Forms
85
+*/
86
+.form {
87
+  background-color: #f2f2f2;
88
+  padding: 10px 20px;
89
+  margin: 5px 10px;
90
+  margin-bottom: 10px;
91
+}
92
+
93
+input[type=text], select {
94
+  width: 100%;
95
+  padding: 5px 10px;
96
+  margin: 4px 0;
97
+  display: inline-block;
98
+  border: 1px solid #cccccc;
99
+  border-radius: 3px;
100
+  box-sizing: border-box;
101
+}
102
+
103
+textarea {
104
+  width: 100%;
105
+  padding: 5px 10px;
106
+  margin: 4px 0;
107
+  display: inline-block;
108
+  border: 1px solid #cccccc;
109
+  border-radius: 3px;
110
+  box-sizing: border-box;
111
+}
112
+
113
+input[type=password], select {
114
+  width: 100%;
115
+  padding: 5px 10px;
116
+  margin: 4px 0;
117
+  display: inline-block;
118
+  border: 1px solid #ccc;
119
+  border-radius: 3px;
120
+  box-sizing: border-box;
121
+}
122
+
123
+input[type=email], select {
124
+  width: 100%;
125
+  padding: 5px 10px;
126
+  margin: 4px 0;
127
+  display: inline-block;
128
+  border: 1px solid #cccccc;
129
+  border-radius: 3px;
130
+  box-sizing: border-box;
131
+}
132
+
133
+input[type=select], select {
134
+  width: 100%;
135
+  padding: 5px 10px;
136
+  margin: 4px 0;
137
+  display: inline-block;
138
+  border: 1px solid #cccccc;
139
+  border-radius: 3px;
140
+  box-sizing: border-box;
141
+}
142
+
143
+input[type=file], select {
144
+  width: 100%;
145
+  padding: 5px 10px;
146
+  margin: 4px 0;
147
+  display: inline-block;
148
+  border: 1px solid #ccc;
149
+  border-radius: 3px;
150
+  box-sizing: border-box;
151
+}
152
+
153
+p {
154
+ margin: 12px 0;
155
+}
156
+
157
+input[type=submit] {
158
+  width: 100%;
159
+  background-color: #4CAF50;
160
+  color: white;
161
+  padding: 10px 15px;
162
+  margin: 8px 0;
163
+  border: none;
164
+  border-radius: 3px;
165
+  cursor: pointer;
166
+}
167
+
168
+input[type=submit]:hover {
169
+    background-color: #45a049;
170
+}
171
+
172
+label {
173
+  font-weight: bold;
174
+}
175
+
176
+ul.errorlist {
177
+  color: red;	
178
+}
179
+
180
+/*
181
+* Navigation- and Menubars
182
+*/
183
+.titlebar {
184
+  overflow: hidden;
185
+  background-color: #0A1E2D;
186
+  color: #01D0DA;
187
+  padding: 14px 16px;
188
+  padding-left:75px;
189
+  font-size: 22px;
190
+  max-height: 50px;
191
+}
192
+
193
+.page-logo {
194
+  display: inline;
195
+  position: absolute;
196
+  top: 0px;
197
+  left: 0px;
198
+}
199
+
200
+.page-logo:hover {
201
+  background-color: transparent;
202
+}
203
+
204
+.titlebar input[type=text] {
205
+  color: #3796f0;
206
+  font-weight: bold;
207
+  float: right;
208
+  width: 34px;
209
+  height: 34px;
210
+  border: none;
211
+  padding: 7px 7px;
212
+  padding-left: 5px;
213
+  padding-right: 34px;
214
+  border-radius: 2px;
215
+  margin: 0;
216
+  -webkit-transition: width 0.4s ease-in-out;
217
+  transition: width 0.4s ease-in-out;
218
+  background-color: #4285f4;
219
+  background-image: url('{% static 'themes/'|add:settings.page_theme|add:'/search.png' %}');
220
+  background-position: 0px 0px;
221
+  background-repeat: no-repeat;
222
+}
223
+
224
+.titlebar input[type=text]/*:focus*/ {
225
+  float: right;
226
+  display: block;
227
+  padding-right: 43px;
228
+  text-align: left;
229
+  width: 300px;
230
+  background-position: 263px 0px;
231
+  max-width: 100%;
232
+  margin: 0;
233
+  background-color: white;
234
+}
235
+
236
+/*
237
+* MENUBAR
238
+*/
239
+.menubar {
240
+    overflow: hidden;
241
+    background-color: #0A1E2D;
242
+    z-index: 50;
243
+}
244
+
245
+.bottombar {
246
+    position: fixed;
247
+    bottom: 0;
248
+    left: 0;
249
+    width: calc(100% - 16px);
250
+    margin-left: 8px;
251
+    max-height: 53px;
252
+}
253
+
254
+.bottomspace {
255
+	min-height: 53px;
256
+}
257
+
258
+.menubar a {
259
+	float: left;
260
+    font-size: 18px;
261
+    color: #01D0DA;
262
+    text-align: center;
263
+    padding: 4px 15px;
264
+    text-decoration: none;
265
+    font-weight: normal;
266
+}
267
+
268
+ .menubar-slim a {
269
+    padding: 2px 2px;
270
+    font-weight: normal;
271
+}
272
+ 
273
+.dropdown {
274
+    float: left;
275
+    overflow: hidden;
276
+}
277
+
278
+.dropdown .dropbtn {
279
+    font-size: 18px;    
280
+    border: none;
281
+    outline: none;
282
+    color: #01D0DA;
283
+    padding: 4px 15px;
284
+    background-color: inherit;
285
+    font-family: inherit;
286
+    margin: 0;
287
+}
288
+
289
+.dropdown-slim .dropbtn-slim {
290
+    padding: 2px 2px;
291
+}
292
+
293
+.menubar a:hover, .dropdown:hover .dropbtn {
294
+    background-color: #007076;
295
+}
296
+
297
+.dropdown-content {
298
+    display: none;
299
+    position: absolute;
300
+    background-color: #f9f9f9;
301
+    min-width: 50px;
302
+    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
303
+    z-index: 25;
304
+}
305
+
306
+.dropdown-content a {
307
+    float: none;
308
+    color: #0A1E2D;
309
+    padding: 12px 16px;
310
+    text-decoration: none;
311
+    display: block;
312
+    text-align: left;
313
+    font-weight: normal;
314
+}
315
+
316
+.dropdown-content a:hover {
317
+    background-color: #ddd;
318
+}
319
+
320
+.dropdown:hover .dropdown-content {
321
+    display: block;
322
+}
323
+
324
+/*
325
+* NAVIGATIONBAR
326
+*/
327
+ul.navigationbar {
328
+  list-style-type: none;
329
+  margin: 0;
330
+  padding: 0;
331
+  overflow: hidden;
332
+  background-color: #007076;
333
+  max-height: 24px;
334
+}
335
+
336
+li.navigationbar {
337
+  color: #0A1E2D;
338
+  float: left;
339
+  font-size: 16px;
340
+}
341
+
342
+li.navigationbar a {
343
+  display: block;
344
+  color: #0A1E2D;
345
+  text-align: center;
346
+  padding: 2px 2px;
347
+  text-decoration: none;
348
+  font-weight: normal;
349
+}
350
+
351
+li.navigationbar a:hover {
352
+  background-color: #01D0DA;
353
+}
354
+
355
+.active_menu {
356
+  background-color: #007076;
357
+}
358
+
359
+/* When the screen is less than (n*100+250)px wide, reduce content to be shown */
360
+@media screen and (max-width: calc({{actionbar|length}} * 100px + 250px)) {
361
+    .action_menu_hide {
362
+        display: none
363
+    }
364
+}
365
+
366
+/* When the screen is less than (n*100+250)px wide, reduce content to be shown */
367
+@media screen and (max-width: calc({{menubar|length}} * 100px + 250px)) {
368
+    .menu_hide {
369
+        display: none
370
+    }
371
+}
372
+
373
+/* When the screen is less than (n*14+75+350)px wide, reduce content to be shown */
374
+@media screen and (max-width: calc({{title|length}} * 15px + 75px + 350px)) {
375
+    .title_hide {
376
+        display: none
377
+    }
378
+}
379
+
380
+/*
381
+* Flash (Hint, Info, Error)
382
+*/
383
+.hidden {
384
+  display: none;
385
+}
386
+
387
+.fixed {
388
+  position: fixed;
389
+  top: 30px;
390
+  width: 100%;   /* so wie flash */
391
+  padding-right:15px;
392
+  cursor: cell;
393
+}
394
+
395
+.flash{
396
+  margin: 0px;
397
+  display: block;
398
+  padding-top: 16px;
399
+  padding-bottom: 16px;
400
+  padding-left: 10px;
401
+  padding-right: 10px;
402
+  font-size: 16px;
403
+}
404
+
405
+.flash > a {
406
+  text-decoration: none;
407
+  font-weight: bold;
408
+}
409
+
410
+.flash > a:hover {
411
+  background: none;
412
+  text-decoration: underline;
413
+}
414
+
415
+.flash-hint {
416
+  color: #205b00;
417
+  background-color: rgba(221, 255, 221, 0.9);
418
+  border-left: 6px solid #205b00;
419
+}
420
+
421
+.flash-hint > a {
422
+  color: #205b00;
423
+}
424
+
425
+.flash-info {
426
+  color: #204a87;
427
+  background-color: rgba(212, 239, 255, 0.9);
428
+  border-left: 6px solid #204a87;
429
+}
430
+
431
+.flash-info > a {
432
+  color: #204a87;
433
+}
434
+
435
+.flash-error {
436
+  color: #a40000;
437
+  background-color: rgba(255, 221, 221, 0.9);
438
+  border-left: 6px solid #a40000;
439
+}
440
+
441
+.flash-error > a {
442
+  color: #a40000;
443
+}
444
+
445
+.close-flash {
446
+  background: #323232;
447
+  opacity:1;
448
+  color: #FFFFFF;
449
+  line-height: 25px;
450
+  position: absolute;
451
+  top: 12px;
452
+  right: 30px;
453
+  text-align: center;
454
+  width: 24px;
455
+  text-decoration: none;
456
+  font-weight: bold;
457
+  -webkit-border-radius: 12px;
458
+  -moz-border-radius: 12px;
459
+  border-radius: 12px;
460
+  -moz-box-shadow: 1px 1px 3px #000000;
461
+  -webkit-box-shadow: 1px 1px 3px #000000;
462
+  box-shadow: 1px 1px 3px #000000;
463
+}
464
+
465
+#fixed:hover .close-flash {
466
+  background: #a40000;
467
+  opacity:1;
468
+  color: #FFFFFF;
469
+}
470
+/*
471
+* Items 
472
+*/
473
+div.itemname {
474
+  font-weight: bold;
475
+  padding: 2px;
476
+  font-size: 14px;
477
+  text-align: center;
478
+}
479
+
480
+div.datetime {
481
+  font-style: italic;
482
+  padding: 2px;
483
+  font-size: 12px;
484
+  text-align: center;
485
+}
486
+
487
+audio {
488
+    width: 100%;
489
+    margin: 2px 0px;
490
+    padding: 1px;
491
+	min-width: 300px; 
492
+	display: block; 
493
+}
494
+
495
+* {
496
+  box-sizing: border-box;
497
+}
498
+
499
+.container {
500
+  position: relative;
501
+  z-index: 1;
502
+}
503
+
504
+.tag {
505
+  border: 2px solid rgba(255,100,100,.55);
506
+  display:block;
507
+  position:absolute;
508
+}
509
+
510
+.tag:hover {
511
+  border: 3px solid rgba(255,100,100,.85);
512
+  background-color: transparent;
513
+}
514
+
515
+.image {
516
+  float: left;
517
+  margin: 6px;
518
+}
519
+
520
+.image_bg {
521
+  background: #0A1E2D;
522
+  padding: 6px;
523
+}
524
+
525
+.image_bg:hover {
526
+  background: #007076;
527
+}
528
+
529
+.webnail {
530
+  max-width: 90vw;
531
+  max-height: 90vh;
532
+}
533
+
534
+.clearfix:after {
535
+  content: "";
536
+  display: table;
537
+  clear: both;
538
+}
539
+
540
+/*
541
+* Modal Dialog
542
+*/
543
+.modalDialog {
544
+  position: fixed;
545
+  top: 0;
546
+  right: 0;
547
+  bottom: 0;
548
+  left: 0;
549
+  background: rgba(0,0,0,0.8);
550
+  z-index: 99999;
551
+  opacity:0;
552
+  -webkit-transition: opacity 400ms ease-in;
553
+  -moz-transition: opacity 400ms ease-in;
554
+  transition: opacity 400ms ease-in;
555
+  pointer-events: none;
556
+}
557
+
558
+.modalDialog:target {
559
+  opacity:1;
560
+  pointer-events: auto;
561
+}
562
+
563
+.modalDialog > div {
564
+  width:calc(100% - 60px);
565
+  height: calc(100vh - 60px);
566
+  overflow-y: auto;
567
+  position: relative;
568
+  margin-top: 30px;
569
+  margin-left: 30px;
570
+  padding: 5px 20px 13px 20px;
571
+  border-radius: 10px;
572
+  background: #ffffff;
573
+  background: -moz-linear-gradient(#ffffff, #999999);
574
+  background: -webkit-linear-gradient(#ffffff, #999999);
575
+  background: -o-linear-gradient(#ffffff, #999999);
576
+  opacity:0.9;
577
+}
578
+
579
+.close {
580
+  background: #606061;
581
+  opacity:1;
582
+  color: #FFFFFF;
583
+  line-height: 25px;
584
+  position: absolute;
585
+  right: 20px;
586
+  text-align: center;
587
+  top: 20px;
588
+  width: 24px;
589
+  text-decoration: none;
590
+  font-weight: bold;
591
+  -webkit-border-radius: 12px;
592
+  -moz-border-radius: 12px;
593
+  border-radius: 12px;
594
+  -moz-box-shadow: 1px 1px 3px #000000;
595
+  -webkit-box-shadow: 1px 1px 3px #000000;
596
+  box-shadow: 1px 1px 3px #000000;
597
+}
598
+
599
+.close:hover {
600
+  background: #007076;
601
+  opacity:1;
602
+  color: #FFFFFF;
603
+}
604
+
605
+.modal-info {
606
+  margin: 0px;
607
+  display: block;
608
+  padding-top: 16px;
609
+  padding-bottom: 16px;
610
+  padding-left: 10px;
611
+  padding-right: 10px;
612
+  font-size: 16px;
613
+  color: #204a87;
614
+  background-color: #daefff;
615
+  border-left: 6px solid #204a87;
616
+}
617
+
618
+.modal-info > a {
619
+  text-decoration: none;
620
+  font-weight: bold;
621
+  color: #204a87;
622
+}
623
+
624
+.modal-info > a:hover {
625
+  background: none;
626
+  text-decoration: underline;
627
+}
628
+.image_modal {
629
+  display: flex; 
630
+  vertical-align: middle;
631
+}
632
+
633
+.webnail_modal {
634
+  display: block;
635
+  max-width: 100%;
636
+  max-height: 100%;
637
+  margin: auto;
638
+  zoom: 2;
639
+}
640
+
641
+/*
642
+ * Sticky Header
643
+ */
644
+/* Page content */
645
+.content {
646
+}
647
+
648
+/* The sticky class is added to the header with JS when it reaches its scroll position */
649
+.sticky {
650
+  position: fixed;
651
+  top: 0;
652
+  width: calc(100% - 16px);
653
+}
654
+
655
+.sticky-submenu {
656
+  position: fixed;
657
+}
658
+
659
+/* Add some top padding to the page content to prevent sudden quick movement (as the header gets a new position at the top of the page (position:fixed and top:0) */
660
+.sticky + .content {
661
+  padding-top: 30px;
662
+}

+ 115
- 0
templates/themes/clear-digits/base.html Wyświetl plik

@@ -0,0 +1,115 @@
1
+{% load static %}
2
+{% load i18n %}
3
+<!DOCTYPE html>
4
+<html>
5
+  <head>
6
+    <title>{{ title }}</title>
7
+    <meta charset="utf-8" />
8
+    <meta name="viewport" content="width=device-width, initial-scale=1">
9
+    <link rel="shortcut icon" href="{% static 'bars/'|add:settings.page_theme|add:'/favicon.ico' %}" />
10
+
11
+{% block head_extensions %}{% endblock %}
12
+
13
+    <style>
14
+{% include 'themes/'|add:settings.page_theme|add:'/base.css' %}
15
+    </style>
16
+
17
+  </head>
18
+  <body lang="en" dir="ltr">
19
+
20
+{% block modal %}{% endblock %}
21
+
22
+    <form class="titlebar container" action="{% url "search" %}">
23
+      <a class="page-logo" href="/"><img src="{{ settings.page_image.url }}" alt="Logo" title="{{ title }}"></a>
24
+      <span class="title_hide">{{ title }}</span>
25
+      <input type="text" placeholder="{% trans "Search..." %}" name="q">
26
+    </form>
27
+
28
+{% with bar=menubar %}{% include 'themes/'|add:settings.page_theme|add:'/menubar.html' %}{% endwith %}
29
+
30
+{% include 'themes/'|add:settings.page_theme|add:'/navigationbar.html' %}
31
+
32
+{% with bar=actionbar abar=True %}{% include 'themes/'|add:settings.page_theme|add:'/menubar.html' %}{% endwith %}
33
+
34
+    <div class="content">
35
+{% if messages %}
36
+      <div id="flash">
37
+  {% for message in messages %}
38
+    {% if message.tags == "success" %}
39
+        <p class="flash flash-hint">{{ message|safe }}</p>
40
+    {% else %}
41
+      {% if message.tags == "info" %}
42
+        <p class="flash flash-info">{{ message|safe }}</p>
43
+      {% else %}
44
+        <p class="flash flash-error">{{ message|safe }}</p>
45
+      {% endif %}
46
+    {% endif %}
47
+  {% endfor %}
48
+      </div>
49
+{% endif %}
50
+
51
+      <div class="app-content">
52
+{% block content %}{% endblock %}
53
+      </div>
54
+
55
+    <div class="bottomspace"></div>
56
+
57
+{% with bar=bottombar bottom=True %}{% include 'themes/'|add:settings.page_theme|add:'/menubar.html' %}{% endwith %}
58
+    </div>
59
+
60
+{% if messages %}
61
+      <div class="hidden fixed" id="fixed" onclick="myHideFunction()">
62
+        <div id="flash container">
63
+  {% for message in messages %}
64
+    {% if message.tags == "success" %}
65
+          <p class="flash flash-hint">{{ message|safe }}</p>
66
+    {% else %}
67
+      {% if message.tags == "info" %}
68
+          <p class="flash flash-info">{{ message|safe }}</p>
69
+      {% else %}
70
+          <p class="flash flash-error">{{ message|safe }}</p>
71
+      {% endif %}
72
+    {% endif %}
73
+  {% endfor %}
74
+        </div>
75
+      <div class="close-flash">X</div>
76
+    </div>
77
+{% endif %}
78
+
79
+    <script>
80
+    /*
81
+    * Sticky Elements
82
+    */
83
+    window.onscroll = function() {myScrollFunction()};
84
+    // Sticky Actionbar
85
+    var header = document.getElementById("actionbar");
86
+    var sticky = header.offsetTop;      // Get the offset position of the actionbar
87
+    // Flash
88
+    var flash = document.getElementById("flash");
89
+    var fixed_ = document.getElementById("fixed");
90
+    var flash_pos = flash.offsetTop;
91
+    var enabled = true;
92
+
93
+    function myScrollFunction() {
94
+        // Sticky Actionbar
95
+        if (window.pageYOffset > sticky) {
96
+            header.classList.add("sticky");
97
+          } else {
98
+            header.classList.remove("sticky");
99
+          }
100
+		// Flash
101
+    	if (window.pageYOffset >= flash_pos && enabled){
102
+            fixed_.classList.remove("hidden");
103
+        } else {
104
+            fixed_.classList.add("hidden");
105
+            enabled = false;
106
+            }
107
+    }
108
+
109
+    function myHideFunction() {
110
+        fixed.classList.add("hidden");
111
+        enabled = false;
112
+    }
113
+    </script>
114
+  </body>
115
+</html>

+ 16
- 0
templates/themes/clear-digits/menubar.html Wyświetl plik

@@ -0,0 +1,16 @@
1
+<div class="menubar{% if slim %} menubar-slim{%endif %}{% if bottom %} bottombar{% endif %}"{% if abar %} id="actionbar"{% endif %}>
2
+  {% for entry in bar.entries %}
3
+    {% if entry.is_dropdownmenu %}
4
+    <div class="dropdown{% if entry.active %} active_menu{% endif %}{% if slim %} dropdown-slim{% endif %}" {% if not entry.left %}style="float:right"{% endif %}>
5
+      <button class="dropbtn{% if slim %} dropbtn-slim{% endif %}" id="{{ entry.uid }}">{% if entry.icon %}<span><img src="{{ entry.icon|safe }}" alt="{{ entry.uid }}"></span> {% endif %}{% if not reduced %}<span class="{% if bottom == True %}bottom_{% endif %}{% if abar == True %}action_{% endif %}menu_hide">{{ entry.name }}</span>{% endif %}</button>
6
+      <div class="dropdown-content{% if abar == True %} sticky-submenu{% endif %}" id="{{ entry.uid }}-content">
7
+        {% for dd in entry %}
8
+          <a {% if dd.url %}href="{{ dd.url|safe }}"{% endif %}{% if dd.active%}class="active_menu"{% endif%}>{% if dd.icon %}<img src="{{ dd.icon|safe }}" alt="{{ dd.name.0 }}"> {% endif %}{{ dd.name }}</a>
9
+        {% endfor %}
10
+      </div>
11
+    </div> 
12
+    {% else %}
13
+    <a {% if entry.url %}href="{{entry.url|safe}}"{% endif %} {% if not entry.left %}style="float:right"{% endif %}{% if entry.active%}class="active_menu"{% endif%}>{% if entry.icon %}<span><img src="{{ entry.icon|safe }}" alt="{{ entry.uid }}"></span> {% endif %}{% if not reduced %}<span class="{% if bottom == True %}bottom_{% endif %}{% if abar == True %}action_{% endif %}menu_hide">{{ entry.name }}</span>{% endif %}</a>
14
+    {% endif %}
15
+  {% endfor %}
16
+</div>

+ 5
- 0
templates/themes/clear-digits/navigationbar.html Wyświetl plik

@@ -0,0 +1,5 @@
1
+    <ul class="navigationbar">
2
+    {% for navi in navigationbar.entries %}
3
+      <li class="navigationbar"><a {% if navi.url %}href="{{ navi.url }}"{% endif %}>{% if navi.icon %}<img src="{{ navi.icon }}" alt="{{ navi.uid }}">{% endif %}{% if navi.name %}{{ navi.name }}{% endif %}</a></li>
4
+    {% endfor %}
5
+    </ul>

Ładowanie…
Anuluj
Zapisz