Add scroll-effect (shadow) to header bar

This commit is contained in:
Philipp Stracker 2024-12-03 15:18:08 +01:00
parent 0f992dbe3b
commit 841a98e009
No known key found for this signature in database
3 changed files with 57 additions and 1 deletions

View file

@ -8,6 +8,7 @@
box-shadow: 0 -1px 0 0 $color-gray-300 inset;
background: var(--ppcp-color-app-bg);
transition: box-shadow 0.3s;
--wp-components-color-accent: #{$color-blueberry};
--color-text: #{$color-gray-900};
@ -78,6 +79,10 @@
}
}
&.is-scrolled {
box-shadow: 0 -1px 0 0 $color-gray-300 inset, 0 8px 8px 0 rgba(85,93,102,.3);
}
@media screen and (max-width: 480px) {
padding: 24px 35px;