X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/a8282aa69e00292bec986722c5230ff89f96f450..ea7671fcbd5bd829b16771670263aebaf29c69c1:/src/wolnelektury/static/2022/styles/layout/_article.scss diff --git a/src/wolnelektury/static/2022/styles/layout/_article.scss b/src/wolnelektury/static/2022/styles/layout/_article.scss index d83ef818c..9930b5917 100644 --- a/src/wolnelektury/static/2022/styles/layout/_article.scss +++ b/src/wolnelektury/static/2022/styles/layout/_article.scss @@ -19,8 +19,182 @@ line-height: 150%; color: #474747; } - ul {} - ol {} + h4 { + font-size: 18px; + line-height: 150%; + font-weight: bolder; + } + + .toc ol { + padding: 0; + list-style: none; + margin-top: 0.25rem; + margin-bottom: 0; + li { + font-size: 18px; + line-height: 150%; + font-weight: normal; + + } + + a { + color: #007880; + } + } + + video { + margin-bottom: 30px; + } + + textarea[readonly] { + margin-bottom: 30px; + background: #052A33; + border-radius: 10px; + width: 100%; + min-height: 119px; + padding: 10px; + resize: none; + color: #92BD39; + font-family: 'Consolas', monospace; + font-style: normal; + font-weight: 400; + font-size: 16px; + line-height: 150%; + } +} + +.l-article__cols { + display: flex; + + .left-column { + padding-right: 27px; + } + + .right-column { + padding-left: 27px; + } + + .left-column, + .right-column { + width: 50%; + + p { + margin-top: 0; + margin-bottom: 30px; + @include font-size(18px); + line-height: 150%; + + strong, b { + font-weight: $semibold; + } + + a { + color: $color-primary; + &:hover { + text-decoration: underline; + } + } + } + + h3 { + margin-top: 0; + margin-bottom: 30px; + border-bottom: 0; + padding-bottom: 0; + font-weight: $semibold; + @include font-size(25px); + line-height: 140%; + letter-spacing: -0.01em; + color: #474747; + } + + h4 { + display: flex; + align-items: center; + font-weight: $semibold; + @include font-size(21px); + line-height: 140%; + letter-spacing: -0.01em; + color: #474747; + + img { + margin-right: 15px; + } + + & + p { + margin-top: 15px; + margin-bottom: 50px; + } + + &:first-of-type { + margin-top: 0; + } + } + + ul, ol { + li { + font-weight: $regular; + @include font-size(18px); + line-height: 150%; + + strong, b { + font-weight: $semibold; + } + + a { + color: $color-primary; + &:hover { + text-decoration: underline; + } + } + } + } + + & > img { + max-width: 100%; + margin-bottom: 30px; + } + } +} + +.l-article__title { + margin-top: 28px; + margin-bottom: 38px; + padding-bottom: 20px; + border-bottom: 1px solid #D9D9D9; + * { + margin-top: 0; + font-weight: $regular; + @include font-size(37px); + line-height: 130%; + letter-spacing: -0.01em; + color: #083F4D; + } +} + + +.l-article__overlay { + display: flex; + flex-direction: column; + overflow: hidden; + position: relative; + color: #474747; + + &.is-active { + &:after { + content: ""; + display: block; + position: absolute; + bottom: 0; left: 0; + width: 100%; height: 70px; + background: linear-gradient(0deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%); + } + } + + &.is-clicked { + max-height: 100% !important; + &:after { display: none; } + } } .l-article__lead { @@ -30,3 +204,16 @@ font-family: $secondary-font; line-height: 166%; } + +.l-article__read-more { + border: 0; + padding: 0; + color: #007880; + background-color: transparent; + cursor: pointer; + outline: 0; + margin-top: 25px; + &:hover { + text-decoration: underline; + } +}