From 9b76df53dc5c03b059bef784f15eaa96342ab63c Mon Sep 17 00:00:00 2001 From: silverwind Date: Thu, 31 Aug 2023 23:28:45 +0200 Subject: Minor dashboard tweaks, fix flex-list margins (#26829) Some small dashboard tweaks: - Remove margin-bottom from divider so first item does not appear to have un-equal margins - Restore previous icon color - Add slight margin-right to icon Before: Screenshot 2023-08-31 at 00 10 28 After: Screenshot 2023-08-31 at 00 10 08 --------- Co-authored-by: wxiaoguang --- web_src/css/dashboard.css | 7 ------- web_src/css/shared/flex-list.css | 14 +++++++++++++- 2 files changed, 13 insertions(+), 8 deletions(-) (limited to 'web_src') diff --git a/web_src/css/dashboard.css b/web_src/css/dashboard.css index 6dcf73e2a7..0168ee0bd7 100644 --- a/web_src/css/dashboard.css +++ b/web_src/css/dashboard.css @@ -95,10 +95,3 @@ position: static; } } - -.feeds code { - padding: 2px 4px; - border-radius: var(--border-radius); - background-color: var(--color-markup-code-block); - word-break: break-all; -} diff --git a/web_src/css/shared/flex-list.css b/web_src/css/shared/flex-list.css index 1489983cfd..27f9bc2d69 100644 --- a/web_src/css/shared/flex-list.css +++ b/web_src/css/shared/flex-list.css @@ -91,11 +91,23 @@ border-top: 1px solid var(--color-secondary); } -/* Fomantic UI segment has default "padding: 1em", so here it removes the padding-top and padding-bottom accordingly */ +/* Fomantic UI segment has default "padding: 1em", so here it removes the padding-top and padding-bottom accordingly. +Developers could also use "flex-space-fitted" class to remove the first item's padding-top and the last item's padding-bottom */ +.flex-list.flex-space-fitted > .flex-item:first-child, .ui.segment > .flex-list:first-child > .flex-item:first-child { padding-top: 0; } +.flex-list.flex-space-fitted > .flex-item:last-child, .ui.segment > .flex-list:last-child > .flex-item:last-child { padding-bottom: 0; } + +/* If there is a divider besides the flex-list, some padding/margin are not needs */ +.divider + .flex-list > .flex-item:first-child { + padding-top: 0; +} + +.flex-list + .divider { + margin-top: 0; +} -- cgit v1.2.3