X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/891c65c58eef499c1ffc3a5fe690e1b6bff0f0db..b0fadf2591f3af957c1c8e0307d0bcef9e9f8538:/src/wolnelektury/static/2022/styles/local.scss diff --git a/src/wolnelektury/static/2022/styles/local.scss b/src/wolnelektury/static/2022/styles/local.scss index aac3990f0..548c0b14a 100644 --- a/src/wolnelektury/static/2022/styles/local.scss +++ b/src/wolnelektury/static/2022/styles/local.scss @@ -1,4 +1,7 @@ + $teal: #007880; +$green: #92BD39; +$red: #FF4C54; .l-change-pop { @@ -41,19 +44,24 @@ $teal: #007880; .sponsors-page { display: flex; - justify-content: space-between; margin-top: 48px; - - @include rwd(tablet) { - flex-wrap: wrap; + flex-wrap: wrap; + justify-content: space-around; + gap: 60px; + + @include rwd($break-wide) { + gap: 0; + justify-content: space-between; + flex-wrap: nowrap; } .sponsors-column { - margin: 1em 40px; + margin: 1em 0; display: flex; flex-direction: column; align-items: center; font-size: 0; + .sponsors-column-name { font-weight: $regular; @include font-size(18px); @@ -64,6 +72,7 @@ $teal: #007880; color: #474747; display: flex; align-items: center; + max-width: 8em; } .sponsor-logos { height: 140px; @@ -198,6 +207,37 @@ $teal: #007880; padding: 5px 10px; margin-left: 5px; border-radius: 15px; + + a { + color: currentColor; + } + a:hover { + color: inherit; + } + + &.filter-category-epoch { + background: $teal; + color: white; + } + &.filter-category-kind { + background: $red; + } + &.filter-category-genre { + background: $green; + } + &.filter-category-set { + background: white; + color: black; + border: 1px solid #888; + + &:after { + content: ''; + font-family: 'wl' !important; + font-size: .9em; + margin-left: 3px; + color: $red; + } + } } } @@ -211,6 +251,7 @@ $teal: #007880; } .with-filter .row div.filter-container { background: white; + width: 100%; top: 0; bottom: 100%; opacity: 0; @@ -226,6 +267,11 @@ $teal: #007880; opacity: 1; } } +.with-filter .row div.filter-container:hover { + top: 15px; + bottom: 5px; + opacity: 1; +} .l-books__input .filter-container { top: 0;