From 64e6bf716cba6d7227b21700f2a82948ba2611b7 Mon Sep 17 00:00:00 2001 From: Alex Cabal Date: Tue, 13 Oct 2020 14:49:15 -0500 Subject: [PATCH] Tweak semantics of ebook download sections, and wrap lines of read online links in mobile --- www/css/core.css | 5 ++- www/ebooks/ebook.php | 72 +++++++++++++++++++++++--------------------- 2 files changed, 41 insertions(+), 36 deletions(-) diff --git a/www/css/core.css b/www/css/core.css index 989d9655..c9613048 100644 --- a/www/css/core.css +++ b/www/css/core.css @@ -750,10 +750,12 @@ article.ebook section ul li a[class]{ align-items: center; } +article.ebook section#read-online a, article.ebook section#download li a[class]{ font-size: 1.2rem; } +article.ebook section#read-online a::before, article.ebook section#download ul li a[class]::before, article.ebook section#details ul li a[class]::before{ display: inline-block; @@ -768,6 +770,7 @@ article.ebook section#details ul li a[class]::before{ 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#details ul li a[class]:hover::before{ transform: scale(1.1); @@ -1263,7 +1266,6 @@ p.no-results{ .us-pd-warning{ font-style: italic; margin-top: 1rem; - margin-bottom: 1rem; } 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); } + article.ebook section#read-online a::before, article.ebook section#download ul li a[class]::before, article.ebook section#details ul li a[class]::before, footer p:last-child a::before, diff --git a/www/ebooks/ebook.php b/www/ebooks/ebook.php index d9f172bd..8086c598 100644 --- a/www/ebooks/ebook.php +++ b/www/ebooks/ebook.php @@ -109,46 +109,48 @@ catch(\Exception $ex){ HasDownloads){ ?> -
+

Read free

-
-

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.

-
-

Download for ereaders

-
    - EpubUrl !== null){ ?> -
  • Compatible epub All devices and apps except Amazon Kindle and Kobo.

    -
  • - +

    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.

    +
    +

    Download for ereaders

    +
      + EpubUrl !== null){ ?> +
    • Compatible epub All devices and apps except Amazon Kindle and Kobo.

      +
    • + - Azw3Url !== null){ ?> -
    • azw3 Amazon Kindle devices and apps.KindleCoverUrl !== null){ ?> Also download the Kindle cover thumbnail to see the cover in your Kindle’s library.

      -
    • - + Azw3Url !== null){ ?> +
    • azw3 Amazon Kindle devices and apps.KindleCoverUrl !== null){ ?> Also download the Kindle cover thumbnail to see the cover in your Kindle’s library.

      +
    • + - KepubUrl !== null){ ?> -
    • kepub Kobo devices and apps.

      -
    • - + KepubUrl !== null){ ?> +
    • kepub Kobo devices and apps.

      +
    • + - AdvancedEpubUrl !== null){ ?> -
    • Advanced epub An advanced format not yet fully compatible with most ereaders.

      -
    • - -
    - + AdvancedEpubUrl !== null){ ?> +
  • Advanced epub An advanced format not yet fully compatible with most ereaders.

    +
  • + +
+ +
TextUrl !== null || $ebook->TextSinglePageUrl !== null){ ?> -

Read online

- +
+

Read online

+ +