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) max-height: calc(var(--spacer) * 11.25)
min-height: initial 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 .btn-float-right
position: absolute position: absolute
right: calc(var(--spacer) * 2) right: calc(var(--spacer) * 2)

View File

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