From 7596b870e53b73ffa081cab0a618c15325bd83c6 Mon Sep 17 00:00:00 2001 From: bopol Date: Mon, 4 Jan 2021 10:51:26 +0100 Subject: [PATCH 1/5] fix youtube thumbnail overflow on mobile --- static/css/styles.css | 3 +++ 1 file changed, 3 insertions(+) diff --git a/static/css/styles.css b/static/css/styles.css index f9b9466..4c9f037 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -1436,6 +1436,9 @@ code { margin: 5px 2.5%; width: 95%; } + #post .video-holder a img { + width: 100%; + } .info .submitted { margin: auto auto 2.5% 2.5%; } From c44551580f51c66a19cd2fe670fa1edd4dd8d108 Mon Sep 17 00:00:00 2001 From: bopol Date: Mon, 4 Jan 2021 10:55:25 +0100 Subject: [PATCH 2/5] fix video title width on mobile --- static/css/styles.css | 3 +++ 1 file changed, 3 insertions(+) diff --git a/static/css/styles.css b/static/css/styles.css index 4c9f037..3ffe2cf 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -1436,6 +1436,9 @@ code { margin: 5px 2.5%; width: 95%; } + #post .video .title { + width: 100%; + } #post .video-holder a img { width: 100%; } From 6a1cc7486940085f6d32f6b77e7d76678b095c9e Mon Sep 17 00:00:00 2001 From: bopol Date: Mon, 4 Jan 2021 12:43:14 +0100 Subject: [PATCH 3/5] view-more-inks -> view-more-links --- static/css/styles.css | 6 +++--- views/index.pug | 2 +- views/search.pug | 2 +- views/subreddit.pug | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/static/css/styles.css b/static/css/styles.css index 3ffe2cf..8840462 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -161,7 +161,7 @@ body.dark .btn { body.dark #post .crosspost { background: var(--darkbg); } -body.dark .view-more-inks a { +body.dark .view-more-links a { background: black; color: white; } @@ -386,12 +386,12 @@ header .tabmenu li a { header .tabmenu li.active a { background: black; } -.view-more-inks { +.view-more-links { margin-bottom: 50px; float: left; width: 100%; } -.view-more-inks a { +.view-more-links a { margin-left: 20px; padding: 1px 4px; background: #eee; diff --git a/views/index.pug b/views/index.pug index e547fd6..23642c9 100644 --- a/views/index.pug +++ b/views/index.pug @@ -111,7 +111,7 @@ html input(type="checkbox", name="nsfw", id="nsfw", checked="checked") input(type="submit", value="search") if json.info.before || json.info.after - .view-more-inks + .view-more-links if json.info.before && !subreddit_front a(href="/r/all/" + sortby + "?t="+ (past ? past : '') +"&before=" + json.info.before + "") ‹ prev if json.info.after diff --git a/views/search.pug b/views/search.pug index fd05cea..dd048b0 100644 --- a/views/search.pug +++ b/views/search.pug @@ -146,7 +146,7 @@ html a(href="" + link.permalink + "", class="comments") | #{link.num_comments} comments if json.before || json.after - .view-more-inks + .view-more-links if json.before && !subreddit_front a(href="?q=" + q + "&restrict_sr=" + restrict_sr + "&before=" + json.before + "") ‹ prev if json.after diff --git a/views/subreddit.pug b/views/subreddit.pug index 8206b0c..db7e360 100644 --- a/views/subreddit.pug +++ b/views/subreddit.pug @@ -129,7 +129,7 @@ html a(href="" + link.permalink + "", class="comments") | #{link.num_comments} comments if json.info.before || json.info.after - .view-more-inks + .view-more-links if json.info.before && !subreddit_front a(href="/r/" + subreddit + "/" + sortby + "?t="+ (past ? past : '') +"&before=" + json.info.before + "") ‹ prev if json.info.after From 06efd9da3c1aa55f765dc10c7fce97b6a56634a7 Mon Sep 17 00:00:00 2001 From: bopol Date: Mon, 4 Jan 2021 12:44:59 +0100 Subject: [PATCH 4/5] remove view-more-links margin bottom the footer already has margin-top --- static/css/styles.css | 1 - 1 file changed, 1 deletion(-) diff --git a/static/css/styles.css b/static/css/styles.css index 8840462..ad4021e 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -387,7 +387,6 @@ header .tabmenu li.active a { background: black; } .view-more-links { - margin-bottom: 50px; float: left; width: 100%; } From d05b49ec5cc181d8202d7933007af35215c4c87b Mon Sep 17 00:00:00 2001 From: bopol Date: Mon, 4 Jan 2021 12:48:51 +0100 Subject: [PATCH 5/5] footer margin is now dynamic --- static/css/styles.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/css/styles.css b/static/css/styles.css index ad4021e..2c82e0d 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -463,7 +463,7 @@ input[type="submit"]:hover, } footer { padding: 30px 0px 30px 20px; - margin: 60px 0px 0px; + margin: 2.5% 0px 0px; background: #e1e1e1; float: left; width: calc(100% - 20px);