diff --git a/private/js/modules/_reveal.js b/private/js/modules/_reveal.js index 9664999..5d26c94 100644 --- a/private/js/modules/_reveal.js +++ b/private/js/modules/_reveal.js @@ -54,6 +54,7 @@ $(function() { reveal_element($('.header__logo')); reveal_elements($('.timetable__clock__frame')); reveal_element($('.timetable__next')); + reveal_element($('.timetable__button')); reveal_element($('.timetable__start__background')); }); \ No newline at end of file diff --git a/private/scss/modules/plugins/_form.scss b/private/scss/modules/plugins/_form.scss index e2a947c..5fec658 100644 --- a/private/scss/modules/plugins/_form.scss +++ b/private/scss/modules/plugins/_form.scss @@ -153,6 +153,28 @@ min-width: em(200px); } +.button--icon { + transform: none; + transition: transform 0.4s $easeOutQuart; + .button__icon { + display: inline-block; + vertical-align: top; + position: relative; + transform: none !important; + width: auto; + padding-left: em(15px); + } + .button__text { + vertical-align: top; + transform: none !important; + padding-left: 0; + min-width: auto; + } + &:hover { + transform: scale(1.05); + } +} + .form__field { width: 100%; display: block; diff --git a/private/scss/modules/plugins/_timetable.scss b/private/scss/modules/plugins/_timetable.scss index 3c9fde2..9c2152b 100644 --- a/private/scss/modules/plugins/_timetable.scss +++ b/private/scss/modules/plugins/_timetable.scss @@ -14,11 +14,11 @@ $timetable_count: 15; .timetable__button { opacity: 0; position: fixed; - top: 103px; + bottom: 150px; left: 50%; transform: translateX(-50%); z-index: 1000; - transition: opacity 0.5s $easeOutQuad; + transition: opacity 0.5s $easeOutQuad, transform 0.5s $easeOutQuad; #timetable[data-active="0"] & { opacity: 1; } @@ -30,6 +30,15 @@ $timetable_count: 15; height: 20px; margin-left: -20px; } + &.reveal { + transform: translateX(-50%) scale(1.2); + } + @media screen and (max-width: $huge_breakpoint) { + bottom: 130px; + } + @media screen and (max-width: $large_breakpoint) { + bottom: 120px; + } } .timetable__clock__frame { diff --git a/src/project/templates/project/plugins/timetable/timetable.html b/src/project/templates/project/plugins/timetable/timetable.html index adc3736..149b233 100644 --- a/src/project/templates/project/plugins/timetable/timetable.html +++ b/src/project/templates/project/plugins/timetable/timetable.html @@ -2,8 +2,8 @@