From bac55126dc853662bfb9dcdb6ba9e1616c73e660 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 15 Aug 2023 17:29:33 +0800 Subject: ... --- FrontEnd/src/pages/timeline/ConnectionStatusBadge.css | 12 +++++++----- FrontEnd/src/pages/timeline/Timeline.css | 4 +++- FrontEnd/src/pages/timeline/Timeline.tsx | 2 +- FrontEnd/src/pages/timeline/TimelineCard.css | 5 +++-- FrontEnd/src/pages/timeline/TimelineCard.tsx | 1 + FrontEnd/src/pages/timeline/TimelinePostCreateView.css | 4 +++- 6 files changed, 18 insertions(+), 10 deletions(-) (limited to 'FrontEnd/src/pages') diff --git a/FrontEnd/src/pages/timeline/ConnectionStatusBadge.css b/FrontEnd/src/pages/timeline/ConnectionStatusBadge.css index 7fe83b9b..fc01484e 100644 --- a/FrontEnd/src/pages/timeline/ConnectionStatusBadge.css +++ b/FrontEnd/src/pages/timeline/ConnectionStatusBadge.css @@ -2,8 +2,8 @@ font-size: 0.8em; border-radius: 5px; padding: 0.1em 1em; - background-color: #eaf2ff; } + .connection-status-badge::before { width: 10px; height: 10px; @@ -12,11 +12,13 @@ content: ""; margin-right: 0.6em; } + .connection-status-badge.success { - color: #006100; + color: var(--cru-create-color); } + .connection-status-badge.success::before { - background-color: #006100; + background-color: var(--cru-create-color); } .connection-status-badge.warning { @@ -28,9 +30,9 @@ } .connection-status-badge.danger { - color: #fd1616; + color: var(--cru-danger-color); } .connection-status-badge.danger::before { - background-color: #fd1616; + background-color: var(--cru-danger-color); } diff --git a/FrontEnd/src/pages/timeline/Timeline.css b/FrontEnd/src/pages/timeline/Timeline.css index ba5f7b04..656374e9 100644 --- a/FrontEnd/src/pages/timeline/Timeline.css +++ b/FrontEnd/src/pages/timeline/Timeline.css @@ -1,5 +1,6 @@ -.timeline { +.timeline-container { --timeline-shadow-color: #00000080; + --timeline-card-shadow: 2px 1px 10px -2px var(--timeline-shadow-color); --timeline-post-line-color: #eadd2c; --timeline-post-line-shadow: 2px 1px 10px -1px var(--timeline-shadow-color); --timeline-post-card-background-color: hsl(0, 0%, 100%); @@ -18,6 +19,7 @@ z-index: 0; position: relative; width: 100%; + padding-top: 10px; } @keyframes timeline-line-node { diff --git a/FrontEnd/src/pages/timeline/Timeline.tsx b/FrontEnd/src/pages/timeline/Timeline.tsx index 3c9d73bf..73e621c1 100644 --- a/FrontEnd/src/pages/timeline/Timeline.tsx +++ b/FrontEnd/src/pages/timeline/Timeline.tsx @@ -156,7 +156,7 @@ export function Timeline(props: TimelineProps) { return
Error.
; } return ( -
+
{timeline && (