PluginProbe
Code Snippets / 3.10.0-beta.1
Code Snippets v3.10.0-beta.1
4.0.0-beta.2 3.10.2 3.10.1 3.10.0 3.10.0-beta.2 3.10.0-beta.1 4.0.0-beta.1 3.9.6 trunk 2.10.0 2.10.1 2.12.0 2.12.1 2.13.0 2.13.1 2.13.2 2.13.3 2.14.0 2.14.1 2.14.2 2.14.3 2.14.4 2.14.5 2.14.6 3.0.0 All 65 releases
code-snippets / css / manage / _cloud-community.scss

_cloud-community.scss in Code Snippets 3.10.0-beta.1, at css/manage/_cloud-community.scss

169 lines 2.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 @use '../common/banners';
2 @use '../common/theme';
3
4 .cloud-snippet-status {
5 display: inline-flex;
6 align-items: center;
7 gap: 8px;
8 color: #646970;
9 font-size: 12px;
10 font-weight: 500;
11 white-space: nowrap;
12
13 &::before {
14 content: '';
15 block-size: 10px;
16 inline-size: 10px;
17 border-radius: 50%;
18 display: inline-block;
19 }
20 }
21
22 $status-colors: (
23 public #64baba,
24 private #cc96fb,
25 unverified #ea835e,
26 ai-verified #1cabcf,
27 pro-verified #41a269,
28 );
29
30 @each $status, $color in $status-colors {
31 .cloud-snippet-status-#{$status}::before {
32 background: $color;
33 }
34 }
35
36 .bundle-share-code-form,
37 .cloud-search-form {
38 display: flex;
39 gap: 8px;
40 margin-block: 0 47px;
41 block-size: 54px;
42
43 > select {
44 flex: 0 0 250px;
45 }
46
47 .button {
48 flex: 0 0 165px;
49 }
50
51 .cloud-search-query {
52 flex: 1;
53 position: relative;
54
55 input {
56 inline-size: 100%;
57 block-size: 100%;
58 }
59
60 > .components-spinner {
61 position: absolute;
62 inset-inline-end: 1.5em;
63 inset-block-start: 25%;
64 }
65 }
66
67 button[type='submit']='submit'] {
68 display: inline-flex;
69 align-items: center;
70 justify-content: center;
71
72 .components-spinner {
73 margin: 0;
74 }
75 }
76 }
77
78 .cloud-search {
79 @include banners.banners;
80
81 padding-block-start: 10px;
82
83 .banner {
84 justify-content: center;
85 }
86 }
87
88 .bundle-share-code-form {
89 max-inline-size: 60%;
90 }
91
92 .cloud-snippet-action-buttons {
93 display: flex;
94 justify-content: flex-end;
95 align-items: center;
96 gap: 8px;
97
98 // Keep the Download / Edit / Pro Only button a consistent width so
99 // rows line up regardless of which state the snippet is in.
100 .button-primary,
101 .cloud-pro-button {
102 min-inline-size: 90px;
103 text-align: center;
104 justify-content: center;
105 }
106 }
107
108 .cloud-snippets-table {
109 // Body rows only: the header row also holds a `td` for the select-all cell,
110 // and a fixed height there would make this header taller than the one on the
111 // snippets table.
112 tbody td {
113 box-sizing: border-box;
114 block-size: 60px;
115 vertical-align: middle;
116 }
117
118 .column-name {
119 inline-size: 22%;
120 }
121
122 .column-type {
123 inline-size: 90px;
124 }
125
126 .column-status {
127 inline-size: 120px;
128 }
129
130 .column-actions {
131 inline-size: 210px;
132 }
133
134 .cloud-table-name-button {
135 background: none;
136 border: 0;
137 padding: 0;
138 margin: 0;
139 font-size: inherit;
140 font-weight: 600;
141 color: theme.$accent;
142 text-decoration: none;
143 cursor: pointer;
144 text-align: start;
145
146 &:hover,
147 &:focus-visible {
148 color: #135e96;
149 text-decoration: underline;
150 }
151 }
152
153 // Clamp descriptions so every row stays the same height.
154 .cloud-table-description {
155 display: -webkit-box;
156 -webkit-box-orient: vertical;
157 -webkit-line-clamp: 2;
158 line-clamp: 2;
159 overflow: hidden;
160 }
161 }
162
163 // Community bundles tab shares the same top padding as .cloud-search so the
164 // two tabs' descriptions and inputs align (scoped so the My Library bundles
165 // tab is unaffected).
166 .community-bundles {
167 padding-block-start: 10px;
168 }
169