ghuser1 commited on
Commit
1b02558
·
verified ·
1 Parent(s): 1d48a9e

Update styles.css

Browse files
Files changed (1) hide show
  1. styles.css +71 -27
styles.css CHANGED
@@ -56,7 +56,8 @@ body {
56
  }
57
 
58
  .auth-panel,
59
- .password-panel {
 
60
  display: grid;
61
  width: min(360px, calc(100vw - 32px));
62
  gap: 12px;
@@ -68,14 +69,16 @@ body {
68
  }
69
 
70
  .auth-panel h1,
71
- .password-panel h2 {
 
72
  margin: 0 0 4px;
73
  font-size: 22px;
74
  text-align: center;
75
  }
76
 
77
  .auth-panel input,
78
- .password-panel input {
 
79
  height: 40px;
80
  padding: 0 12px;
81
  border: 1px solid #d7d2c8;
@@ -86,13 +89,15 @@ body {
86
  }
87
 
88
  .auth-panel input:focus,
89
- .password-panel input:focus {
 
90
  border-color: var(--accent);
91
  background: white;
92
  }
93
 
94
  .auth-panel button,
95
- .password-panel button {
 
96
  height: 40px;
97
  border: 0;
98
  border-radius: 7px;
@@ -101,7 +106,8 @@ body {
101
  font-weight: 700;
102
  }
103
 
104
- .password-actions {
 
105
  display: grid;
106
  grid-template-columns: 1fr 1fr;
107
  gap: 10px;
@@ -112,8 +118,14 @@ body {
112
  color: var(--text);
113
  }
114
 
 
 
 
 
 
115
  .auth-panel p,
116
- .password-panel p {
 
117
  min-height: 18px;
118
  margin: 0;
119
  color: #a24624;
@@ -188,19 +200,32 @@ textarea {
188
 
189
  .folder-item {
190
  display: grid;
191
- grid-template-columns: 1fr;
192
  align-items: center;
193
  gap: 4px;
194
  }
195
 
196
- .folder-item.can-delete {
197
- grid-template-columns: 1fr auto;
198
  }
199
 
200
  .folder-item .folder-row {
201
  min-width: 0;
202
  }
203
 
 
 
 
 
 
 
 
 
 
 
 
 
 
204
  .folder-delete {
205
  display: none;
206
  place-items: center;
@@ -214,15 +239,31 @@ textarea {
214
  cursor: default;
215
  }
216
 
217
- .folder-item.can-delete:hover .folder-delete,
218
- .folder-item.can-delete:focus-within .folder-delete {
 
 
219
  display: grid;
220
  }
221
 
 
 
 
 
222
  .folder-delete:hover {
223
  background: var(--selected-soft);
224
  }
225
 
 
 
 
 
 
 
 
 
 
 
226
  .folder-delete svg {
227
  width: 17px;
228
  height: 17px;
@@ -237,6 +278,12 @@ textarea {
237
  white-space: nowrap;
238
  }
239
 
 
 
 
 
 
 
240
  .folder-row.active {
241
  background: rgba(255, 255, 255, 0.72);
242
  }
@@ -717,6 +764,13 @@ textarea {
717
  flex: 0 0 auto;
718
  }
719
 
 
 
 
 
 
 
 
720
  .new-folder-button {
721
  grid-template-columns: 22px;
722
  width: 38px;
@@ -1195,15 +1249,8 @@ html.force-mobile .app-shell[data-mobile-view="editor"] .mobile-folder-select {
1195
  min-height: 42px;
1196
  }
1197
 
1198
- .folder-item {
1199
- grid-template-columns: 1fr;
1200
- }
1201
-
1202
- .folder-item.can-delete {
1203
- grid-template-columns: 1fr 38px;
1204
- }
1205
-
1206
- .folder-item.can-delete .folder-delete {
1207
  display: grid;
1208
  width: 38px;
1209
  height: 38px;
@@ -1484,14 +1531,11 @@ html.force-mobile .folder-row {
1484
  }
1485
 
1486
  html.force-mobile .folder-item {
1487
- grid-template-columns: 1fr;
1488
- }
1489
-
1490
- html.force-mobile .folder-item.can-delete {
1491
- grid-template-columns: 1fr 38px;
1492
  }
1493
 
1494
- html.force-mobile .folder-item.can-delete .folder-delete {
 
1495
  display: grid;
1496
  width: 38px;
1497
  height: 38px;
 
56
  }
57
 
58
  .auth-panel,
59
+ .password-panel,
60
+ .folder-panel {
61
  display: grid;
62
  width: min(360px, calc(100vw - 32px));
63
  gap: 12px;
 
69
  }
70
 
71
  .auth-panel h1,
72
+ .password-panel h2,
73
+ .folder-panel h2 {
74
  margin: 0 0 4px;
75
  font-size: 22px;
76
  text-align: center;
77
  }
78
 
79
  .auth-panel input,
80
+ .password-panel input,
81
+ .folder-panel input {
82
  height: 40px;
83
  padding: 0 12px;
84
  border: 1px solid #d7d2c8;
 
89
  }
90
 
91
  .auth-panel input:focus,
92
+ .password-panel input:focus,
93
+ .folder-panel input:focus {
94
  border-color: var(--accent);
95
  background: white;
96
  }
97
 
98
  .auth-panel button,
99
+ .password-panel button,
100
+ .folder-panel button {
101
  height: 40px;
102
  border: 0;
103
  border-radius: 7px;
 
106
  font-weight: 700;
107
  }
108
 
109
+ .password-actions,
110
+ .folder-actions {
111
  display: grid;
112
  grid-template-columns: 1fr 1fr;
113
  gap: 10px;
 
118
  color: var(--text);
119
  }
120
 
121
+ #cancelFolder {
122
+ background: #d7d2c8;
123
+ color: var(--text);
124
+ }
125
+
126
  .auth-panel p,
127
+ .password-panel p,
128
+ .folder-panel p {
129
  min-height: 18px;
130
  margin: 0;
131
  color: #a24624;
 
200
 
201
  .folder-item {
202
  display: grid;
203
+ grid-template-columns: 1fr auto auto;
204
  align-items: center;
205
  gap: 4px;
206
  }
207
 
208
+ .folder-item.can-manage {
209
+ grid-template-columns: 1fr auto auto;
210
  }
211
 
212
  .folder-item .folder-row {
213
  min-width: 0;
214
  }
215
 
216
+ .folder-edit {
217
+ display: none;
218
+ place-items: center;
219
+ width: 30px;
220
+ height: 30px;
221
+ border: 0;
222
+ border-radius: 6px;
223
+ background: transparent;
224
+ color: var(--muted);
225
+ touch-action: manipulation;
226
+ cursor: default;
227
+ }
228
+
229
  .folder-delete {
230
  display: none;
231
  place-items: center;
 
239
  cursor: default;
240
  }
241
 
242
+ .folder-item.can-manage:hover .folder-edit,
243
+ .folder-item.can-manage:hover .folder-delete,
244
+ .folder-item.can-manage:focus-within .folder-edit,
245
+ .folder-item.can-manage:focus-within .folder-delete {
246
  display: grid;
247
  }
248
 
249
+ .folder-edit:hover {
250
+ background: rgba(255, 255, 255, 0.52);
251
+ }
252
+
253
  .folder-delete:hover {
254
  background: var(--selected-soft);
255
  }
256
 
257
+ .folder-edit svg {
258
+ width: 16px;
259
+ height: 16px;
260
+ fill: none;
261
+ stroke: currentColor;
262
+ stroke-linecap: round;
263
+ stroke-linejoin: round;
264
+ stroke-width: 2;
265
+ }
266
+
267
  .folder-delete svg {
268
  width: 17px;
269
  height: 17px;
 
278
  white-space: nowrap;
279
  }
280
 
281
+ .folder-name {
282
+ min-width: 0;
283
+ overflow: hidden;
284
+ text-overflow: ellipsis;
285
+ }
286
+
287
  .folder-row.active {
288
  background: rgba(255, 255, 255, 0.72);
289
  }
 
764
  flex: 0 0 auto;
765
  }
766
 
767
+ .folder-item.can-manage .folder-edit,
768
+ .folder-item.can-manage .folder-delete {
769
+ display: grid;
770
+ width: 38px;
771
+ height: 38px;
772
+ }
773
+
774
  .new-folder-button {
775
  grid-template-columns: 22px;
776
  width: 38px;
 
1249
  min-height: 42px;
1250
  }
1251
 
1252
+ .folder-item.can-manage .folder-edit,
1253
+ .folder-item.can-manage .folder-delete {
 
 
 
 
 
 
 
1254
  display: grid;
1255
  width: 38px;
1256
  height: 38px;
 
1531
  }
1532
 
1533
  html.force-mobile .folder-item {
1534
+ grid-template-columns: 1fr auto auto;
 
 
 
 
1535
  }
1536
 
1537
+ html.force-mobile .folder-item.can-manage .folder-edit,
1538
+ html.force-mobile .folder-item.can-manage .folder-delete {
1539
  display: grid;
1540
  width: 38px;
1541
  height: 38px;