aboutsummaryrefslogtreecommitdiffstats
path: root/web_src
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2023-08-31 23:28:45 +0200
committerGitHub <noreply@github.com>2023-08-31 21:28:45 +0000
commit9b76df53dc5c03b059bef784f15eaa96342ab63c (patch)
treedbd9592c611d56e0a5ac62a1040d942d80a6e5d3 /web_src
parentc0ab7070e56f1de390d2e7d6a95083137041a572 (diff)
downloadgitea-9b76df53dc5c03b059bef784f15eaa96342ab63c.tar.gz
gitea-9b76df53dc5c03b059bef784f15eaa96342ab63c.zip
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: <img width="783" alt="Screenshot 2023-08-31 at 00 10 28" src="https://github.com/go-gitea/gitea/assets/115237/b75f70d7-8704-4afb-866d-fea0484c52d4"> After: <img width="783" alt="Screenshot 2023-08-31 at 00 10 08" src="https://github.com/go-gitea/gitea/assets/115237/50ed0c47-6f7c-449e-a054-13091369d43f"> --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'web_src')
-rw-r--r--web_src/css/dashboard.css7
-rw-r--r--web_src/css/shared/flex-list.css14
2 files changed, 13 insertions, 8 deletions
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;
+}