X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/570e3368873ddff9c0a33f9f1b7860ebd8b15268..1615a0292722f1fbbbc67a77362b40a023fdebb9:/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 44a59557b..dd2a77f49 100755 --- a/src/wolnelektury/static/scss/main/book_box.scss +++ b/src/wolnelektury/static/scss/main/book_box.scss @@ -131,7 +131,7 @@ } } -.audiobook-box { +.audiobook-box, .search-result .book-box { .book-left-column { @media screen and (min-width: 1024px) { display: inline-block; @@ -139,9 +139,10 @@ } } - .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 +152,6 @@ @media screen and (min-width: 1024px) { float: right; - margin-top: 48px; } } } @@ -297,7 +297,8 @@ .book-box-head, .tags, - .book-box-tools { + .book-box-tools, + .abstract { @include min-screen($S_BOOK_SHORT_FULL) { margin-left: 154px; } @@ -355,7 +356,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 { @@ -444,7 +448,7 @@ .book-box-formats { display: inline-block; - max-width: 220px; + max-width: 300px; vertical-align: top; padding-top: 6px; @@ -512,3 +516,39 @@ } } } + +.abstract { + @include size(font-size, 16px); + line-height: 1.2em; + @include size(margin-bottom, 8px); + @include size(margin-top, 18px); + overflow: hidden; + position: relative; + + 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%) + } + } +} \ No newline at end of file