Fix button offset and hover bug
This commit is contained in:
parent
73d990dffb
commit
1d1f4c371b
|
@ -1,7 +1,6 @@
|
|||
<{{#if href}}a href={{href}} rel="noopener" target="_blank"{{else}}button{{/if}}
|
||||
class="button {{ class }}"
|
||||
>
|
||||
<div class="js-reveal-block {{ternary orangeReveal "js-reveal-orange" ""}} js-parallax"
|
||||
<div class="button {{ class }}">
|
||||
<{{#if href}}a href={{href}} rel="noopener" target="_blank"{{else}}button{{/if}}
|
||||
class="button__hover-trigger js-reveal-block {{ternary orangeReveal "js-reveal-orange" ""}} js-parallax"
|
||||
data-rellax-speed="{{ternary rellax-speed rellax-speed 0}}"
|
||||
>
|
||||
<div
|
||||
|
|
|
@ -2,13 +2,17 @@ $_button_transition: all .25s ease-in-out;
|
|||
|
||||
.button {
|
||||
width: 100%;
|
||||
font-family: 'Work Sans';
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
transition: $_button_transition;
|
||||
|
||||
&:hover &__wrapper {
|
||||
&,
|
||||
&__hover-trigger {
|
||||
font-family: 'Work Sans';
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
transition: $_button_transition;
|
||||
}
|
||||
|
||||
&__hover-trigger:hover &__wrapper {
|
||||
&::before {
|
||||
transform: scaleX(1);
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
.header {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
z-index: 10;
|
||||
z-index: 11;
|
||||
width: 100%;
|
||||
height: $header-height--mobile;
|
||||
background-color: $color-navy;
|
||||
|
|
Loading…
Reference in New Issue