X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/d8a368e376f9f50ff0e3714ef716df548e86bd7f..dce88babe4ba454ab67da205cacc5441c4953809:/src/wolnelektury/static/2022/styles/layout/_books.scss?ds=inline diff --git a/src/wolnelektury/static/2022/styles/layout/_books.scss b/src/wolnelektury/static/2022/styles/layout/_books.scss index e08a4aa95..c983b3876 100644 --- a/src/wolnelektury/static/2022/styles/layout/_books.scss +++ b/src/wolnelektury/static/2022/styles/layout/_books.scss @@ -29,10 +29,7 @@ box-shadow: 0 4px 10px rgba(0, 0, 0, 0); transition: all $ease-dynamic 350ms; outline: 0; - - @include rwd(tablet) { - padding: 16px; - } + margin: 5px; &.l-books__item--placeholder { opacity: 0; @@ -43,15 +40,6 @@ outline: 0; } - &:not(:last-child) { - margin-right: 17px; - - @include rwd(tablet) { - margin-right: 5px; - margin-left: 5px; - } - } - &:hover { box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25); } @@ -88,8 +76,10 @@ } a { + color: currentColor; &:hover { - text-decoration: underline; + text-decoration: underline; + color: $color-primary; } } @@ -107,6 +97,9 @@ color: #808080; margin: 0; } + .other-info { + display: none; + } } .l-books__item__img { @@ -114,11 +107,10 @@ margin: 0 0 11px; img { - max-width: 170px; - - @include rwd(tablet) { - max-width: 140px; - } + width: 100%; + @include rwd($break3) { + width: 173px; + } } } @@ -150,16 +142,25 @@ .l-books__header { width: 100%; display: flex; + gap: 16px; + flex-direction: column; margin-top: 34px; align-items: center; justify-content: space-between; + align-items: stretch; + + @include rwd($break-flow) { + flex-direction: row; + } } .l-books__input { position: relative; display: flex; align-content: center; - width: 560px; + @include rwd($break-flow) { + width: 560px; + } .icon { @include font-size(22px); @@ -183,10 +184,13 @@ border-radius: 52px; border: 1px solid #D9D9D9; width: 100%; - max-width: 580px; outline: 0; transition: border $ease-out 350ms; + @input rwd($break-flow) { + max-width: 580px; + } + &:focus { border-color: #007880; } @@ -196,6 +200,8 @@ .l-books__sorting { display: flex; align-content: center; + align-items: center; + justify-content: center; span { font-weight: $bold; @@ -207,8 +213,21 @@ div { display: flex; align-content: center; + flex-direction: column; + @include rwd($break-flow) { + flex-direction: row; + } + + select { + margin-left: 30px; + @include rwd($break-flow) { + display: none; + } + } + button { + display: none; border: 0; padding: 0; margin: 0 0 0 30px; @@ -220,6 +239,10 @@ color: #808080; cursor: pointer; + @include rwd($break-flow) { + display: block; + } + &.is-active { color: #083F4D; font-weight: $semibold; @@ -249,25 +272,36 @@ margin-top: 34px; .l-books__item { - width: 705px; + width: calc(100% - 10px); border: 1px solid #D9D9D9; margin-bottom: 17px; display: flex; + position: relative; + @include rwd($break-flow) { + width: 705px; + } .l-books__item__img { - margin-bottom: 0; + margin-bottom: 0; + } + + .l-books__item__actions { + margin-top: 16px; + @include rwd($break-flow) { + position: absolute; + top: 21px; + left: auto; + right: 11px; + } } } } .l-books__item__content { - padding-left: 40px; - position: relative; - - .l-books__item__actions { - position: absolute; - right: 0; - } + padding-left: 16px; + @include rwd($break-flow) { + padding-left: 40px; + } h2 { font-weight: $semibold; @@ -293,4 +327,9 @@ line-height: 150%; color: #007880; } -} \ No newline at end of file +} + + +.l-art__preview { + width: 100%; +}