X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/8885fd14f5f040eb3aa69f1d705856f99a1fa572..ab9b52b00d9c995e2b2036f32270841bfebb11b2:/src/wolnelektury/static/2022/styles/layout/_annoy.scss diff --git a/src/wolnelektury/static/2022/styles/layout/_annoy.scss b/src/wolnelektury/static/2022/styles/layout/_annoy.scss index f0f06360a..70704f34d 100644 --- a/src/wolnelektury/static/2022/styles/layout/_annoy.scss +++ b/src/wolnelektury/static/2022/styles/layout/_annoy.scss @@ -51,7 +51,7 @@ .annoy-banner-off { font-size: 1.2rem !important; } - + @include rwd($break-flow) { .annoy-banner-inner { padding: 0; @@ -69,7 +69,183 @@ } .annoy-banner-off { - + } } } + + +.annoy-banner_crisis-container, +.annoy-banner_top-container { + position: sticky; + top: 0; + z-index: 10; + box-shadow: 0 0 10px black; + display: flex; + background: #c32721; + color: black; + align-items:center; + cursor: pointer; + + &.annoy-banner_top-container { + padding: 16px 0; + + @media screen and (max-height: 700px) { + padding: 5px 0; + } + } + &.annoy-banner_crisis-container { + height: 160px; + + @media screen and (min-height: 480px) { + height: 33vh; + top: calc(-33vh + 160px); + } + + @media screen and (max-width: 940px) { + padding: 10px 0; + height: auto; + top: 0; + } + } + + + .annoy-banner_crisis, + .annoy-banner_top { + position: sticky; + top: 0; + width: 100%; + + .annoy-banner-inner { + max-width: 1172px; + margin: auto; + padding-right: 16px; + padding-left: 16px; + + display: flex; + gap: 20px; + align-items: flex-start; + + .image-box { + position: relative; + img { + max-height: 159px; + display: block; + + @media screen and (max-width: 700px) { + max-height: 120px; + } + } + } + + .text-box { + flex-grow: 1; + display: flex; + flex-direction: column; + gap: 10px; + + @media screen and (max-width: 700px) { + p { + font-size: .9em; + } + } + + @media screen and (max-height: 700px) { + flex-direction: row; + justify-content: space-between; + p { + font-size: .9em; + } + } + + + .text { + background: #edc016; + padding: 1em; + border: 3px solid black; + } + + @media screen and (max-height: 400px) { + align-items: center; + .text { + height: 1.2em; + overflow: hidden; + } + } + + a { + color: #c32721; + } + .state-box { + display: flex; + gap: 10px; + align-items: center; + @media screen and (max-width: 700px) { + flex-direction: column; + align-items: stretch; + text-align: center; + } + .progress-box { + flex-grow: 1; + + .l-checkout__support__bar span::after { + color: black; + } + } + .time-box { + width: 110px; + margin: auto; + } + .countdown { + margin: 0; + } + } + } + + p { + margin: 0; + } + + a.action { + background: #edc016; + color: black; + padding: .8em 1em; + border: 3px solid black; + border-radius: 10px; + display: block; + transition: background-color .2s; + + @media screen and (max-height: 700px) { + font-size: .9em; + } + @media screen and (max-height: 400px) { + white-space: nowrap; + } + + &:hover { + background: #ffd430; + text-decoration: none; + } + } + } + } + &.annoy-banner-style_crisis_quiet, + &.annoy-banner_top-container { + background: black; + color: white; + .annoy-banner-inner { + align-items: center; + + .text-box { + .text { + background: none; + padding: 0; + border: none; + a { + color: #ffd430; + } + } + } + } + } +}