mirror of
https://github.com/standardebooks/web.git
synced 2025-07-21 14:55:13 -04:00
Tweak semantics of ebook download sections, and wrap lines of read online links in mobile
This commit is contained in:
parent
1d56a06c79
commit
64e6bf716c
2 changed files with 41 additions and 36 deletions
|
@ -750,10 +750,12 @@ article.ebook section ul li a[class]{
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
article.ebook section#read-online a,
|
||||||
article.ebook section#download li a[class]{
|
article.ebook section#download li a[class]{
|
||||||
font-size: 1.2rem;
|
font-size: 1.2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
article.ebook section#read-online a::before,
|
||||||
article.ebook section#download ul li a[class]::before,
|
article.ebook section#download ul li a[class]::before,
|
||||||
article.ebook section#details ul li a[class]::before{
|
article.ebook section#details ul li a[class]::before{
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
@ -768,6 +770,7 @@ article.ebook section#details ul li a[class]::before{
|
||||||
transition: transform .2s ease;
|
transition: transform .2s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
article.ebook section#read-online a:hover::before,
|
||||||
article.ebook section#download ul li a[class]:hover::before,
|
article.ebook section#download ul li a[class]:hover::before,
|
||||||
article.ebook section#details ul li a[class]:hover::before{
|
article.ebook section#details ul li a[class]:hover::before{
|
||||||
transform: scale(1.1);
|
transform: scale(1.1);
|
||||||
|
@ -1263,7 +1266,6 @@ p.no-results{
|
||||||
.us-pd-warning{
|
.us-pd-warning{
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
margin-top: 1rem;
|
margin-top: 1rem;
|
||||||
margin-bottom: 1rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type="search"]{
|
input[type="search"]{
|
||||||
|
@ -1638,6 +1640,7 @@ main.ebooks nav ol li.highlighted:nth-last-child(2)::after{
|
||||||
box-shadow: 3px 3px 1px rgba(0, 0, 0, .5);
|
box-shadow: 3px 3px 1px rgba(0, 0, 0, .5);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
article.ebook section#read-online a::before,
|
||||||
article.ebook section#download ul li a[class]::before,
|
article.ebook section#download ul li a[class]::before,
|
||||||
article.ebook section#details ul li a[class]::before,
|
article.ebook section#details ul li a[class]::before,
|
||||||
footer p:last-child a::before,
|
footer p:last-child a::before,
|
||||||
|
|
|
@ -109,11 +109,10 @@ catch(\Exception $ex){
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<? if($ebook->HasDownloads){ ?>
|
<? if($ebook->HasDownloads){ ?>
|
||||||
<section id="download">
|
<section id="read-free">
|
||||||
<h2>Read free</h2>
|
<h2>Read free</h2>
|
||||||
<div class="us-pd-warning">
|
<p class="us-pd-warning">This ebook is only thought to be free of copyright restrictions in the United States. It may still be under copyright in other countries. If you’re not located in the United States, you must check your local laws to verify that the contents of this ebook are free of copyright restrictions in the country you’re located in before downloading or using this ebook.</p>
|
||||||
<p>This ebook is only thought to be free of copyright restrictions in the United States. It may still be under copyright in other countries. If you’re not located in the United States, you must check your local laws to verify that the contents of this ebook are free of copyright restrictions in the country you’re located in before downloading or using this ebook.</p>
|
<section id="download">
|
||||||
</div>
|
|
||||||
<h3>Download for ereaders</h3>
|
<h3>Download for ereaders</h3>
|
||||||
<ul>
|
<ul>
|
||||||
<? if($ebook->EpubUrl !== null){ ?>
|
<? if($ebook->EpubUrl !== null){ ?>
|
||||||
|
@ -139,16 +138,19 @@ catch(\Exception $ex){
|
||||||
<aside>
|
<aside>
|
||||||
<p>Read about <a href="/help/how-to-use-our-ebooks#which-file-to-download">which file to download</a> and <a href="/help/how-to-use-our-ebooks#transferring-to-your-ereader">how to transfer them to your ereader</a>.</p>
|
<p>Read about <a href="/help/how-to-use-our-ebooks#which-file-to-download">which file to download</a> and <a href="/help/how-to-use-our-ebooks#transferring-to-your-ereader">how to transfer them to your ereader</a>.</p>
|
||||||
</aside>
|
</aside>
|
||||||
|
</section>
|
||||||
<? if($ebook->TextUrl !== null || $ebook->TextSinglePageUrl !== null){ ?>
|
<? if($ebook->TextUrl !== null || $ebook->TextSinglePageUrl !== null){ ?>
|
||||||
|
<section id="read-online">
|
||||||
<h3>Read online</h3>
|
<h3>Read online</h3>
|
||||||
<ul>
|
<ul>
|
||||||
<? if($ebook->TextUrl !== null){ ?>
|
<? if($ebook->TextUrl !== null){ ?>
|
||||||
<li><p><span><a href="<?= $ebook->TextUrl ?>" class="list">Start from the table of contents</a></span></p></li>
|
<li><p><a href="<?= $ebook->TextUrl ?>" class="list">Start from the table of contents</a></p></li>
|
||||||
<? } ?>
|
<? } ?>
|
||||||
<? if($ebook->TextSinglePageUrl !== null){ ?>
|
<? if($ebook->TextSinglePageUrl !== null){ ?>
|
||||||
<li><p><span><a href="<?= $ebook->TextSinglePageUrl ?>" class="page">Read on one page</a></span></p></li>
|
<li><p><a href="<?= $ebook->TextSinglePageUrl ?>" class="page">Read on one page</a></p></li>
|
||||||
<? } ?>
|
<? } ?>
|
||||||
</ul>
|
</ul>
|
||||||
|
</section>
|
||||||
<? } ?>
|
<? } ?>
|
||||||
</section>
|
</section>
|
||||||
<? } ?>
|
<? } ?>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue