-
Notifications
You must be signed in to change notification settings - Fork 1
/
styles.css
228 lines (183 loc) · 6.22 KB
/
styles.css
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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
#extensionIcon {
height: 24px; /* Or the size you want your icon to be */
width: auto;
margin-right: 5px;
margin-left: 10px;
}
#extensionTitle {
display: inline; /* To align with the icon */
font-size: 1.5em; /* Adjust the size as needed */
vertical-align: middle; /* Align with the icon */
margin: 10px; /* Space before the buttons */
}
/* ----------------------------------------------------------- */
body {
width: 310px;
min-height: 420px; /* Set a minimum height for the popup */
font-family: Arial, sans-serif;
margin: 0;
padding: 10px;
background-color: #f4f4f4;
display: flex;
flex-direction: column; /* Organize content in a column */
}
.header {
text-align: left; /* Align the content to the left */
margin-bottom: 0px;
display: flex; /* Use flexbox for alignment */
align-items: center; /* Center items vertically */
justify-content: start; /* Start items from the beginning */
}
h2 {
color: #333;
margin-bottom: 20px;
}
/* ----------------------------------------------------------- */
.task-list {
background: #f7d0c3; /* Lighter shade of tomato */
padding: 15px;
border-radius: 5px; /* Rounded corners for the list */
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
flex-grow: 1;
overflow-y: auto;
display: flex;
flex-direction: column; /* Stack tasks vertically */
gap: 15px; /* Space between cards */
display: flex; /* Use flex display for alignment */
flex-direction: column; /* Stack content vertically */
position: relative; /* For positioning the buttons */
}
.task-item {
font-size: 1.2em;
background: white;
border-radius: 10px; /* Rounded corners for the card */
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Card shadow for depth */
padding: 15px;
display: flex;
flex-direction: column; /* Stack content vertically */
position: relative; /* For positioning the buttons */
}
.task-item p {
margin-top: 0.2em; /* Adjust top margin as needed */
margin-bottom: 0.2em; /* Adjust bottom margin as needed */
line-height: 1.4em; /* Adjust line height for better readability */
word-wrap: break-word; /* This ensures that long words will break and wrap onto the next line */
overflow-wrap: break-word; /* Use this as well for additional support */
hyphens: auto; /* Automatically add hyphens when breaking words */
}
.task-item a {
display: inline-block;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: #0645ad; /* A standard link color */
text-decoration: underline; /* Underline to indicate clickability */
}
.task-item a:hover {
text-decoration: none; /* Optional style for when the mouse hovers over the link */
}
/* ----------------------------------------------------------- */
.input-container {
background: #fff;
padding: 10px;
border-radius: 5px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
margin-bottom: 10px;
}
input[type="text"], input[type="date"] {
width: calc(100% - 22px); /* Adjust width to account for padding and border */
padding: 10px;
margin: 5px 0;
border: 1px solid #ddd;
border-radius: 4px;
box-sizing: border-box;
}
input:focus {
outline: none;
border-color: #4CAF50;
}
/* ----------------------------------------------------------- */
.button-group {
text-align: center; /* Center the buttons */
padding-top: 5px; /* Add some space between the title and the buttons */
}
/* Style for individual buttons */
button {
margin: 5px;
padding: 10px 10px;
border: none;
border-radius: 5px;
cursor: pointer;
background-color: tomato; /* Tomato red color */
color: white;
font-size: 13px;
font-weight: bold;
box-shadow: none; /* Remove box-shadow from individual buttons */
transition: background-color 0.3s; /* Smooth transition for hover effect */
}
button:hover {
background-color: #e35d5b; /* Darker tomato when hovering */
}
/* Style for edit and delete buttons specifically */
.edit-button, .delete-button {
flex: none; /* Do not allow the buttons to grow */
padding: 5px 20px; /* Increase padding for better touch targets */
font-size: 0.8rem;
margin: 0 10px; /* Adjust spacing between buttons */
}
/* Style for the container wrapping the edit and delete buttons */
.button-container {
display: flex; /* Use flexbox to arrange buttons in a row */
justify-content: right; /* Center buttons in the container */
gap: 5px; /* Space between buttons */
}
/* ----------------------------------------------------------- */
/* Modal styles */
.modal {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 1000; /* Sit on top */
left: 0;
top: 0;
width: 100%; /* Full width */
height: 100%; /* Full height */
overflow: auto; /* Enable scroll if needed */
background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}
.modal-content {
border-radius: 8px; /* Apply rounded corners to the modal content */
background-color: #fefefe;
margin: 5% auto; /* Reduce top and bottom margin */
max-height: 95%; /* Reduce max height to ensure it fits in the viewport */
overflow-y: auto; /* Enable scrolling within the modal */
padding: 20px;
border: 1px solid #888;
width: 80%; /* Could be more or less, depending on screen size */
max-width: 500px; /* Maximum width */
position: relative; /* For absolute positioning of the close button */
}
.modal-content input[type="text"],
.modal-content textarea {
width: calc(100% - 40px); /* Full width minus the padding */
padding: 10px;
margin-top: 5px; /* Provide some space on top */
margin-bottom: 10px; /* Provide some space at the bottom */
border: 1px solid #ddd;
border-radius: 4px;
box-sizing: border-box; /* Include padding in the width */
}
.close {
color: #aaa;
position: absolute; /* Absolute positioning inside the modal-content */
top: 10px; /* Position at the top-right corner */
right: 10px; /* Position at the top-right corner */
font-size: 28px;
font-weight: bold;
}
.close:hover,
.close:focus {
color: black;
text-decoration: none;
cursor: pointer;
}