X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/a8282aa69e00292bec986722c5230ff89f96f450..40ea08ada00c0ad2e2b08718a27b7d046ae4035b:/src/wolnelektury/static/2022/styles/layout/_article.scss?ds=sidebyside diff --git a/src/wolnelektury/static/2022/styles/layout/_article.scss b/src/wolnelektury/static/2022/styles/layout/_article.scss index d83ef818c..66e438148 100644 --- a/src/wolnelektury/static/2022/styles/layout/_article.scss +++ b/src/wolnelektury/static/2022/styles/layout/_article.scss @@ -19,8 +19,47 @@ line-height: 150%; color: #474747; } - ul {} - ol {} + h4 { + font-size: 18px; + line-height: 150%; + font-weight: bolder; + } + + ul { + padding: 0; + list-style: none; + margin-top: 0.25rem; + margin-bottom: 0; + li { + font-size: 18px; + line-height: 150%; + font-weight: normal; + } + } +} + +.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 +69,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; + } +}