framework7-rails 0.7.4.0 → 0.9.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +50 -45
  3. data/app/helpers/app_helper.rb +1 -1
  4. data/app/helpers/bar_helper.rb +45 -0
  5. data/app/helpers/bar_item_helper.rb +105 -0
  6. data/app/helpers/content_block_helper.rb +66 -0
  7. data/app/helpers/framework7_helper.rb +26 -0
  8. data/app/helpers/list_block_helper.rb +180 -0
  9. data/app/helpers/pages_helper.rb +66 -0
  10. data/app/helpers/panel_helper.rb +27 -0
  11. data/app/helpers/toolbar_helper.rb +52 -0
  12. data/app/helpers/views_helper.rb +36 -0
  13. data/app/presenters/framework7/base_presenter.rb +24 -0
  14. data/framework7-rails.gemspec +5 -1
  15. data/lib/framework7.rb +6 -0
  16. data/lib/framework7/rails/version.rb +1 -1
  17. data/lib/generators/f7/install/examples/examples_generator.rb +17 -0
  18. data/lib/generators/f7/install/examples/templates/app/controllers/examples_controller.rb +16 -0
  19. data/lib/generators/f7/install/examples/templates/app/views/examples/about.html.erb +27 -0
  20. data/lib/generators/f7/install/examples/templates/app/views/examples/form.html.erb +227 -0
  21. data/lib/generators/f7/install/examples/templates/app/views/examples/index.html.erb +80 -0
  22. data/lib/generators/f7/install/examples/templates/app/views/examples/services.html.erb +27 -0
  23. data/lib/generators/f7/install/install_generator.rb +1 -1
  24. data/lib/generators/f7/install/templates/application.css +1 -0
  25. data/lib/generators/f7/layout/layout_generator.rb +17 -3
  26. data/lib/generators/f7/layout/templates/layout.html.erb +9 -82
  27. data/lib/generators/f7/layout/templates/setup.coffee +10 -0
  28. data/lib/generators/f7/layout/templates/setup.js +12 -0
  29. data/vendor/assets/javascripts/framework7.js +5859 -1140
  30. data/vendor/assets/stylesheets/framework7.css +2569 -244
  31. data/vendor/assets/stylesheets/framework7.rtl.css +427 -0
  32. data/vendor/assets/stylesheets/framework7.themes.css +279 -0
  33. metadata +56 -15
  34. data/lib/generators/f7/layout/templates/app.js.coffee.erb +0 -77
  35. data/vendor/assets/images/i-form-checkbox-black.png +0 -0
  36. data/vendor/assets/images/i-form-checkbox-blue.png +0 -0
  37. data/vendor/assets/images/i-form-checkbox-white.png +0 -0
  38. data/vendor/assets/images/i-form-radio-black.png +0 -0
  39. data/vendor/assets/images/i-form-radio-blue.png +0 -0
  40. data/vendor/assets/images/i-form-radio-white.png +0 -0
  41. data/vendor/assets/javascripts/framework7.min.js +0 -16
  42. data/vendor/assets/stylesheets/framework7.min.css +0 -15
