- {sender}
+ {sender}
-
{subject}
+
{subject}
-
{body}
+
{body}
-
{date}
+
{date}
);
}
diff --git a/frontend/src/main_page/toolbar/ToolBar.css b/frontend/src/main_page/toolbar/ToolBar.css
index 2173cb70..22b513d7 100644
--- a/frontend/src/main_page/toolbar/ToolBar.css
+++ b/frontend/src/main_page/toolbar/ToolBar.css
@@ -1,16 +1,12 @@
-.mail-container .custom-checkbox {
- margin-right: 12px;
-}
-
.mail-container .btn:hover {
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
/* Disabled buttons - used when no mail is selected */
.btn:disabled, .btn[disabled] {
- background-color: #dee2e6 !important; /* dull gray */
- border-color: #cfd3d7 !important; /* matching gray border */
- color: #6c757d !important; /* dark muted text/icon */
+ background-color: transparent !important; /* dull gray */
+ border-color: var(--light-disabled-icon-border-toolbar) !important; /* matching gray border */
+ color: var(--light-disabled-icon-text-toolbar) !important; /* dark muted text/icon */
opacity: 1 !important; /* remove Bootstrap fade */
box-shadow: none !important; /* no elevation */
cursor: not-allowed !important; /* no cursor */
@@ -19,4 +15,9 @@
/* Disabled icon - used when no mail is selected */
.btn:disabled i {
opacity: 0.6;
+}
+
+/* New rule to align the toolbar checkbox */
+.mail-toolbar-alignment {
+ padding-left: 24px; /* Matches the padding-left of .light-mail-container and .dark-mail-container */
}
\ No newline at end of file
diff --git a/frontend/src/main_page/toolbar/ToolBar.jsx b/frontend/src/main_page/toolbar/ToolBar.jsx
index 6f2d073e..8f1ed821 100644
--- a/frontend/src/main_page/toolbar/ToolBar.jsx
+++ b/frontend/src/main_page/toolbar/ToolBar.jsx
@@ -20,55 +20,52 @@ const ToolBar = ({
}, [allSelected, anySelected]);
return (
-
-
+ >
+
+
+ {/* MARK READ */}
+
+ {/* --- DELETE --- */}
+
+ {/* REPORT SPAM */}
+
)
}
diff --git a/frontend/src/theme.css b/frontend/src/theme.css
new file mode 100644
index 00000000..6c36e47c
--- /dev/null
+++ b/frontend/src/theme.css
@@ -0,0 +1,37 @@
+:root {
+ /* ----- Light theme palette ----- */
+ /* FROM DARKEST TO LIGHTEST: fdfdfd eeeeee f4f4f4
+ /* page */
+ --light-bg-page: #f4f4f4;
+ --light-bg-mails: #fdfdfd;
+ --light-text-color: #000000;
+ /* mail rows */
+ --light-bg-mail-row: rgba(255, 255, 255, 0.2);
+ --light-strong-border-mail-row: rgba(255, 255, 255, 0.3);
+ --light-weak-border-mail-row: rgba(0, 0, 0, 0.08);
+ --light-bg-unread-mail-row: #fdfdfd;
+ --light-bg-read-mail-row: #eeeeee;
+ --light-hover-bg-mail-row: #f1f3f5;
+ --light-shadow-bg-mail-row: rgba(0, 0, 0, 0.12);
+ /* tool bar */
+ --light-disabled-icon-bg-toolbar: #dee2e6;
+ --light-disabled-icon-border-toolbar: #cfd3d7;
+ --light-disabled-icon-text-toolbar: #6c757d;
+
+ /* ----- Dark theme palette ----- */
+ /* FROM DARKEST TO LIGHTEST: 121212 161616 272727
+ /* page */
+ --dark-bg-page: #121212;
+ --dark-bg-mails: #161616;
+ --dark-text-color: #eef4ed;
+ /* mail rows */
+ --dark-bg-unread-mail-row: #272727;
+ --dark-bg-read-mail-row: #161616;
+
+ --dark-strong-border-mail-row: rgba(255, 255, 255, 0.3); /* or pick a darker/lighter tone if desired */
+ --dark-weak-border-mail-row: rgba(0, 0, 0, 0.08);
+
+ /* Hover/background effects for dark rows */
+ --dark-hover-bg-mail-row: rgba(255, 255, 255, 0.1); /* subtle light tint on hover */
+ --dark-shadow-bg-mail-row: rgba(0, 0, 0, 0.3);
+}
\ No newline at end of file