X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/eb2eb95bfbfe8c777c4192ea434a0e999edf3a51..8db46b44b9824b66f10c1b8030b1bdb5a5cc9795:/src/wolnelektury/static/2022/styles/layout/_navigation.scss diff --git a/src/wolnelektury/static/2022/styles/layout/_navigation.scss b/src/wolnelektury/static/2022/styles/layout/_navigation.scss index 0148ed64b..8209a3bb6 100644 --- a/src/wolnelektury/static/2022/styles/layout/_navigation.scss +++ b/src/wolnelektury/static/2022/styles/layout/_navigation.scss @@ -6,12 +6,42 @@ display: flex; align-items: center; justify-content: space-between; + flex-direction: column; .l-container { display: flex; align-items: center; justify-content: space-between; } + + &.is-open { + position: fixed; + top: 0; left: 0; + width: 100%; + z-index: $master-layer; + .l-navigation__menu { + opacity: 1; + pointer-events: all; + } + + .c-lang { + opacity: 1; + .c-lang__button { + pointer-events: all; + } + } + } +} + +.l-navigation__logo { + position: relative; + z-index: $master-layer + 1; + + @include rwd(tablet) { + img { + width: 153px; + } + } } .l-navigation__button { @@ -21,6 +51,8 @@ padding: 0; margin: 0; outline: 0; + position: relative; + z-index: $master-layer + 1; } .l-naviagion__search { @@ -29,12 +61,17 @@ margin-left: 60px; margin-right: auto; + @include rwd(tablet) { + margin-left: 20px; + margin-right: 20px; + } + input { font-family: $base-font; font-size: 18px; font-style: italic; border: 0; - padding: 10px; + padding: 10px 20px; border-radius: 52px; width: 100%; max-width: 580px; @@ -52,4 +89,213 @@ font-size: 30px; margin-right: 25px; } + + @include rwd(tablet) { + a { + display: none; + } + } +} + +.l-change-pop { + align-items: center; + max-width: 1140px; + border-radius: 10px; + padding: 10px 50px; + width: 100%; + margin-bottom: 10px; + background-color: #FBC40F; + position: relative; + display: none; + + &.show { + display: flex; + } + + h3 { + font-style: italic; + font-weight: normal; + font-size: 32px; + line-height: 100%; + letter-spacing: -0.02em; + color: #333333; + margin: 0; + min-width: 189px; + margin-right: 48px; + } + + p { + font-weight: normal; + font-size: 15px; + line-height: 150%; + color: #333333; + margin: 0; + max-width: 590px; + } +} + +.l-change-pop__close { + border: 0; + background: transparent; + color: #333333; + outline: 0; + position: absolute; + right: 26px; + top: 0; + bottom: 0; + margin: auto; + cursor: pointer; +} + +.l-navigation__menu { + position: fixed; + top: 0; left: 0; + width: 100%; height: 100%; + background-color: #083F4D; + z-index: $master-layer; + padding-top: 93px; + opacity: 0; + pointer-events: none; + transition: opacity 350ms $ease-out; + + .l-container { + display: flex; + flex-direction: column; + } } + +.l-navigation__menu__links { + width: 100%; + display: flex; + justify-content: space-between; + + @include rwd(tablet) { + flex-wrap: wrap; + max-height: calc(100vh - 120px); + overflow-y: scroll; + } + + ul { + margin: 0; + padding: 0; + list-style: none; + max-width: 212px; + + @include rwd(tablet) { + width: 100%; + max-width: 100%; + margin-bottom: 20px; + } + + li { + font-weight: $regular; + @include font-size(18px); + line-height: 100%; + padding-top: 16px; + + strong { + color: #92BD39; + font-weight: $semibold; + @include font-size(21px); + line-height: 140%; + letter-spacing: -0.01em; + } + + a { + color: $color-white; + &:hover { + text-decoration: underline; + } + } + + hr { + width: 34px; + height: 1px; + background: #007880; + margin-left: 0; + border: 0; + } + } + } +} + +.l-navigation__menu__info { + display: flex; + width: 100%; + padding-top: 58px; + justify-content: space-between; + align-items: flex-end; +} + +.l-navigation__menu__book { + p { + color: $color-white; + @include font-size(21px); + line-height: 140%; + strong { + color: #92BD39; + letter-spacing: -0.01em; + font-weight: $semibold; + } + } +} + +.l-navigation__menu__book__info { + display: flex; + margin-top: 20px; + align-items: flex-start; + padding: 12px; + background-color: $color-white; + border-radius: 6px; + color: #808080; + + img { + margin-right: 10px; + } + + h3 { + margin: 0; + font-weight: $regular; + @include font-size(15px); + line-height: 120%; + width: 150px; + strong { + display: block; + font-weight: $semibold; + @include font-size(18px); + line-height: 130%; + } + } + + p { + margin: 0; + width: 427px; + font-weight: $regular; + @include font-size(15px); + line-height: 130%; + color: #808080; + } +} + +.l-navigation__menu__social { + ul { + display: flex; + list-style: none; + padding: 0; + margin: 0; + li { + &:not(:last-child) { + margin-right: 36px; + } + a { + color: $color-white; + &:hover { + color: #92BD39; + } + } + .icon { + @include font-size(28px); + } + } + } +} \ No newline at end of file