@@ -0,0 +1,427 @@
1
+ /*=============
2
+ Framework 7 RTL Additions
3
+ =============*/
4
+ html {
5
+ direction: rtl;
6
+ }
7
+ /* === Lists === */
8
+ .list-block ul ul {
9
+ padding-left: 0;
10
+ padding-right: 45px;
11
+ }
12
+ .list-block .item-content {
13
+ padding-left: 0;
14
+ padding-right: 15px;
15
+ }
16
+ .list-block .item-inner {
17
+ padding-right: 0;
18
+ padding-left: 15px;
19
+ }
20
+ .list-block .item-after {
21
+ margin-left: 0;
22
+ margin-right: 5px;
23
+ }
24
+ .list-block .item-media i + i,
25
+ .list-block .item-media i + img {
26
+ margin-left: 0;
27
+ margin-right: 5px;
28
+ }
29
+ .list-block .item-media + .item-inner {
30
+ margin-left: 0;
31
+ margin-right: 15px;
32
+ }
33
+ .list-block .item-link .item-inner {
34
+ padding-right: 0;
35
+ padding-left: 35px;
36
+ background-position: 15px center;
37
+ background-image: url("data:image/svg+xml;charset=utf-8,<svg viewBox='0 0 60 120' xmlns='http://www.w3.org/2000/svg'><path d='m60 61.5-38.25 38.25-9.75-9.75 29.25-28.5-29.25-28.5 9.75-9.75z' fill='%23c7c7cc' transform='translate(60,120) rotate(180)'/></svg>");
38
+ }
39
+ .list-block.media-list .item-link .item-inner,
40
+ .list-block li.media-item .item-link .item-inner {
41
+ padding-right: 0;
42
+ padding-left: 15px;
43
+ }
44
+ .list-block.media-list .item-link .item-title-row,
45
+ .list-block li.media-item .item-link .item-title-row {
46
+ padding-right: 0;
47
+ padding-left: 20px;
48
+ background-position: center left;
49
+ background-image: url("data:image/svg+xml;charset=utf-8,<svg viewBox='0 0 60 120' xmlns='http://www.w3.org/2000/svg'><path d='m60 61.5-38.25 38.25-9.75-9.75 29.25-28.5-29.25-28.5 9.75-9.75z' fill='%23c7c7cc' transform='translate(60,120) rotate(180)'/></svg>");
50
+ }
51
+ .list-block .sortable-handler {
52
+ right: auto;
53
+ left: 0;
54
+ }
55
+ .list-block.sortable-opened .item-inner,
56
+ .list-block.sortable-opened .item-link .item-inner {
57
+ padding-right: 0;
58
+ padding-left: 35px;
59
+ }
60
+ .list-block.sortable-opened .item-link .item-inner,
61
+ .list-block.sortable-opened .item-link .item-title-row {
62
+ background-image: none;
63
+ }
64
+ .list-block .swipeout-actions-left,
65
+ .list-block .swipeout-actions-right {
66
+ direction: ltr;
67
+ }
68
+ /* === Toolbars === */
69
+ .navbar a.link i + span,
70
+ .toolbar a.link i + span,
71
+ .navbar a.link i + i,
72
+ .toolbar a.link i + i,
73
+ .navbar a.link span + i,
74
+ .toolbar a.link span + i,
75
+ .navbar a.link span + span,
76
+ .toolbar a.link span + span {
77
+ margin-left: 0;
78
+ margin-right: 7px;
79
+ }
80
+ .navbar .left a + a,
81
+ .navbar .right a + a {
82
+ margin-left: 0;
83
+ margin-right: 15px;
84
+ }
85
+ .navbar .left {
86
+ margin-right: 0px;
87
+ margin-left: 10px;
88
+ }
89
+ .navbar .right {
90
+ margin-left: 0px;
91
+ margin-right: 10px;
92
+ }
93
+ .navbar .right:first-child {
94
+ right: auto;
95
+ left: 8px;
96
+ }
97
+ /* === Forms === */
98
+ .list-block input[type="text"],
99
+ .list-block input[type="password"],
100
+ .list-block input[type="email"],
101
+ .list-block input[type="tel"],
102
+ .list-block input[type="url"],
103
+ .list-block input[type="date"],
104
+ .list-block input[type="datetime-local"],
105
+ .list-block input[type="number"],
106
+ .list-block select,
107
+ .list-block textarea {
108
+ padding-left: 0;
109
+ padding-right: 5px;
110
+ }
111
+ .buttons-row .button:first-child {
112
+ border-radius: 0 5px 5px 0;
113
+ border-left: none;
114
+ }
115
+ .buttons-row .button:last-child {
116
+ border-radius: 5px 0 0 5px;
117
+ border-left-width: 1px;
118
+ border-left-style: solid;
119
+ }
120
+ .buttons-row .button.button-round:first-child {
121
+ border-radius: 0 27px 27px 0;
122
+ }
123
+ .buttons-row .button.button-round:last-child {
124
+ border-radius: 27px 0 0 27px;
125
+ }
126
+ .label-switch input[type="checkbox"] + .checkbox:before {
127
+ left: auto;
128
+ right: 2px;
129
+ }
130
+ .label-switch input[type="checkbox"] + .checkbox:after {
131
+ right: 2px;
132
+ left: auto;
133
+ -webkit-transform: translate3d(0, 0, 0);
134
+ -ms-transform: translate3d(0, 0, 0);
135
+ transform: translate3d(0, 0, 0);
136
+ }
137
+ .label-switch input[type="checkbox"]:checked + .checkbox:after {
138
+ left: auto;
139
+ right: 22px;
140
+ }
141
+ .range-slider {
142
+ padding-left: 0;
143
+ padding-right: 0;
144
+ margin-left: 0;
145
+ padding-right: 3px;
146
+ padding-left: 3px;
147
+ margin-right: -1px;
148
+ }
149
+ .range-slider input[type="range"]:after {
150
+ left: auto;
151
+ right: -5px;
152
+ }
153
+ .range-slider input[type="range"]::-webkit-slider-thumb:after {
154
+ left: auto;
155
+ right: 0;
156
+ }
157
+ .range-slider input[type="range"]::-webkit-slider-thumb:before {
158
+ right: auto;
159
+ left: 100%;
160
+ }
161
+ label.label-radio input[type="checkbox"] ~ .item-inner,
162
+ label.label-radio input[type="radio"] ~ .item-inner {
163
+ padding-left: 35px;
164
+ padding-right: 0;
165
+ }
166
+ label.label-radio input[type="checkbox"]:checked ~ .item-inner,
167
+ label.label-radio input[type="radio"]:checked ~ .item-inner {
168
+ background-position: 15px center;
169
+ }
170
+ /* === Search Bar === */
171
+ .searchbar input[type="search"] {
172
+ background-position: right center;
173
+ background-position: -webkit-calc(100% - 8px) center;
174
+ background-position: calc(100% - 8px) center;
175
+ }
176
+ .searchbar .searchbar-clear {
177
+ right: auto;
178
+ left: 0;
179
+ }
180
+ .searchbar.searchbar-active .searchbar-cancel {
181
+ margin-left: 0;
182
+ margin-right: 8px;
183
+ }
184
+ /* === Message Bar === */
185
+ .messagebar .link + textarea {
186
+ margin-left: 0;
187
+ margin-right: 8px;
188
+ }
189
+ .messagebar textarea + .link {
190
+ margin-left: 0;
191
+ margin-right: 8px;
192
+ }
193
+ /* === Modals === */
194
+ .modal-button:first-child {
195
+ border-radius: 0 0 7px 0;
196
+ border-right: none;
197
+ }
198
+ .modal-button:last-child {
199
+ border-right: 1px solid #b5b5b5;
200
+ border-radius: 0 0 0 7px;
201
+ }
202
+ .modal-button:first-child:last-child {
203
+ border-radius: 0 0 7px 7px;
204
+ }
205
+ /* === Content Block === */
206
+ .content-block-inner {
207
+ margin-left: 0;
208
+ margin-right: -15px;
209
+ }
210
+ /* === Pages === */
211
+ .page-on-left {
212
+ -webkit-transform: translate3d(20%, 0, 0);
213
+ -ms-transform: translate3d(20%, 0, 0);
214
+ transform: translate3d(20%, 0, 0);
215
+ }
216
+ .page-on-right {
217
+ -webkit-transform: translate3d(-100%, 0, 0);
218
+ -ms-transform: translate3d(-100%, 0, 0);
219
+ transform: translate3d(-100%, 0, 0);
220
+ }
221
+ @-webkit-keyframes pageFromRightToCenter {
222
+ from {
223
+ -webkit-box-shadow: none;
224
+ box-shadow: none;
225
+ -webkit-transform: translate3d(-100%, 0, 0);
226
+ }
227
+ to {
228
+ -webkit-box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
229
+ box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
230
+ -webkit-transform: translate3d(0, 0, 0);
231
+ }
232
+ }
233
+ @-webkit-keyframes pageFromCenterToRight {
234
+ from {
235
+ -webkit-box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
236
+ box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
237
+ -webkit-transform: translate3d(0, 0, 0);
238
+ }
239
+ to {
240
+ -webkit-box-shadow: none;
241
+ box-shadow: none;
242
+ -webkit-transform: translate3d(-100%, 0, 0);
243
+ }
244
+ }
245
+ @keyframes pageFromRightToCenter {
246
+ from {
247
+ -webkit-box-shadow: none;
248
+ box-shadow: none;
249
+ transform: translate3d(-100%, 0, 0);
250
+ }
251
+ to {
252
+ -webkit-box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
253
+ box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
254
+ transform: translate3d(0, 0, 0);
255
+ }
256
+ }
257
+ @keyframes pageFromCenterToRight {
258
+ from {
259
+ -webkit-box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
260
+ box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
261
+ transform: translate3d(0, 0, 0);
262
+ }
263
+ to {
264
+ -webkit-box-shadow: none;
265
+ box-shadow: none;
266
+ transform: translate3d(100%, 0, 0);
267
+ }
268
+ }
269
+ @-webkit-keyframes pageFromCenterToLeft {
270
+ from {
271
+ opacity: 1;
272
+ -webkit-transform: translate3d(0, 0, 0);
273
+ }
274
+ to {
275
+ opacity: 0.9;
276
+ -webkit-transform: translate3d(20%, 0, 0);
277
+ }
278
+ }
279
+ @-webkit-keyframes pageFromLeftToCenter {
280
+ from {
281
+ opacity: 0.9;
282
+ -webkit-transform: translate3d(20%, 0, 0);
283
+ }
284
+ to {
285
+ opacity: 1;
286
+ -webkit-transform: translate3d(0, 0, 0);
287
+ }
288
+ }
289
+ @keyframes pageFromCenterToLeft {
290
+ from {
291
+ opacity: 1;
292
+ transform: translate3d(0, 0, 0);
293
+ }
294
+ to {
295
+ opacity: 0.9;
296
+ transform: translate3d(20%, 0, 0);
297
+ }
298
+ }
299
+ @keyframes pageFromLeftToCenter {
300
+ from {
301
+ opacity: 0.9;
302
+ transform: translate3d(20%, 0, 0);
303
+ }
304
+ to {
305
+ opacity: 1;
306
+ transform: translate3d(0, 0, 0);
307
+ }
308
+ }
309
+ @-webkit-keyframes pageFromRightToCenterDegrade {
310
+ from {
311
+ -webkit-transform: translate3d(-100%, 0, 0);
312
+ }
313
+ to {
314
+ -webkit-transform: translate3d(0, 0, 0);
315
+ }
316
+ }
317
+ @-webkit-keyframes pageFromCenterToRightDegrade {
318
+ from {
319
+ -webkit-transform: translate3d(0, 0, 0);
320
+ }
321
+ to {
322
+ -webkit-transform: translate3d(-100%, 0, 0);
323
+ }
324
+ }
325
+ @keyframes pageFromRightToCenterDegrade {
326
+ from {
327
+ transform: translate3d(-100%, 0, 0);
328
+ }
329
+ to {
330
+ transform: translate3d(0, 0, 0);
331
+ }
332
+ }
333
+ @keyframes pageFromCenterToRightDegrade {
334
+ from {
335
+ transform: translate3d(0, 0, 0);
336
+ }
337
+ to {
338
+ transform: translate3d(-100%, 0, 0);
339
+ }
340
+ }
341
+ /* === Messages === */
342
+ .message-received {
343
+ -ms-flex-item-align: end;
344
+ -webkit-align-self: flex-end;
345
+ align-self: flex-end;
346
+ -webkit-box-align: end;
347
+ -ms-flex-align: end;
348
+ -webkit-align-items: flex-end;
349
+ align-items: flex-end;
350
+ }
351
+ .message-sent {
352
+ -ms-flex-item-align: start;
353
+ -webkit-align-self: flex-start;
354
+ align-self: flex-start;
355
+ -webkit-box-align: start;
356
+ -ms-flex-align: start;
357
+ -webkit-align-items: flex-start;
358
+ align-items: flex-start;
359
+ }
360
+ /* === Back Icons === */
361
+ i.icon.icon-back {
362
+ background-image: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 20'><path d='M10,0l2,2l-8,8l8,8l-2,2L0,10L10,0z' fill='%23007aff' transform='translate(12,20) rotate(180)'/></svg>");
363
+ }
364
+ i.icon-back.color-gray,
365
+ i.icon-back.theme-gray,
366
+ .theme-gray i.icon-back {
367
+ background-image: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 20'><path d='M10,0l2,2l-8,8l8,8l-2,2L0,10L10,0z' fill='%238e8e93' transform='translate(12,20) rotate(180)'/></svg>");
368
+ }
369
+ i.icon-back.color-white,
370
+ i.icon-back.theme-white,
371
+ .theme-white i.icon-back {
372
+ background-image: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 20'><path d='M10,0l2,2l-8,8l8,8l-2,2L0,10L10,0z' fill='%23ffffff' transform='translate(12,20) rotate(180)'/></svg>");
373
+ }
374
+ i.icon-back.color-black,
375
+ i.icon-back.theme-black,
376
+ .theme-black i.icon-back {
377
+ background-image: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 20'><path d='M10,0l2,2l-8,8l8,8l-2,2L0,10L10,0z' fill='%23000000' transform='translate(12,20) rotate(180)'/></svg>");
378
+ }
379
+ i.icon-back.color-lightblue,
380
+ i.icon-back.theme-lightblue,
381
+ .theme-lightblue i.icon-back {
382
+ background-image: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 20'><path d='M10,0l2,2l-8,8l8,8l-2,2L0,10L10,0z' fill='%235ac8fa' transform='translate(12,20) rotate(180)'/></svg>");
383
+ }
384
+ i.icon-back.color-yellow,
385
+ i.icon-back.theme-yellow,
386
+ .theme-yellow i.icon-back {
387
+ background-image: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 20'><path d='M10,0l2,2l-8,8l8,8l-2,2L0,10L10,0z' fill='%23ffcc00' transform='translate(12,20) rotate(180)'/></svg>");
388
+ }
389
+ i.icon-back.color-orange,
390
+ i.icon-back.theme-orange,
391
+ .theme-orange i.icon-back {
392
+ background-image: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 20'><path d='M10,0l2,2l-8,8l8,8l-2,2L0,10L10,0z' fill='%23ff9500' transform='translate(12,20) rotate(180)'/></svg>");
393
+ }
394
+ i.icon-back.color-pink,
395
+ i.icon-back.theme-pink,
396
+ .theme-pink i.icon-back {
397
+ background-image: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 20'><path d='M10,0l2,2l-8,8l8,8l-2,2L0,10L10,0z' fill='%23ff2d55' transform='translate(12,20) rotate(180)'/></svg>");
398
+ }
399
+ i.icon-back.color-blue,
400
+ i.icon-back.theme-blue,
401
+ .theme-blue i.icon-back {
402
+ background-image: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 20'><path d='M10,0l2,2l-8,8l8,8l-2,2L0,10L10,0z' fill='%23007aff' transform='translate(12,20) rotate(180)'/></svg>");
403
+ }
404
+ i.icon-back.color-green,
405
+ i.icon-back.theme-green,
406
+ .theme-green i.icon-back {
407
+ background-image: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 20'><path d='M10,0l2,2l-8,8l8,8l-2,2L0,10L10,0z' fill='%234cd964' transform='translate(12,20) rotate(180)'/></svg>");
408
+ }
409
+ i.icon-back.color-red,
410
+ i.icon-back.theme-red,
411
+ .theme-red i.icon-back {
412
+ background-image: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 20'><path d='M10,0l2,2l-8,8l8,8l-2,2L0,10L10,0z' fill='%23ff3b30' transform='translate(12,20) rotate(180)'/></svg>");
413
+ }
414
+ /* === Accordion === */
415
+ .list-block .accordion-toggle .item-inner {
416
+ padding-right: 0;
417
+ padding-left: 35px;
418
+ background-position: 15px center;
419
+ background-image: url("data:image/svg+xml;charset=utf-8,<svg viewBox='0 0 60 120' xmlns='http://www.w3.org/2000/svg'><path d='m60 61.5-38.25 38.25-9.75-9.75 29.25-28.5-29.25-28.5 9.75-9.75z' fill='%23c7c7cc' transform='translate(60,120) rotate(180)'/></svg>");
420
+ }
421
+ .list-block .accordion-item-expanded .accordion-toggle .item-inner,
422
+ .list-block .accordion-item-expanded > .item-link .item-inner {
423
+ background-image: url("data:image/svg+xml;charset=utf-8,<svg viewBox='0 0 60 120' xmlns='http://www.w3.org/2000/svg'><path d='m60 61.5-38.25 38.25-9.75-9.75 29.25-28.5-29.25-28.5 9.75-9.75z' transform='translate(70, 30) rotate(90)' fill='%23c7c7cc'/></svg>");
424
+ }
425
+ .list-block .accordion-item ul {
426
+ padding-right: 0;
427
+ }
@@ -0,0 +1,279 @@
1
+ /*==========================
2
+ Framework7 Layouts Themes
3
+ ==========================*/
4
+ .layout-dark .navbar,
5
+ .navbar.layout-dark {
6
+ border-bottom-color: #333333;
7
+ background-color: #131313;
8
+ color: #ffffff;
9
+ }
10
+ .layout-dark .toolbar,
11
+ .toolbar.layout-dark {
12
+ border-top-color: #333333;
13
+ background-color: #131313;
14
+ color: #ffffff;
15
+ }
16
+ .layout-dark .photo-browser .navbar,
17
+ .photo-browser.layout-dark .navbar,
18
+ .layout-dark .view[data-page="photo-browser-slides"] .navbar,
19
+ .view[data-page="photo-browser-slides"].layout-dark .navbar,
20
+ .layout-dark .photo-browser .toolbar,
21
+ .photo-browser.layout-dark .toolbar,
22
+ .layout-dark .view[data-page="photo-browser-slides"] .toolbar,
23
+ .view[data-page="photo-browser-slides"].layout-dark .toolbar {
24
+ background: rgba(19, 19, 19, 0.95);
25
+ }
26
+ .layout-dark .tabbar a:not(.active) {
27
+ color: #ffffff;
28
+ }
29
+ .layout-dark .page,
30
+ .layout-dark .login-screen-content,
31
+ .page.layout-dark,
32
+ .layout-dark .panel,
33
+ .panel.layout-dark {
34
+ background-color: #222426;
35
+ color: #dddddd;
36
+ }
37
+ .layout-dark .content-block-title {
38
+ color: #ffffff;
39
+ }
40
+ .layout-dark .content-block,
41
+ .content-block.layout-dark {
42
+ color: #bbbbbb;
43
+ }
44
+ .layout-dark .content-block-inner {
45
+ background: #1c1d1f;
46
+ color: #dddddd;
47
+ border-color: #393939;
48
+ }
49
+ .layout-dark .list-block ul,
50
+ .list-block.layout-dark ul {
51
+ background: #1c1d1f;
52
+ border-color: #393939;
53
+ }
54
+ .layout-dark .list-block.inset ul,
55
+ .list-block.layout-dark.inset ul {
56
+ background: #1c1d1f;
57
+ }
58
+ .layout-dark .list-block.notifications > ul,
59
+ .list-block.layout-dark.notifications > ul {
60
+ background: none;
61
+ }
62
+ .layout-dark .popover,
63
+ .popover.layout-dark {
64
+ background: rgba(0, 0, 0, 0.8);
65
+ }
66
+ .layout-dark .popover .popover-angle:after,
67
+ .popover.layout-dark .popover-angle:after {
68
+ background: rgba(0, 0, 0, 0.8);
69
+ }
70
+ .layout-dark .popover .list-block ul,
71
+ .popover.layout-dark .list-block ul {
72
+ background: none;
73
+ }
74
+ .layout-dark .actions-popover .list-block ul {
75
+ border-color: #393939;
76
+ }
77
+ .layout-dark .actions-popover .actions-popover-label {
78
+ border-bottom-color: #393939;
79
+ }
80
+ .layout-dark li.sorting {
81
+ background-color: #29292f;
82
+ }
83
+ .layout-dark .swipeout-actions-left a,
84
+ .layout-dark .swipeout-actions-right a {
85
+ background-color: #444444;
86
+ }
87
+ .layout-dark .item-inner,
88
+ .layout-dark .list-block ul ul li:last-child .item-inner {
89
+ border-color: #393939;
90
+ }
91
+ .layout-dark .item-after {
92
+ color: #bbbbbb;
93
+ }
94
+ html:not(.watch-active-state) .layout-dark .item-link:active,
95
+ html:not(.watch-active-state) .layout-dark label.label-checkbox:active,
96
+ html:not(.watch-active-state) .layout-dark label.label-radio:active,
97
+ .layout-dark .item-link.active-state,
98
+ .layout-dark label.label-checkbox.active-state,
99
+ .layout-dark label.label-radio.active-state {
100
+ background-color: #29292f;
101
+ }
102
+ .layout-dark .item-link.list-button {
103
+ border-bottom-color: #393939;
104
+ }
105
+ .layout-dark .list-block-label {
106
+ color: #bbbbbb;
107
+ }
108
+ .layout-dark .item-divider,
109
+ .layout-dark .list-group-title {
110
+ background: #1a1a1a;
111
+ color: #bbbbbb;
112
+ border-top-color: #393939;
113
+ }
114
+ .layout-dark .searchbar {
115
+ background: #333333;
116
+ border-bottom-color: #333333;
117
+ }
118
+ .layout-dark .list-block input[type="text"],
119
+ .list-block.layout-dark input[type="text"],
120
+ .layout-dark .list-block input[type="password"],
121
+ .list-block.layout-dark input[type="password"],
122
+ .layout-dark .list-block input[type="email"],
123
+ .list-block.layout-dark input[type="email"],
124
+ .layout-dark .list-block input[type="tel"],
125
+ .list-block.layout-dark input[type="tel"],
126
+ .layout-dark .list-block input[type="url"],
127
+ .list-block.layout-dark input[type="url"],
128
+ .layout-dark .list-block input[type="date"],
129
+ .list-block.layout-dark input[type="date"],
130
+ .layout-dark .list-block input[type="datetime-local"],
131
+ .list-block.layout-dark input[type="datetime-local"],
132
+ .layout-dark .list-block input[type="number"],
133
+ .list-block.layout-dark input[type="number"],
134
+ .layout-dark .list-block select,
135
+ .list-block.layout-dark select,
136
+ .layout-dark .list-block textarea,
137
+ .list-block.layout-dark textarea {
138
+ color: #ffffff;
139
+ }
140
+ .layout-dark .label-switch .checkbox {
141
+ background-color: #393939;
142
+ }
143
+ .layout-dark .label-switch .checkbox:before {
144
+ background-color: #1c1d1f;
145
+ }
146
+ .layout-dark .range-slider input[type="range"]:after {
147
+ background: #1c1d1f;
148
+ }
149
+ /* === White layout === */
150
+ .layout-white .navbar,
151
+ .navbar.layout-white {
152
+ border-bottom-color: #dddddd;
153
+ background-color: #ffffff;
154
+ color: #000000;
155
+ }
156
+ .layout-white .toolbar,
157
+ .toolbar.layout-white {
158
+ border-top-color: #dddddd;
159
+ background-color: #ffffff;
160
+ color: #000000;
161
+ }
162
+ .layout-white .photo-browser .navbar,
163
+ .photo-browser.layout-white .navbar,
164
+ .layout-white .view[data-page="photo-browser-slides"] .navbar,
165
+ .view[data-page="photo-browser-slides"].layout-white .navbar,
166
+ .layout-white .photo-browser .toolbar,
167
+ .photo-browser.layout-white .toolbar,
168
+ .layout-white .view[data-page="photo-browser-slides"] .toolbar,
169
+ .view[data-page="photo-browser-slides"].layout-white .toolbar {
170
+ background: rgba(255, 255, 255, 0.95);
171
+ }
172
+ .layout-white .tabbar a:not(.active) {
173
+ color: #777777;
174
+ }
175
+ .layout-white .page,
176
+ .layout-white .login-screen-content,
177
+ .page.layout-white,
178
+ .layout-white .panel,
179
+ .panel.layout-white {
180
+ background-color: #ffffff;
181
+ color: #000000;
182
+ }
183
+ .layout-white .content-block-title {
184
+ color: #777777;
185
+ }
186
+ .layout-white .content-block,
187
+ .content-block.layout-white {
188
+ color: #777777;
189
+ }
190
+ .layout-white .content-block-inner {
191
+ background: #fafafa;
192
+ color: #000000;
193
+ border-color: #dddddd;
194
+ }
195
+ .layout-white .list-block ul,
196
+ .list-block.layout-white ul {
197
+ background: #ffffff;
198
+ border-color: #dddddd;
199
+ }
200
+ .layout-white .list-block.inset ul,
201
+ .list-block.layout-white.inset ul {
202
+ background: #fafafa;
203
+ }
204
+ .layout-white .list-block.notifications > ul,
205
+ .list-block.layout-white.notifications > ul {
206
+ background: none;
207
+ }
208
+ .layout-white .popover-inner > .list-block ul {
209
+ background: none;
210
+ }
211
+ .layout-white li.sorting {
212
+ background-color: #eeeeee;
213
+ }
214
+ .layout-white .swipeout-actions-left a,
215
+ .layout-white .swipeout-actions-right a {
216
+ background-color: #c7c7cc;
217
+ }
218
+ .layout-white .item-inner,
219
+ .layout-white .list-block ul ul li:last-child .item-inner {
220
+ border-color: #dddddd;
221
+ }
222
+ .layout-white .item-after {
223
+ color: #8e8e93;
224
+ }
225
+ html:not(.watch-active-state) .layout-white .item-link:active,
226
+ html:not(.watch-active-state) .layout-white label.label-checkbox:active,
227
+ html:not(.watch-active-state) .layout-white label.label-radio:active,
228
+ .layout-white .item-link.active-state,
229
+ .layout-white label.label-checkbox.active-state,
230
+ .layout-white label.label-radio.active-state {
231
+ background-color: #eeeeee;
232
+ }
233
+ .layout-white .item-link.list-button {
234
+ border-bottom-color: #dddddd;
235
+ }
236
+ .layout-white .list-block-label {
237
+ color: #777777;
238
+ }
239
+ .layout-white .item-divider,
240
+ .layout-white .list-group-title {
241
+ background: #f7f7f7;
242
+ color: #777777;
243
+ border-top-color: #dddddd;
244
+ }
245
+ .layout-white .searchbar {
246
+ background: #c9c9ce;
247
+ border-bottom-color: #b4b4b4;
248
+ }
249
+ .layout-white .list-block input[type="text"],
250
+ .list-block.layout-white input[type="text"],
251
+ .layout-white .list-block input[type="password"],
252
+ .list-block.layout-white input[type="password"],
253
+ .layout-white .list-block input[type="email"],
254
+ .list-block.layout-white input[type="email"],
255
+ .layout-white .list-block input[type="tel"],
256
+ .list-block.layout-white input[type="tel"],
257
+ .layout-white .list-block input[type="url"],
258
+ .list-block.layout-white input[type="url"],
259
+ .layout-white .list-block input[type="date"],
260
+ .list-block.layout-white input[type="date"],
261
+ .layout-white .list-block input[type="datetime-local"],
262
+ .list-block.layout-white input[type="datetime-local"],
263
+ .layout-white .list-block input[type="number"],
264
+ .list-block.layout-white input[type="number"],
265
+ .layout-white .list-block select,
266
+ .list-block.layout-white select,
267
+ .layout-white .list-block textarea,
268
+ .list-block.layout-white textarea {
269
+ color: #777777;
270
+ }
271
+ .layout-white .label-switch .checkbox {
272
+ background-color: #e5e5e5;
273
+ }
274
+ .layout-white .label-switch .checkbox:before {
275
+ background-color: #ffffff;
276
+ }
277
+ .layout-white .range-slider input[type="range"]:after {
278
+ background: #ffffff;
279
+ }