From a184559c21cd34ffa433716cb185b0c181bc6d90 Mon Sep 17 00:00:00 2001 From: spikecodes <19519553+spikecodes@users.noreply.github.com> Date: Sun, 17 Jan 2021 16:20:17 -0800 Subject: [PATCH 1/2] Clean CSS --- static/style.css | 43 ++++++++++++------------------------------- 1 file changed, 12 insertions(+), 31 deletions(-) diff --git a/static/style.css b/static/style.css index bf5b324..3809bee 100644 --- a/static/style.css +++ b/static/style.css @@ -234,6 +234,10 @@ aside { /* Sorting and Search */ +select, #search, #sort_options, #inside, #searchbox > *, #sort_submit { + height: 40px; +} + .search_label { max-width: 300px; overflow: hidden; @@ -249,7 +253,7 @@ select { select, #search { border: none; padding: 0 15px; - height: 40px; + appearance: none; -webkit-appearance: none; -moz-appearance: none; @@ -263,10 +267,7 @@ select, #search { border-radius: 5px; } -#searchbox > *, #sort_submit { - background: var(--highlighted); - height: 40px; -} +#searchbox > *, #sort_submit { background: var(--highlighted); } #search { border-right: 2px var(--outside) solid; @@ -278,7 +279,6 @@ select, #search { display: flex; align-items: center; border-right: 2px var(--outside) solid; - height: 40px; padding: 0 10px; } @@ -333,10 +333,6 @@ input[type="submit"]:hover, button.submit:hover { background: transparent; } -#sort_options { - height: 40px; -} - #sort, #search_sort { display: flex; align-items: center; @@ -727,13 +723,8 @@ a.search_subreddit:hover { overflow: hidden; } -.compact .post.highlighted { - border-radius: 5px; -} - -.compact .post:not(:last-of-type):not(.highlighted):not(.stickied) { - border-bottom: 0; -} +.compact .post.highlighted { border-radius: 5px; } +.compact .post:not(:last-of-type):not(.highlighted):not(.stickied) { border-bottom: 0; } .compact .post_score { padding-top: 15px; @@ -917,21 +908,11 @@ td, th { font-size: 14px; } - .post_score::before { - content: "↑" - } - - .post:hover > .post_score { - background: unset; - } + .post_score::before { content: "↑" } + .post:hover > .post_score { background: unset; } - .post_header { - font-size: 14px; - } - - .post_footer { - margin-left: 15px; - } + .post_header { font-size: 14px; } + .post_footer { margin-left: 15px; } .replies > .comment { margin-left: -25px; From 524538eeb8335a72c3e1be983e40103280f95508 Mon Sep 17 00:00:00 2001 From: spikecodes <19519553+spikecodes@users.noreply.github.com> Date: Sun, 17 Jan 2021 16:22:34 -0800 Subject: [PATCH 2/2] Update Google Lighthouse Report --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index a519bcd..e54eda8 100644 --- a/README.md +++ b/README.md @@ -78,15 +78,15 @@ This section outlines how Libreddit compares to Reddit. ### Speed -Lasted tested December 21, 2020. +Lasted tested Jan 17, 2021. Results from Google Lighthouse ([Libreddit Report](https://lighthouse-dot-webdotdevsite.appspot.com/lh/html?url=https%3A%2F%2Flibredd.it), [Reddit Report](https://lighthouse-dot-webdotdevsite.appspot.com/lh/html?url=https%3A%2F%2Fwww.reddit.com%2F)). -| | Libreddit | Reddit | -|---------------------|---------------|-----------| -| Requests | 22 | 70 | -| Resource Size | 135 KiB | 2,222 KiB | -| Time to Interactive | **1.7 s** | **11.5 s**| +| | Libreddit | Reddit | +|------------------------|---------------|-----------| +| Requests | 20 | 70 | +| Resource Size (card ui)| 1,224 KiB | 1,690 KiB | +| Time to Interactive | **1.5 s** | **11.2 s**| ### Privacy