UI: 2024 Hero component options #103971

Merged
Márton Lente merged 66 commits from ui/2024-hero-options into main 2024-09-24 13:00:31 +02:00
2 changed files with 24 additions and 1 deletions
Showing only changes of commit 8e5b19fe6a - Show all commits

View File

@ -54,6 +54,25 @@ body.is-scrolled
max-height: calc(var(--spacer) * 11.25)
min-height: initial
.hero-gradient
background: linear-gradient(0deg, var(--body-color-bg) 0%, rgba(0, 0, 0, 0) 100%)
bottom: 0
height: calc(var(--spacer) * 8)
left: 0
position: absolute
width: 100%
.hero-lg
--hero-max-height: calc(var(--spacer) * 50)
--hero-min-height: calc(var(--spacer) * 45)
&.is-container-overlap
&+.container
--page-with-header-content-offset: calc(var(--spacer) * 16)
+media-sm
--page-with-header-content-offset: calc(var(--spacer) * 14)
.btn-float-right
position: absolute
right: calc(var(--spacer) * 2)

View File

@ -4,7 +4,8 @@
| {% block header %}
| {% block jumbotron %}
.hero.is-container-overlap
// TODO: @back-end make '.hero-lg' optional
.hero.hero-lg.is-container-overlap
.container
.hero-content
{% if edition.logo %}
@ -22,7 +23,10 @@
{% endif %}
.hero-bg(style="background-image: url({{ edition.header.url }}); background-position-y: 50%")
// TODO: @back-end make '.hero-overlay' optional
.hero-overlay
// TODO: @back-end make '.hero-gradient' optional
.hero-gradient
| {% endblock jumbotron %}
| {% endblock header %}