Repository navigation
Expand file tree
/
Copy pathstyles.css
More file actions
122 lines (107 loc) · 4.01 KB
/
Copy pathstyles.css
File metadata and controls
122 lines (107 loc) · 4.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
:root {
--bg: #0f1115;
--panel: #171a21;
--text: #e8eaf0;
--muted: #a5adba;
--primary: #4f8cff;
--primary-600: #3a6fe0;
--danger: #ff6b6b;
--border: #232838;
--shadow: 0 8px 24px rgba(0,0,0,0.35);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
margin: 0;
font-family: ui-sans-serif, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Noto Sans", "Liberation Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
background: radial-gradient(1200px 800px at 20% 0%, #10131a, #0b0d12 70%), var(--bg);
color: var(--text);
}
.visually-hidden {
position: absolute !important;
height: 1px; width: 1px;
overflow: hidden;
clip: rect(1px, 1px, 1px, 1px);
white-space: nowrap;
}
.app-header {
position: sticky; top: 0; z-index: 10;
display: flex; align-items: center; justify-content: space-between;
gap: 16px;
padding: 16px 20px;
background: rgba(15,17,21,0.7);
backdrop-filter: blur(8px);
border-bottom: 1px solid var(--border);
}
.app-title { margin: 0; font-size: 20px; letter-spacing: 0.5px; }
.actions { display: flex; gap: 12px; align-items: center; }
.search-input {
width: min(48vw, 420px);
padding: 10px 12px;
background: var(--panel);
border: 1px solid var(--border);
border-radius: 10px;
color: var(--text);
outline: none;
}
.search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,140,255,0.15); }
.btn {
padding: 10px 14px;
border-radius: 10px;
border: 1px solid var(--border);
background: var(--panel);
color: var(--text);
cursor: pointer;
}
.btn.primary { background: var(--primary); border-color: var(--primary); color: #0b1020; font-weight: 600; }
.btn.primary:hover { background: var(--primary-600); border-color: var(--primary-600); }
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(1px); }
.icon-btn { cursor: pointer; background: transparent; border: none; color: var(--muted); font-size: 18px; }
.icon-btn:hover { color: var(--text); }
.app-main { max-width: 1120px; margin: 24px auto; padding: 0 16px; display: grid; grid-template-columns: 360px 1fr; gap: 20px; }
.note-editor {
position: sticky; top: 76px;
background: var(--panel);
border: 1px solid var(--border);
border-radius: 14px;
padding: 16px;
box-shadow: var(--shadow);
}
.form-row { display: grid; gap: 8px; margin-bottom: 12px; }
.form-row.inline { grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; }
.form-row label { font-size: 12px; color: var(--muted); }
.form-row input[type="text"],
.form-row textarea,
.form-row select {
background: #0e1118;
border: 1px solid var(--border);
border-radius: 10px;
padding: 10px 12px;
color: var(--text);
outline: none;
}
.form-actions { display: flex; gap: 10px; justify-content: flex-end; }
.checkbox { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.note-list .section-title { margin: 8px 0 12px; font-size: 16px; color: var(--muted); }
.notes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.note-card {
display: grid; grid-template-rows: auto 1fr auto;
min-height: 180px;
background: #0e1118;
border: 1px solid var(--border);
border-radius: 14px;
box-shadow: var(--shadow);
outline: none;
}
.note-card__header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 12px 0; }
.note-card__title { margin: 0; font-size: 16px; line-height: 1.25; max-height: 2.5em; overflow: hidden; }
.note-card__controls { display: flex; gap: 6px; }
.note-card__content { padding: 10px 12px; color: #0b1020; background: #ffffff; border-radius: 10px; margin: 8px 10px; white-space: pre-wrap; word-wrap: break-word; }
.note-card__footer { display: flex; justify-content: flex-end; padding: 0 12px 10px; }
.note-card__time { color: var(--muted); font-size: 12px; }
.empty-state { text-align: center; padding: 24px; color: var(--muted); }
@media (max-width: 920px) {
.app-main { grid-template-columns: 1fr; }
.note-editor { position: static; }
}