From e309f24e9c99518af78432b5b0d6b51e54d03565 Mon Sep 17 00:00:00 2001 From: John Hess Date: Thu, 20 Jun 2024 14:04:51 -0500 Subject: [PATCH] design touchups, download button as-designed --- _includes/filerow.html | 20 +++++++++++--------- _scss/pages/home.scss | 16 +++++++--------- assets/css/butter-dir-listing.css | 17 +++++++++-------- assets/images/next.svg | 6 +++--- assets/js/butter-dir-listing.js | 21 +++++++++++++-------- 5 files changed, 43 insertions(+), 37 deletions(-) diff --git a/_includes/filerow.html b/_includes/filerow.html index b6ece49..5a7e6d7 100644 --- a/_includes/filerow.html +++ b/_includes/filerow.html @@ -1,12 +1,14 @@ - -
+ - -
- download -
-
\ No newline at end of file + + +
+ download +
+
+
\ No newline at end of file diff --git a/_scss/pages/home.scss b/_scss/pages/home.scss index 8c5b34f..b785a73 100644 --- a/_scss/pages/home.scss +++ b/_scss/pages/home.scss @@ -231,17 +231,18 @@ a:active { .breadcrumb-name { display: flex; align-items: center; - height: 34px; - margin: 10px; + height: 48px; + font-size: 18px; a { display: flex; align-items: center; - + height: -webkit-fill-available; + padding: 0 10px; } img.back { width: 18px; height: 18px; - rotate: 180deg; + margin-left: 10px; margin-right: 10px; } } @@ -278,7 +279,7 @@ a:active { } .text-filerow .upper-text { - font-size: 14px; + font-size: 16px; line-height: 18px; padding: 2px; color: black; @@ -290,10 +291,7 @@ a:active { color: gray; } -.empty-block { - display: flex; - justify-content: center; - align-items: center; +.dl-block { width: 30px; height: 30px; } diff --git a/assets/css/butter-dir-listing.css b/assets/css/butter-dir-listing.css index 82d1021..0cc4c09 100644 --- a/assets/css/butter-dir-listing.css +++ b/assets/css/butter-dir-listing.css @@ -35,8 +35,9 @@ div.foot { padding-left: 12px; } .path-next { - margin: 0 5px; + margin: 0 10px 2px 10px; height: 12px; + rotate: 180deg; } } @@ -45,13 +46,14 @@ div.foot { color: black; display: flex; font-family: "Poppins", sans-serif; - font-size: 14px; + font-size: 16px; } .breadcrumb-name { display: flex; align-items: center; height: 48px; + font-size: 18px; a { display: flex; align-items: center; @@ -61,7 +63,7 @@ div.foot { img.back { width: 18px; height: 18px; - rotate: 180deg; + margin-left: 10px; margin-right: 10px; } } @@ -85,9 +87,8 @@ hr.full-width { .filerow { display: flex; align-items: center; - width: 100%; - height: 54px; - margin: 0 10px; + height: 44px; + margin: 10px; box-sizing: border-box; font-family: "Poppins", sans-serif; } @@ -115,7 +116,7 @@ hr.full-width { } .text-filerow .upper-text { - font-size: 14px; + font-size: 16px; line-height: 18px; padding: 2px; color: black; @@ -127,7 +128,7 @@ hr.full-width { color: gray; } -.empty-block { +.dl-block { width: 30px; height: 30px; } \ No newline at end of file diff --git a/assets/images/next.svg b/assets/images/next.svg index c04632d..5bfd8f7 100644 --- a/assets/images/next.svg +++ b/assets/images/next.svg @@ -1,4 +1,4 @@ - - - + + + \ No newline at end of file diff --git a/assets/js/butter-dir-listing.js b/assets/js/butter-dir-listing.js index 95e2932..37361d3 100644 --- a/assets/js/butter-dir-listing.js +++ b/assets/js/butter-dir-listing.js @@ -21,7 +21,7 @@ const getFolderDivHTML = (directory_name, number_of_items, href) => {
${directory_name}
${number_of_items} items
-
+
`; }; @@ -34,16 +34,21 @@ const getFileDivHTML = (file_name, size, date, href) => { // turn date from "2021-09-01 12:34:56" to "Sep 1, 2021" date = new Date(date).toLocaleDateString('en-US', { month: 'short', day: 'numeric', year: 'numeric' }); return ` - -
+ - -
-
`; + + +
+ download +
+
+
+ `; }; const getFolderItemCount = async (folder_href) => {