UI: Implement Web Assets' theme system, and add 'dark' theme #103972
@ -269,7 +269,7 @@ PIPELINE = {
|
|||||||
'output_filename': 'js/festival-finals.js',
|
'output_filename': 'js/festival-finals.js',
|
||||||
},
|
},
|
||||||
'web-assets': {
|
'web-assets': {
|
||||||
'source_filenames': ('tutti/10_navbar.js',),
|
'source_filenames': ('tutti/10_navbar.js', 'tutti/20_theme.js',),
|
||||||
'output_filename': 'js/web-assets.js',
|
'output_filename': 'js/web-assets.js',
|
||||||
'extra_context': {'async': True, 'defer': True},
|
'extra_context': {'async': True, 'defer': True},
|
||||||
},
|
},
|
||||||
|
@ -2,6 +2,7 @@ $font-path: '/static/assets/fonts'
|
|||||||
|
|
||||||
// Import Web Assets.
|
// Import Web Assets.
|
||||||
@import "../../../../assets_shared/src/styles/main.sass"
|
@import "../../../../assets_shared/src/styles/main.sass"
|
||||||
|
@import "../../../../assets_shared/src/styles/_theme_system.sass"
|
||||||
|
|
||||||
@import "_albums.sass"
|
@import "_albums.sass"
|
||||||
@import "_attendee.sass"
|
@import "_attendee.sass"
|
||||||
|
@ -37,6 +37,10 @@ nav.nav-global(role='navigation')
|
|||||||
| {% endif %}
|
| {% endif %}
|
||||||
| {% endif %}
|
| {% endif %}
|
||||||
|
|
||||||
|
li
|
||||||
|
button.js-toggle-theme-btn
|
||||||
|
i.i-adjust.js-toggle-theme-btn-icon
|
||||||
|
|
||||||
| {% include "conference_main/_navbar_menu_user.pug" %}
|
| {% include "conference_main/_navbar_menu_user.pug" %}
|
||||||
|
|
||||||
li
|
li
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
| {% load static %}
|
| {% load static %}
|
||||||
| {% load pipeline %}
|
| {% load pipeline %}
|
||||||
!!! 5
|
!!! 5
|
||||||
html(lang="en")
|
html(data-theme="light", lang="en")
|
||||||
head
|
head
|
||||||
meta(charset='utf-8')
|
meta(charset='utf-8')
|
||||||
meta(name='viewport', content='width=device-width, initial-scale=1.0')
|
meta(name='viewport', content='width=device-width, initial-scale=1.0')
|
||||||
|
Loading…
Reference in New Issue
Block a user