From d7f7dd868965b26eb310ccc973664bbbcf78ab6b Mon Sep 17 00:00:00 2001 From: dankxiaobong Date: Wed, 21 Jun 2023 12:29:00 +0200 Subject: [PATCH] changed where custom compact code goes --- .../css/themes/_variables.darkly-compact.scss | 61 ------------------- src/assets/css/themes/darkly-compact.scss | 57 +++++++++++++++++ 2 files changed, 57 insertions(+), 61 deletions(-) diff --git a/src/assets/css/themes/_variables.darkly-compact.scss b/src/assets/css/themes/_variables.darkly-compact.scss index 95829ec4..65df1679 100644 --- a/src/assets/css/themes/_variables.darkly-compact.scss +++ b/src/assets/css/themes/_variables.darkly-compact.scss @@ -1,62 +1 @@ @import "variables.darkly"; - -// DEBUG -// * { -// border: 1px red solid; -// } - -/* - GENERAL -*/ - -// Desktop Breakpoint -$container-max-widths: ( - lg: 1920px, -); - -// Reduce hr height -hr.my-3 { - margin-top: 0.5rem !important; - margin-bottom: 0.5rem !important; -} - -/* - POST-LISTING -*/ - -.post-listing { - line-height: 1; - - .post-title h5 { - margin: 0; - } - - .post-title + p { - padding-top: 0.125rem !important; - padding-bottom: 0.125rem !important; - } - - .community-link { - padding-left: 0.125rem; - } - - .person-listing { - padding-right: 0.125rem; - } - - ul.list-inline { - &.mt-2 { - margin-top: 0.125rem !important; - } - &.mb-1 { - margin-bottom: 0.125rem !important; - } - } - - .btn-sm { - --bs-btn-padding-y: 0; - } - .img-icon { - display: none; - } -} diff --git a/src/assets/css/themes/darkly-compact.scss b/src/assets/css/themes/darkly-compact.scss index dd443ed6..1ce7c2d0 100644 --- a/src/assets/css/themes/darkly-compact.scss +++ b/src/assets/css/themes/darkly-compact.scss @@ -1,2 +1,59 @@ @import "variables.darkly-compact"; + +/* + GENERAL +*/ + +// Desktop Breakpoint +$container-max-widths: ( + lg: 1920px, +); + +// Reduce hr height +hr.my-3 { + margin-top: 0.5rem !important; + margin-bottom: 0.5rem !important; +} + +/* + POST-LISTING +*/ + +.post-listing { + line-height: 1; + + .post-title h5 { + margin: 0; + } + + .post-title + p { + padding-top: 0.125rem !important; + padding-bottom: 0.125rem !important; + } + + .community-link { + padding-left: 0.125rem; + } + + .person-listing { + padding-right: 0.125rem; + } + + ul.list-inline { + &.mt-2 { + margin-top: 0.125rem !important; + } + &.mb-1 { + margin-bottom: 0.125rem !important; + } + } + + .btn-sm { + --bs-btn-padding-y: 0; + } + .img-icon { + display: none; + } +} + @import "../../../../node_modules/bootstrap/scss/bootstrap";