|
@@ -1,5 +1,39 @@
|
|
|
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');
|
|
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');
|
|
|
|
|
|
|
|
|
|
+/* CSS Variables for Theme Support */
|
|
|
|
|
+:root {
|
|
|
|
|
+ --bg-primary: #fafafa;
|
|
|
|
|
+ --bg-secondary: white;
|
|
|
|
|
+ --bg-tertiary: #f5f5f5;
|
|
|
|
|
+ --text-primary: #333;
|
|
|
|
|
+ --text-secondary: #666;
|
|
|
|
|
+ --text-tertiary: #999;
|
|
|
|
|
+ --border-primary: #e0e0e0;
|
|
|
|
|
+ --border-secondary: #ddd;
|
|
|
|
|
+ --accent-primary: #007bff;
|
|
|
|
|
+ --accent-primary-hover: #0056b3;
|
|
|
|
|
+ --accent-secondary: #6c757d;
|
|
|
|
|
+ --overlay-bg: rgba(0,0,0,0.5);
|
|
|
|
|
+ --shadow: rgba(0,0,0,0.3);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+/* Dark Theme Variables */
|
|
|
|
|
+[data-theme="dark"] {
|
|
|
|
|
+ --bg-primary: #1a1a1a;
|
|
|
|
|
+ --bg-secondary: #2d2d2d;
|
|
|
|
|
+ --bg-tertiary: #404040;
|
|
|
|
|
+ --text-primary: #e0e0e0;
|
|
|
|
|
+ --text-secondary: #b0b0b0;
|
|
|
|
|
+ --text-tertiary: #808080;
|
|
|
|
|
+ --border-primary: #404040;
|
|
|
|
|
+ --border-secondary: #555;
|
|
|
|
|
+ --accent-primary: #4dabf7;
|
|
|
|
|
+ --accent-primary-hover: #339af0;
|
|
|
|
|
+ --accent-secondary: #868e96;
|
|
|
|
|
+ --overlay-bg: rgba(0,0,0,0.7);
|
|
|
|
|
+ --shadow: rgba(0,0,0,0.5);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
* {
|
|
* {
|
|
|
margin: 0;
|
|
margin: 0;
|
|
|
padding: 0;
|
|
padding: 0;
|
|
@@ -8,49 +42,59 @@
|
|
|
|
|
|
|
|
body {
|
|
body {
|
|
|
font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
|
font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
|
|
- background-color: #fafafa;
|
|
|
|
|
|
|
+ background-color: var(--bg-primary);
|
|
|
|
|
+ color: var(--text-primary);
|
|
|
height: 100vh;
|
|
height: 100vh;
|
|
|
display: flex;
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
|
|
|
+ transition: background-color 0.3s ease, color 0.3s ease;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.header {
|
|
.header {
|
|
|
- background: white;
|
|
|
|
|
- border-bottom: 1px solid #e0e0e0;
|
|
|
|
|
|
|
+ background: var(--bg-secondary);
|
|
|
|
|
+ border-bottom: 1px solid var(--border-primary);
|
|
|
padding: 15px 20px;
|
|
padding: 15px 20px;
|
|
|
display: flex;
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
min-height: 60px;
|
|
min-height: 60px;
|
|
|
|
|
+ transition: background-color 0.3s ease, border-color 0.3s ease;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.title {
|
|
.title {
|
|
|
font-size: 18px;
|
|
font-size: 18px;
|
|
|
- color: #333;
|
|
|
|
|
|
|
+ color: var(--text-primary);
|
|
|
font-weight: 500;
|
|
font-weight: 500;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.note-id {
|
|
.note-id {
|
|
|
font-family: monospace;
|
|
font-family: monospace;
|
|
|
font-size: 12px;
|
|
font-size: 12px;
|
|
|
- color: #666;
|
|
|
|
|
- background: #f5f5f5;
|
|
|
|
|
|
|
+ color: var(--text-secondary);
|
|
|
|
|
+ background: var(--bg-tertiary);
|
|
|
padding: 4px 8px;
|
|
padding: 4px 8px;
|
|
|
border-radius: 3px;
|
|
border-radius: 3px;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+.header-right {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ gap: 10px;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
.new-btn {
|
|
.new-btn {
|
|
|
- background: #007bff;
|
|
|
|
|
|
|
+ background: var(--accent-primary);
|
|
|
color: white;
|
|
color: white;
|
|
|
border: none;
|
|
border: none;
|
|
|
padding: 8px 16px;
|
|
padding: 8px 16px;
|
|
|
border-radius: 4px;
|
|
border-radius: 4px;
|
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
|
|
|
+ transition: background-color 0.2s ease;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.new-btn:hover {
|
|
.new-btn:hover {
|
|
|
- background: #0056b3;
|
|
|
|
|
|
|
+ background: var(--accent-primary-hover);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.content {
|
|
.content {
|
|
@@ -67,11 +111,13 @@ body {
|
|
|
font-size: 16px;
|
|
font-size: 16px;
|
|
|
line-height: 1.6;
|
|
line-height: 1.6;
|
|
|
resize: none;
|
|
resize: none;
|
|
|
- background: white;
|
|
|
|
|
|
|
+ background: var(--bg-secondary);
|
|
|
|
|
+ color: var(--text-primary);
|
|
|
|
|
+ transition: background-color 0.3s ease, color 0.3s ease;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.note-area::placeholder {
|
|
.note-area::placeholder {
|
|
|
- color: #999;
|
|
|
|
|
|
|
+ color: var(--text-tertiary);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.id-input-overlay {
|
|
.id-input-overlay {
|
|
@@ -80,7 +126,7 @@ body {
|
|
|
left: 0;
|
|
left: 0;
|
|
|
right: 0;
|
|
right: 0;
|
|
|
bottom: 0;
|
|
bottom: 0;
|
|
|
- background: rgba(0,0,0,0.5);
|
|
|
|
|
|
|
+ background: var(--overlay-bg);
|
|
|
display: flex;
|
|
display: flex;
|
|
|
justify-content: center;
|
|
justify-content: center;
|
|
|
align-items: center;
|
|
align-items: center;
|
|
@@ -88,26 +134,30 @@ body {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.id-input-dialog {
|
|
.id-input-dialog {
|
|
|
- background: white;
|
|
|
|
|
|
|
+ background: var(--bg-secondary);
|
|
|
padding: 30px;
|
|
padding: 30px;
|
|
|
border-radius: 8px;
|
|
border-radius: 8px;
|
|
|
- box-shadow: 0 4px 20px rgba(0,0,0,0.3);
|
|
|
|
|
|
|
+ box-shadow: 0 4px 20px var(--shadow);
|
|
|
max-width: 400px;
|
|
max-width: 400px;
|
|
|
width: 90%;
|
|
width: 90%;
|
|
|
|
|
+ transition: background-color 0.3s ease;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.id-input-dialog h3 {
|
|
.id-input-dialog h3 {
|
|
|
margin-bottom: 15px;
|
|
margin-bottom: 15px;
|
|
|
- color: #333;
|
|
|
|
|
|
|
+ color: var(--text-primary);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.id-input {
|
|
.id-input {
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
padding: 12px;
|
|
padding: 12px;
|
|
|
- border: 1px solid #ddd;
|
|
|
|
|
|
|
+ border: 1px solid var(--border-secondary);
|
|
|
border-radius: 4px;
|
|
border-radius: 4px;
|
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
|
margin-bottom: 15px;
|
|
margin-bottom: 15px;
|
|
|
|
|
+ background: var(--bg-secondary);
|
|
|
|
|
+ color: var(--text-primary);
|
|
|
|
|
+ transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.dialog-buttons {
|
|
.dialog-buttons {
|
|
@@ -122,18 +172,62 @@ body {
|
|
|
border-radius: 4px;
|
|
border-radius: 4px;
|
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
|
|
|
+ transition: background-color 0.2s ease;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.dialog-btn.primary {
|
|
.dialog-btn.primary {
|
|
|
- background: #007bff;
|
|
|
|
|
|
|
+ background: var(--accent-primary);
|
|
|
color: white;
|
|
color: white;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+.dialog-btn.primary:hover {
|
|
|
|
|
+ background: var(--accent-primary-hover);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
.dialog-btn.secondary {
|
|
.dialog-btn.secondary {
|
|
|
- background: #6c757d;
|
|
|
|
|
|
|
+ background: var(--accent-secondary);
|
|
|
color: white;
|
|
color: white;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+.dialog-btn.secondary:hover {
|
|
|
|
|
+ opacity: 0.9;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+/* Theme Switch Styles */
|
|
|
|
|
+.theme-switch {
|
|
|
|
|
+ background: var(--bg-tertiary);
|
|
|
|
|
+ border: 1px solid var(--border-primary);
|
|
|
|
|
+ border-radius: 20px;
|
|
|
|
|
+ padding: 4px;
|
|
|
|
|
+ cursor: pointer;
|
|
|
|
|
+ width: 44px;
|
|
|
|
|
+ height: 24px;
|
|
|
|
|
+ position: relative;
|
|
|
|
|
+ transition: all 0.3s ease;
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.theme-switch:hover {
|
|
|
|
|
+ background: var(--border-primary);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.theme-switch::before {
|
|
|
|
|
+ content: '';
|
|
|
|
|
+ width: 16px;
|
|
|
|
|
+ height: 16px;
|
|
|
|
|
+ border-radius: 50%;
|
|
|
|
|
+ background: var(--accent-primary);
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ left: 4px;
|
|
|
|
|
+ transition: all 0.3s ease;
|
|
|
|
|
+ box-shadow: 0 1px 3px rgba(0,0,0,0.2);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.theme-switch.dark::before {
|
|
|
|
|
+ transform: translateX(20px);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
.hidden {
|
|
.hidden {
|
|
|
display: none;
|
|
display: none;
|
|
|
}
|
|
}
|