Skip to content

Commit 0b15874

Browse files
committed
fix: enhance styling for cloud related elements
1 parent a72d08b commit 0b15874

File tree

2 files changed

+117
-43
lines changed

2 files changed

+117
-43
lines changed

src/css/edit/_gpt.scss

Lines changed: 46 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,30 +20,66 @@
2020
.generate-button {
2121
display: flex;
2222
align-items: center;
23+
gap: 5px;
2324

2425
.dashicons-warning {
2526
color: #b32d2e;
2627
}
28+
29+
.snippet-tags-container &,
30+
.snippet-description-container & {
31+
float: inline-end;
32+
}
2733
}
2834

2935
.code-line-explanation {
3036
display: flex;
31-
align-items: center;
32-
font-size: 13px;
37+
cursor: default;
38+
font-size: inherit;
3339
margin: 0;
34-
padding-block: 0;
35-
padding-inline: 8px;
36-
background-color: #fff;
37-
border: 1px solid #bbb;
38-
border-inline-start: 0;
39-
border-inline-end: 0;
40+
padding-inline: 6px;
41+
border-inline-start: none;
42+
border-inline-end: none;
43+
border-block-start: 1px solid rgb(0 0 0 / 15%);
44+
border-block-end: 1px solid rgb(0 0 0 / 15%);
45+
border-image-slice: 1;
46+
border-image-width: 1;
47+
border-image-repeat: stretch;
4048
color: #666;
4149
font-style: italic;
42-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
50+
font-family: monospace;
51+
gap: 5px;
52+
align-items: center;
4353

4454
img {
4555
block-size: 1rem;
46-
padding-inline-end: 5px;
56+
opacity: 0.7;
57+
}
58+
59+
.code-line-actions {
60+
cursor: default;
61+
gap: 7px;
62+
display: inline-flex;
63+
margin-inline-start: 5px;
64+
font-family: system-ui;
65+
font-style: normal;
66+
67+
.commit {
68+
color: #3d9970;
69+
}
70+
71+
.remove {
72+
color: #b32d2e;
73+
}
74+
75+
.action {
76+
cursor: pointer;
77+
opacity: 0.6;
78+
79+
&:hover {
80+
opacity: 1;
81+
}
82+
}
4783
}
4884
}
4985

src/css/manage/_cloud.scss

Lines changed: 71 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,6 @@ td.column-name {
6969
}
7070
}
7171

72-
td.column-download {
73-
display: flex;
74-
gap: 0.5em;
75-
flex-flow: column;
76-
text-align: center;
77-
}
78-
7972
.cloud-snippet-download {
8073
color: theme.$accent !important;
8174
}
@@ -218,12 +211,72 @@ td.column-download {
218211
display: flex;
219212
flex-wrap: wrap;
220213
justify-content: center;
214+
215+
.plugin-card {
216+
display: flex;
217+
flex-direction: column;
218+
justify-content: space-between;
219+
220+
.cloud-meta-row {
221+
display: flex;
222+
justify-content: space-between;
223+
align-items: center;
224+
flex-grow: 1;
225+
}
226+
227+
.column-name {
228+
display: flex;
229+
230+
h3 {
231+
display: inline-flex;
232+
flex-shrink: 1;
233+
}
234+
235+
.title-icon {
236+
block-size: 90px;
237+
margin-block-start: -7px;
238+
}
239+
}
240+
241+
.column-votes {
242+
display: inline-flex;
243+
gap: 3px;
244+
245+
&:hover {
246+
.thumbs-up {
247+
stroke: #059669;
248+
fill: #6ee7b7;
249+
animation: thumb 1s ease-in-out infinite;
250+
}
251+
}
252+
253+
.num-votes {
254+
display: inline-flex;
255+
align-items: flex-end;
256+
}
257+
}
258+
}
259+
260+
.action-buttons {
261+
margin: 0;
262+
263+
.button {
264+
inline-size: 100%;
265+
text-align: center;
266+
}
267+
}
221268
}
222269

223-
.cloud-snippets .plugin-card {
224-
display: flex;
225-
flex-direction: column;
226-
justify-content: space-between;
270+
.cloud-snippets #the-list{
271+
.column-download {
272+
display: flex;
273+
flex-flow: column;
274+
text-align: right;
275+
276+
li {
277+
list-style: none;
278+
}
279+
}
227280
}
228281

229282
.cloud-connect-wrap {
@@ -237,6 +290,7 @@ td.column-download {
237290
gap: 5px;
238291
}
239292

293+
240294
.cloud-table > tbody > tr {
241295
block-size: 80px;
242296
box-shadow: inset 0 -1px 0 rgb(0 0 0 / 10%);
@@ -264,6 +318,7 @@ td.column-download {
264318
background-color: #ce0000;
265319
border-radius: 50%;
266320

321+
267322
.cloud-connect-active & {
268323
background-color: #25a349;
269324
}
@@ -282,33 +337,16 @@ td.column-download {
282337
block-size: 1.25rem; /* 20px */
283338
transform-origin: bottom left;
284339

285-
[dir="rtl"] & {
286-
transform-origin: bottom right;
287-
}
288-
289340
&:hover {
290341
stroke: #059669;
291342
fill: #6ee7b7;
292343
}
293344
}
294345

295-
.voted-info {
296-
display: inline-flex;
297-
gap: 3px;
298-
align-items: center;
299-
margin-block-end: 6px !important;
300-
301-
&:hover {
302-
.thumbs-up {
303-
stroke: #059669;
304-
fill: #6ee7b7;
305-
animation: thumb 1s ease-in-out infinite;
306-
}
307-
}
308-
}
309-
310346
.plugin-card-bottom {
311347
overflow: visible !important;
348+
display: flex;
349+
align-items: center;
312350
}
313351

314352
.beta-test-notice {
@@ -327,15 +365,15 @@ td.column-download {
327365
}
328366

329367
33% {
330-
transform: rotate(calc(7deg * var(--cs-direction-multiplier)));
368+
transform: rotate(7deg)
331369
}
332370

333371
66% {
334-
transform: rotate(calc(-15deg * var(--cs-direction-multiplier)));
372+
transform: rotate(-15deg)
335373
}
336374

337375
90% {
338-
transform: rotate(calc(5deg * var(--cs-direction-multiplier)));
376+
transform: rotate(5deg)
339377
}
340378

341379
100% {

0 commit comments

Comments
 (0)