-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
135 lines (120 loc) · 2.71 KB
/
Copy pathstyle.css
File metadata and controls
135 lines (120 loc) · 2.71 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
:root {
--primary-color: #4a90e2;
--bg-color: #f4f7f6;
--card-bg: #ffffff;
--text-color: #333333;
--border-radius: 8px;
--transition-speed: 0.3s;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: var(--bg-color);
color: var(--text-color);
display: flex;
flex-direction: column;
align-items: center;
padding: 2rem;
}
/* --- Input Section --- */
#input {
width: 100%;
max-width: 600px;
height: 120px;
padding: 1rem;
border: 1px solid #ddd;
border-radius: 6px;
resize: none;
font-family: inherit;
font-size: 1rem;
line-height: 1.5;
transition: border-color var(--transition-speed) ease;
margin-bottom: 1rem;
}
#input:focus {
outline: none;
border-color: var(--primary-color);
}
#submit {
align-self: center; /* Centers the button under the textarea */
background-color: var(--primary-color);
color: white;
border: none;
padding: 0.75rem 2rem;
border-radius: 6px;
cursor: pointer;
font-size: 1rem;
font-weight: 600;
transition: background-color var(--transition-speed) ease, transform 0.1s ease;
margin-bottom: 3rem;
}
#submit:hover {
background-color: #357abd;
}
#submit:active {
transform: scale(0.98);
}
/* --- Notes Display Area --- */
#notes-container {
width: 100%;
max-width: 1200px;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 1.5rem;
align-items: start;
}
/* --- Individual Note Card (Matches your .note class) --- */
.note {
background-color: var(--card-bg);
padding: 1.5rem;
border-radius: var(--border-radius);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
display: flex;
flex-direction: column;
min-height: 180px;
transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
word-wrap: break-word;
}
.note:hover {
transform: translateY(-4px);
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}
/* --- Note Content (Matches your .note-text class) --- */
.note-text {
flex-grow: 1;
margin-bottom: 1.5rem;
font-size: 1rem;
line-height: 1.6;
white-space: pre-wrap;
}
/* --- Delete Button (Matches your .delete-btn class) --- */
.delete-btn {
align-self: flex-end; /* Pushes the button to the bottom right of the card */
background: none;
border: none;
cursor: pointer;
font-size: 0.9rem;
font-weight: 600;
color: #888;
transition: color var(--transition-speed) ease;
padding-top: 1rem;
border-top: 1px solid #eee;
width: 100%;
text-align: right;
}
.delete-btn:hover {
color: #e74c3c;
}
/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
body {
padding: 1.5rem 1rem;
}
#notes-container {
grid-template-columns: 1fr;
}
}