Fix button offset and hover bug

This commit is contained in:
Maciej Matuszewski 2018-01-25 21:21:52 +01:00
parent 73d990dffb
commit 1d1f4c371b
3 changed files with 14 additions and 11 deletions

View File

@ -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

View File

@ -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);
}

View File

@ -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;