X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/d0ca88d8941f1596891aa3998ff443894f3f6bf6..c7d7cd5c30a60562f0a0294b9a42c8f5ef404e7a:/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 084c278b2..1554b6a84 100755 --- a/src/wolnelektury/static/scss/main/book_box.scss +++ b/src/wolnelektury/static/scss/main/book_box.scss @@ -1,3 +1,6 @@ +@import "../tools"; +@import "const"; + @mixin inner-box { display: block; color: black; @@ -128,7 +131,7 @@ } } -.audiobook-box { +.audiobook-box, .search-result .book-box { .book-left-column { @media screen and (min-width: 1024px) { display: inline-block; @@ -136,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); } } @@ -148,7 +152,6 @@ @media screen and (min-width: 1024px) { float: right; - margin-top: 48px; } } } @@ -284,7 +287,7 @@ @include size(width, 415px); top: 0; @include size(margin-left, 550px); - margin-top: 0em; + margin-top: 0; } } @@ -294,7 +297,8 @@ .book-box-head, .tags, - .book-box-tools { + .book-box-tools, + .abstract { @include min-screen($S_BOOK_SHORT_FULL) { margin-left: 154px; } @@ -352,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 { @@ -366,6 +373,18 @@ } } + .abstract { + @include size(font-size, 16px); + line-height: 1.2em; + @include size(margin-bottom, 18px); + @include size(margin-top, 18px); + + p.paragraph { + @include size(margin-bottom, 9px); + @include size(margin-top, 9px); + } + } + } .book-box-tools { @@ -392,9 +411,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 { @@ -403,6 +426,13 @@ @include size(margin-right, 3.71px); vertical-align: middle; font-weight: normal; + // ugly quick fix + position: relative; + bottom: 2px; + } + + a.print:before { + content: ""; } } @@ -430,7 +460,7 @@ .book-box-formats { display: inline-block; - max-width: 220px; + max-width: 300px; vertical-align: top; padding-top: 6px; @@ -447,10 +477,14 @@ @include size(margin-right, 11.25px); position: absolute; right: 0; + z-index: 10; - button::-moz-focus-inner { - padding: 0; - border: 0 + button { + cursor: pointer; + &::-moz-focus-inner { + padding: 0; + border: 0 + } } .if-unlike button { font-size: 1em; @@ -478,6 +512,7 @@ #book-detail .see-also, #picture-detail .see-also { + display: inline-block; h1 { @include size(height, 32px); margin: 0;