h1 now scrolls with the page on recipes
This commit is contained in:
parent
a92ecdb897
commit
ff78543bb7
2 changed files with 13 additions and 1 deletions
|
@ -13,7 +13,8 @@ layout: default
|
|||
{%- endif -%}
|
||||
{%- endfor -%}
|
||||
|
||||
<h1>{{ page.name }}</h1>
|
||||
<h1 class='scrolling'>{{ page.name }}</h1>
|
||||
<h1 class='invisible'>{{ page.name }}</h1>
|
||||
{%- if page.time -%}
|
||||
{%- if page.time > 59 %}
|
||||
{%- assign hours = page.time | divided_by: 60 -%}
|
||||
|
|
|
@ -20,6 +20,17 @@ h1 {
|
|||
text-align: center;
|
||||
background: linear-gradient(to right, turquoise, transparent 80%);
|
||||
}
|
||||
h1.scrolling {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
/* backdrop-filter: blur(5px); */ /* disabled because firefox (73) renders it weirdly */
|
||||
}
|
||||
h1.invisible {
|
||||
position: relative;
|
||||
visibility: hidden;
|
||||
}
|
||||
h2 {
|
||||
padding-left: 10px;
|
||||
background: linear-gradient(to right, turquoise 5px, transparent 5px 100%);
|
||||
|
|
Loading…
Reference in a new issue