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] 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;