Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
103 lines (90 loc) · 4.23 KB
/
Copy pathstyle.css
File metadata and controls
103 lines (90 loc) · 4.23 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
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
background: #f0f4f8; min-height: 100vh; color: #1e293b;
}
.app { max-width: 900px; margin: 0 auto; padding: 2rem 1rem; }
header {
display: flex; align-items: center; justify-content: space-between;
margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem;
}
header h1 { font-size: 1.75rem; }
header h1 i { color: #f59e0b; margin-right: 0.5rem; }
.add-btn {
padding: 0.65rem 1.5rem; border: none; border-radius: 12px;
background: linear-gradient(135deg, #f59e0b, #f97316); color: #fff;
font-weight: 700; font-size: 0.9rem; cursor: pointer; font-family: inherit;
transition: all 0.25s ease;
}
.add-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(245,158,11,0.4); }
.add-btn i { margin-right: 0.5rem; }
.search {
width: 100%; padding: 0.85rem 1rem; border: 2px solid #e2e8f0;
border-radius: 12px; font-size: 1rem; font-family: inherit;
margin-bottom: 1.5rem; transition: border-color 0.25s ease;
}
.search:focus { outline: none; border-color: #f59e0b; }
.notes-grid {
display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 1rem;
}
.note-card {
background: #fff; border-radius: 16px; padding: 1.25rem;
box-shadow: 0 4px 15px rgba(0,0,0,0.08); transition: all 0.25s ease;
border-left: 4px solid #f59e0b; animation: cardIn 0.3s ease;
cursor: pointer;
}
@keyframes cardIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.note-card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(0,0,0,0.12); }
.note-card:nth-child(3n+1) { border-left-color: #f59e0b; }
.note-card:nth-child(3n+2) { border-left-color: #3b82f6; }
.note-card:nth-child(3n) { border-left-color: #10b981; }
.note-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; word-break: break-word; }
.note-body { color: #64748b; font-size: 0.9rem; line-height: 1.5; margin-bottom: 0.75rem; word-break: break-word; }
.note-date { color: #94a3b8; font-size: 0.75rem; }
.note-actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.note-actions button {
padding: 0.35rem 0.75rem; border: none; border-radius: 8px;
font-size: 0.8rem; font-weight: 600; cursor: pointer; font-family: inherit;
transition: all 0.2s ease;
}
.btn-edit { background: #dbeafe; color: #3b82f6; }
.btn-edit:hover { background: #3b82f6; color: #fff; }
.btn-delete { background: #fee2e2; color: #ef4444; }
.btn-delete:hover { background: #ef4444; color: #fff; }
.empty-state { text-align: center; padding: 3rem 1rem; color: #94a3b8; }
.empty-state i { font-size: 4rem; margin-bottom: 1rem; display: block; }
.empty-state p { font-size: 1rem; }
.modal {
position: fixed; inset: 0; background: rgba(0,0,0,0.5);
display: flex; align-items: center; justify-content: center; z-index: 100;
padding: 1rem; animation: fadeIn 0.25s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-content {
background: #fff; border-radius: 20px; padding: 2rem;
width: 100%; max-width: 450px; animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-content h2 { margin-bottom: 1.5rem; }
#noteTitle {
width: 100%; padding: 0.85rem 1rem; border: 2px solid #e2e8f0;
border-radius: 12px; font-size: 1rem; font-family: inherit; margin-bottom: 1rem;
}
#noteTitle:focus { outline: none; border-color: #f59e0b; }
#noteBody {
width: 100%; padding: 0.85rem 1rem; border: 2px solid #e2e8f0;
border-radius: 12px; font-size: 1rem; font-family: inherit; margin-bottom: 1.5rem;
resize: vertical; min-height: 120px;
}
#noteBody:focus { outline: none; border-color: #f59e0b; }
.modal-actions { display: flex; gap: 0.75rem; justify-content: flex-end; }
.btn-cancel, .btn-save {
padding: 0.65rem 1.5rem; border: none; border-radius: 10px;
font-weight: 700; font-size: 0.9rem; cursor: pointer; font-family: inherit;
transition: all 0.25s ease;
}
.btn-cancel { background: #f1f5f9; color: #64748b; }
.btn-cancel:hover { background: #e2e8f0; }
.btn-save { background: linear-gradient(135deg, #f59e0b, #f97316); color: #fff; }
.btn-save:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(245,158,11,0.4); }