Repository navigation
Expand file tree
/
Copy pathnotes.css
More file actions
156 lines (132 loc) · 2.33 KB
/
Copy pathnotes.css
File metadata and controls
156 lines (132 loc) · 2.33 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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Arial", sans-serif;
}
body {
background-color: #f0f0f0;
color: #333;
transition: background-color 0.3s, color 0.3s;
}
.container {
width: 98%;
margin: 50px auto;
padding: 20px;
background-color: #fff;
box-shadow: 0 4px 8px rgb(0, 0, 0);
border-radius: 10px;
}
header {
display: flex;
justify-content: space-between;
align-items: center;
justify-items: center;
margin-bottom: 20px;
}
h1 {
font-size: 2rem;
}
#themeToggle {
background: none;
border: none;
font-size: 1.5rem;
cursor: pointer;
}
.note-input {
display: flex;
gap: 10px;
margin-bottom: 20px;
}
textarea {
flex: 1;
resize: none;
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
height: 50%;
}
#addNoteBtn {
padding: 10px 20px;
border: none;
background-color: #28a745;
color: #fff;
cursor: pointer;
border-radius: 5px;
}
#addNoteBtn:hover {
background-color: #218838;
}
.notes-container {
display: flex;
flex-direction: column;
gap: 10px;
height: 50%;
}
.note {
padding: 10px;
border: 1px solid #ddd;
border-radius: 5px;
background-color: #fafafa;
display: flex;
justify-content: space-between;
align-items: center;
height: 50%;
}
.note p {
flex: 1;
margin-right: 10px;
word-break: break-word;
}
.note button {
background-color: #dc3545;
color: #fff;
border: none;
padding: 5px 10px;
border-radius: 5px;
cursor: pointer;
}
.note button:hover {
background-color: #c82333;
}
body.dark {
background-color: #333;
color: #f0f0f0;
}
body.dark .container {
background-color: #444;
}
body.dark textarea {
background-color: #555;
color: #fff;
border: 1px solid #666;
}
body.dark .note {
background-color: #666;
}
.note button {
margin-left: 5px;
}
.note pre {
white-space: pre-wrap;
word-break: break-word;
margin: 0;
flex: 1;
}
.back-to-top {
position: fixed;
bottom: 20px;
right: 20px;
background: #f04;
color: #fff;
border: none;
padding: 0.8rem 1rem;
border-radius: 50%;
cursor: pointer;
display: none;
font-size: 1.5rem;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.back-to-top.show {
display: block;
}