X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/3c0e373447323b5e33b273859e790a2054771afa..1b80c204be885588f7cbe95610e3677f2f886801:/src/wolnelektury/static/scss/main/book_box.scss diff --git a/src/wolnelektury/static/scss/main/book_box.scss b/src/wolnelektury/static/scss/main/book_box.scss index 23575ce99..17b72f10b 100755 --- a/src/wolnelektury/static/scss/main/book_box.scss +++ b/src/wolnelektury/static/scss/main/book_box.scss @@ -15,10 +15,10 @@ @include size(margin-bottom, 5px); @include min-screen($S_BOOK_SHORT_FULL) { - position: absolute; - top: 0; - left: 0; - margin-right: 0; + //position: absolute; + //top: 0; + //left: 0; + //margin-right: 0; } img.cover { @@ -131,17 +131,19 @@ } } -.audiobook-box { +.audiobook-box, .search-result .book-box { .book-left-column { @media screen and (min-width: 1024px) { display: inline-block; @include size(width, 590px); + @include size(min-height, 196px); } } - .audiobook-right-column { + .book-right-column { @media screen and (min-width: 1024px) { float: right; + @include size(padding-top, 15px); @include size(width, 360px); } } @@ -151,7 +153,6 @@ @media screen and (min-width: 1024px) { float: right; - margin-top: 48px; } } } @@ -175,6 +176,7 @@ @media screen and (min-width: 62.5em) { float: left; @include size(width, 536px); + @include size(min-height, 196px); } } @@ -297,7 +299,8 @@ .book-box-head, .tags, - .book-box-tools { + .book-box-tools, + .abstract { @include min-screen($S_BOOK_SHORT_FULL) { margin-left: 154px; } @@ -355,7 +358,10 @@ @include size(margin-bottom, 6px); @include min-screen($S_BOOK_SHORT_FULL) { - display: inline; + display: inline-block; + @include size(margin-top, 0px); + @include size(margin-bottom, 0px); + @include size(margin-right, 9px); } .mono { @@ -384,6 +390,15 @@ @include size(margin-left, 139px + 15px); } + &.book-box-tools-warn { + font-size: 1rem; + margin-bottom: 1em; + max-width: 32em; + border: 1px solid #888; + padding: 1em; + } + + li { @include mono; margin-top: 0; @@ -395,9 +410,13 @@ display: inline-block; background: #0D7E85; color: white; - @include size(width, 200px); + @include size(width, 170px); text-align: center; @include size(margin-bottom, 5px); + @include size(margin-right, 30px); + } + a.print { + margin-right: 0; } a:before { @@ -410,6 +429,10 @@ position: relative; bottom: 2px; } + + a.print:before { + content: ""; + } } .book-box-download { @@ -436,7 +459,7 @@ .book-box-formats { display: inline-block; - max-width: 220px; + max-width: 300px; vertical-align: top; padding-top: 6px; @@ -504,3 +527,44 @@ } } } + +.abstract { + @include size(font-size, 16px); + line-height: 1.2em; + @include size(margin-bottom, 8px); + @include size(margin-top, 18px); + overflow: hidden; + position: relative; + clear: left; + + @media screen and (min-width: 62.5em) { + @include size(width, 536px); + } + + p.paragraph { + margin-bottom: 0; + margin-top: 1.2em; + + &:first-child { + margin-top: 0; + } + } + + &.short { + height: 3.6em; + &:after { + content:' '; + position:absolute; + bottom:0; + width:25%; + height:20px; + background-color:transparent; + /* assume ltr */ + right:0; + background-image:-webkit-linear-gradient(to right,rgba(255,255,255,0),#ffffff 50%); + background-image:-moz-linear-gradient(to right,rgba(255,255,255,0),#ffffff 50%); + background-image:-o-linear-gradient(to right,rgba(255,255,255,0),#ffffff 50%); + background-image:linear-gradient(to right,rgba(255,255,255,0),#ffffff 50%) + } + } +}