mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-05-01 17:24:57 +00:00
424 lines
6.0 KiB
CSS
424 lines
6.0 KiB
CSS
/* Email Client Global Styles */
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html {
|
|
font-size: 16px;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
|
|
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
|
|
sans-serif;
|
|
background-color: #f5f5f5;
|
|
color: #212121;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
#app-root {
|
|
min-height: 100vh;
|
|
}
|
|
|
|
/* Typography */
|
|
h1, h2, h3, h4, h5, h6 {
|
|
font-weight: 600;
|
|
line-height: 1.2;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 2rem;
|
|
}
|
|
|
|
h2 {
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
h3 {
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
h4 {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
h5, h6 {
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
p {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
/* Links */
|
|
a {
|
|
color: #1976d2;
|
|
text-decoration: none;
|
|
transition: color 0.2s;
|
|
}
|
|
|
|
a:hover {
|
|
color: #1565c0;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Buttons */
|
|
button {
|
|
font-family: inherit;
|
|
font-size: inherit;
|
|
cursor: pointer;
|
|
border: none;
|
|
outline: none;
|
|
}
|
|
|
|
button:focus-visible {
|
|
outline: 2px solid #1976d2;
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
/* Form Elements */
|
|
input, textarea, select {
|
|
font-family: inherit;
|
|
font-size: inherit;
|
|
padding: 0.5rem;
|
|
border: 1px solid #ccc;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
input:focus, textarea:focus, select:focus {
|
|
outline: none;
|
|
border-color: #1976d2;
|
|
box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
|
|
}
|
|
|
|
textarea {
|
|
resize: vertical;
|
|
min-height: 100px;
|
|
}
|
|
|
|
/* Lists */
|
|
ul, ol {
|
|
margin-left: 1.5rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
li {
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
/* Tables */
|
|
table {
|
|
border-collapse: collapse;
|
|
width: 100%;
|
|
}
|
|
|
|
th, td {
|
|
border: 1px solid #ddd;
|
|
padding: 0.75rem;
|
|
text-align: left;
|
|
}
|
|
|
|
th {
|
|
background-color: #f5f5f5;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* Scrollbar Styling */
|
|
::-webkit-scrollbar {
|
|
width: 8px;
|
|
height: 8px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: #f1f1f1;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: #888;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: #555;
|
|
}
|
|
|
|
/* Email-specific Styles */
|
|
.email-card {
|
|
padding: 1rem;
|
|
border: 1px solid #e0e0e0;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
transition: background-color 0.2s, border-color 0.2s;
|
|
}
|
|
|
|
.email-card:hover {
|
|
background-color: #fafafa;
|
|
border-color: #bdbdbd;
|
|
}
|
|
|
|
.email-card--unread {
|
|
background-color: #ffffff;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.email-card--read {
|
|
background-color: #fafafa;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.email-from {
|
|
font-weight: 600;
|
|
color: #212121;
|
|
}
|
|
|
|
.email-subject {
|
|
font-size: 1rem;
|
|
font-weight: 500;
|
|
color: #212121;
|
|
margin: 0.5rem 0;
|
|
}
|
|
|
|
.email-preview {
|
|
font-size: 0.875rem;
|
|
color: #666;
|
|
margin-top: 0.25rem;
|
|
}
|
|
|
|
.email-date {
|
|
font-size: 0.75rem;
|
|
color: #999;
|
|
}
|
|
|
|
.folder-tree {
|
|
padding: 1rem 0;
|
|
}
|
|
|
|
.folder-item {
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
.folder-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
padding: 0.5rem 1rem;
|
|
width: 100%;
|
|
background: transparent;
|
|
border: none;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
border-radius: 4px;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.folder-btn:hover {
|
|
background-color: #f5f5f5;
|
|
}
|
|
|
|
.folder-btn--active {
|
|
background-color: #e3f2fd;
|
|
color: #1976d2;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.folder-icon {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.folder-expand {
|
|
cursor: pointer;
|
|
font-size: 0.75rem;
|
|
margin-right: 0.25rem;
|
|
}
|
|
|
|
.unread-badge {
|
|
margin-left: auto;
|
|
background-color: #1976d2;
|
|
color: white;
|
|
border-radius: 12px;
|
|
padding: 0.125rem 0.5rem;
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.star-button {
|
|
background: none;
|
|
border: none;
|
|
font-size: 1rem;
|
|
cursor: pointer;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
.star-button:hover {
|
|
transform: scale(1.2);
|
|
}
|
|
|
|
/* Sync Status */
|
|
.sync-status-badge {
|
|
padding: 0.5rem;
|
|
border-radius: 4px;
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.sync-progress {
|
|
padding: 1rem;
|
|
background-color: #e3f2fd;
|
|
border-radius: 4px;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
/* Compose Window */
|
|
.compose-window {
|
|
position: fixed;
|
|
bottom: 0;
|
|
right: 20px;
|
|
width: 500px;
|
|
max-width: 90vw;
|
|
background: white;
|
|
border: 1px solid #e0e0e0;
|
|
border-radius: 8px 8px 0 0;
|
|
box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
|
|
z-index: 1000;
|
|
}
|
|
|
|
.compose-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 1rem;
|
|
border-bottom: 1px solid #e0e0e0;
|
|
}
|
|
|
|
.compose-header h2 {
|
|
margin: 0;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.close-btn {
|
|
background: none;
|
|
border: none;
|
|
font-size: 1.5rem;
|
|
cursor: pointer;
|
|
color: #666;
|
|
}
|
|
|
|
.compose-body {
|
|
padding: 1rem;
|
|
overflow-y: auto;
|
|
max-height: 400px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.compose-footer {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
padding: 1rem;
|
|
border-top: 1px solid #e0e0e0;
|
|
background-color: #f5f5f5;
|
|
}
|
|
|
|
/* Layout */
|
|
.mailbox-layout {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100vh;
|
|
}
|
|
|
|
.mailbox-content {
|
|
display: flex;
|
|
flex: 1;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.mailbox-sidebar {
|
|
width: 250px;
|
|
overflow-y: auto;
|
|
border-right: 1px solid #e0e0e0;
|
|
background-color: #f9f9f9;
|
|
}
|
|
|
|
.mailbox-main {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 1rem;
|
|
}
|
|
|
|
.mailbox-detail {
|
|
width: 400px;
|
|
overflow-y: auto;
|
|
border-left: 1px solid #e0e0e0;
|
|
padding: 1rem;
|
|
background-color: #f5f5f5;
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 768px) {
|
|
.compose-window {
|
|
width: 100%;
|
|
max-width: 100%;
|
|
right: 0;
|
|
}
|
|
|
|
.mailbox-sidebar {
|
|
display: none;
|
|
}
|
|
|
|
.mailbox-detail {
|
|
width: 100%;
|
|
border-left: none;
|
|
border-top: 1px solid #e0e0e0;
|
|
}
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
body {
|
|
background-color: #121212;
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
.email-card {
|
|
border-color: #424242;
|
|
}
|
|
|
|
.email-card:hover {
|
|
background-color: #1e1e1e;
|
|
border-color: #616161;
|
|
}
|
|
|
|
.email-card--read {
|
|
background-color: #1e1e1e;
|
|
}
|
|
|
|
.folder-btn:hover {
|
|
background-color: #2c2c2c;
|
|
}
|
|
|
|
.folder-btn--active {
|
|
background-color: #1a3a52;
|
|
}
|
|
|
|
.compose-window {
|
|
background: #212121;
|
|
border-color: #424242;
|
|
}
|
|
|
|
input, textarea, select {
|
|
background-color: #2c2c2c;
|
|
border-color: #424242;
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
input:focus, textarea:focus, select:focus {
|
|
border-color: #1976d2;
|
|
}
|
|
}
|