style = models.CharField(
'styl', max_length=255, blank=True,
choices=STYLES,
- help_text='Dotyczy blackoutu.'
)
smallfont = models.BooleanField('mały font', default=False)
text_color = models.CharField(max_length=10, blank=True)
# ('centre', 'Środek ekranu'),
('upper', 'Górna połowa ekranu'),
)),
- ('crisis', 'Kryzysowa', False),
+ ('crisis', 'Kryzysowa', False, (
+ ('quiet', 'Spokojny'),
+ ('loud', 'Ostry'),
+ )),
]
PLACE_CHOICES = [p[:2] for p in PLACE_DEFINITIONS]
for p in PLACE_DEFINITIONS:
if len(p) > 3:
STYLES.extend([
- (f'{p[0]}_{s[0]}', s[1])
+ (f'{p[0]}_{s[0]}', f'{p[1]} — {s[1]}')
for s in p[3]
])
{% load time_tags %}
{% if banner %}
-<div class="annoy-banner_crisis-container">
+<div class="
+ annoy-banner_crisis-container
+ annoy-banner-style_{{ banner.style }}
+ ">
<div class="
annoy-banner
annoy-banner_{{ banner.place }}
- annoy-banner-style_{{ banner.style }}
{% if banner.image %}with-image{% endif %}
{% if banner.smallfont %}banner-smallfont{% endif %}
"
.image-box {
position: relative;
img {
- height: 160px;
+ height: 159px;
display: block;
@media screen and (max-width: 700px) {
}
}
}
+ &.annoy-banner-style_crisis_quiet {
+ background: black;
+ color: white;
+ .annoy-banner-inner {
+ align-items: center;
+
+ .text-box {
+ .text {
+ background: none;
+ padding: 0;
+ border: none;
+ a {
+ color: #ffd430;
+ }
+ }
+ }
+ }
+ }
}