diff --git a/static/resources_list.txt b/static/resources_list.txt index eb65b9dbe..b0b7a336a 100644 --- a/static/resources_list.txt +++ b/static/resources_list.txt @@ -28,7 +28,7 @@ skin/iso6391To3.js skin/isotope.pkgd.min.js skin/index.js skin/taskbar.css -skin/home.css +skin/index.css skin/fonts/Poppins.ttf skin/fonts/Roboto.ttf skin/block_external.js diff --git a/static/skin/home.css b/static/skin/index.css similarity index 95% rename from static/skin/home.css rename to static/skin/index.css index f49548b86..2b70af08e 100644 --- a/static/skin/home.css +++ b/static/skin/index.css @@ -141,9 +141,13 @@ body { border-color: #acacac; } +.book__link { + text-decoration: none; +} + .book__wrapper { color: #444343; - height: 280px; + height: 248px; width: 250px; margin: 15px; background-color: #f7f7f7; @@ -173,7 +177,7 @@ body { max-height: 100%; } -.book__title { +.book__header { display: grid; font-family: poppins; color: black; @@ -184,18 +188,34 @@ body { align-content: center; } -#bookSize { - font-size: 1.1rem; - margin: 3px 0; -} - -#bookTitle { +.book__title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 1.45rem; } +.book__download { + font-size: 1.1rem; + margin: 3px 0; +} + +.book__download > span { + cursor: pointer; + text-decoration: none; + position: relative; + padding: 0 3px 1px; + font-family: roboto; + background: #00b4e4; + color: white; + box-shadow: 0 0 0 0; + border-radius: 2px; +} + +.book__download > span:hover { + box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1) +} + .book__description { grid-column: 1 / 3; margin: 10px 10px 5px; @@ -214,7 +234,6 @@ body { display: flex; align-items: center; justify-content: center; - box-shadow: 0 0 2px #acacac; background-color: #ffffff; font-weight: bold; font-family: roboto; @@ -241,34 +260,12 @@ body { .book__tags--wrapper { overflow: hidden; display: -webkit-box; + margin-top: auto; + margin-bottom: auto; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } -.book__links { - display: flex; - text-align: end; - justify-content: flex-end; - grid-column: 2 / 3; - font-size: 1.1rem; - margin: 10px 4px; - color: #00b4e4; -} - -.book__links > a, .book__links > span { - cursor: pointer; - text-decoration: none; - color: #00b4e4; - position: relative; - padding: 1px 6px 0; - font-family: roboto; -} - -.book__links > a:hover, .book__links > span:hover { - background: #00b4e4; - color: white; -} - .modal-wrapper { position: fixed; z-index: 100; @@ -453,4 +450,4 @@ body { .kiwixHomeBody { padding: 20px 5vw; } -} \ No newline at end of file +} diff --git a/static/skin/index.js b/static/skin/index.js index ae4484deb..033ae01f9 100644 --- a/static/skin/index.js +++ b/static/skin/index.js @@ -103,15 +103,17 @@ if (sort) { divTag.setAttribute('data-idx', bookOrderMap.get(id)); } - divTag.innerHTML = `