PluginProbe
Code Snippets / 3.9.1
Code Snippets v3.9.1
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 3.0.1 All 64 releases
code-snippets / css / welcome.scss

welcome.scss in Code Snippets 3.9.1, at css/welcome.scss

384 lines 5.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 @use 'sass:color';
2 @use 'common/theme';
3 @use 'common/badges';
4
5 $breakpoint: 1060px;
6
7 .csp-welcome-wrap {
8 padding: 25px;
9
10 h1, h2, h3 {
11 font-weight: 700;
12 margin-block: 10px;
13
14 .dashicons {
15 font-size: 90%;
16 line-height: inherit;
17 inline-size: auto;
18 }
19 }
20
21 h1 {
22 font-size: 1.6rem;
23 }
24
25 h2 {
26 font-size: 1.4rem;
27 }
28
29 .dashicons-external {
30 float: inline-end;
31 color: #666;
32 }
33 }
34
35 .csp-welcome-header {
36 display: flex;
37 flex-flow: row wrap;
38 justify-content: space-between;
39 align-items: center;
40
41 header {
42 display: flex;
43 flex-direction: row;
44 align-items: center;
45 gap: 10px;
46
47 h1 {
48 font-size: 1.4rem;
49 font-weight: bold;
50 line-height: 1;
51 margin: 0;
52
53 span {
54 text-decoration: underline theme.$primary wavy 3px;
55 text-decoration-skip-ink: none;
56 text-underline-offset: 11px;
57 text-transform: capitalize;
58 }
59 }
60 }
61 }
62
63 .csp-welcome-header nav {
64 column-gap: 15px;
65
66 ul {
67 display: flex;
68 flex-flow: row wrap;
69 justify-content: space-evenly;
70 margin: 0;
71 }
72
73 li {
74 margin-block-end: 0;
75 }
76
77 li a {
78 margin-block: 10px;
79 align-items: center;
80 border-width: 1px;
81 border-style: solid;
82 color: white;
83 cursor: pointer;
84 display: flex;
85 font-weight: 400;
86 gap: 3px;
87 text-decoration: none;
88 transition: all .1s ease-in-out;
89 border-radius: 3px;
90 padding: 8px;
91
92 &:hover {
93 background: transparent;
94 }
95
96 .dashicons, svg {
97 text-decoration: none;
98 margin-block-start: -1px;
99 margin-inline-start: 3px;
100 }
101
102 svg {
103 fill: #fff;
104 inline-size: 20px;
105 block-size: 20px;
106 font-size: 20px;
107 vertical-align: top;
108 }
109
110 &:hover svg {
111 fill: currentcolor;
112 }
113 }
114
115 $link-colors: (
116 pro: theme.$secondary,
117 cloud: #08c5d1,
118 resources: #424242,
119 discord: theme.$brand-discord,
120 facebook: theme.$brand-facebook
121 );
122
123 @each $link-name, $color in $link-colors {
124 .csp-link-#{$link-name} {
125 background: $color;
126 border-color: $color;
127
128 &:hover {
129 color: $color;
130 }
131 }
132 }
133 }
134
135 .csp-cards {
136 display: grid;
137 grid-auto-rows: 1fr;
138 grid-template-columns: repeat(4, 1fr);
139 gap: 40px 15px;
140
141 @media (width <= $breakpoint) {
142 grid-template-columns: 1fr !important;
143 }
144 }
145
146 .csp-card {
147 border: 1px solid theme.$outline;
148 background: white;
149 border-radius: 10px;
150 display: flex;
151 flex-flow: column;
152 }
153
154 a.csp-card {
155 text-decoration: none;
156
157 &:hover {
158 background: color.adjust(theme.$primary, $lightness: 55%);
159 transition: .5s background-color;
160 box-shadow: 0 1px 1px rgb(255 255 255 / 50%);
161
162 .dashicons-external {
163 color: #000;
164 }
165 }
166 }
167
168 .csp-section-changes {
169 border: 1px solid theme.$outline;
170 border-inline-start: 0;
171 border-inline-end: 0;
172 padding-block: 40px 50px;
173 padding-inline: 0;
174 display: flex;
175 flex-direction: column;
176 row-gap: 20px;
177 margin-block-start: 30px;
178
179 .csp-cards {
180 grid-template-columns: 2fr 1fr;
181 gap: 20px;
182 }
183
184 .csp-card {
185 padding: 20px;
186 box-shadow: 0 1px 1px rgb(0 0 0 / 5%);
187
188 h2 {
189 color: theme.$primary;
190 }
191 }
192
193 .csp-changelog-wrapper {
194 overflow-y: scroll;
195 }
196
197 .csp-section-changelog {
198 font-size: 0.9rem;
199 line-height: 1.5;
200 color: #333;
201 block-size: 400px;
202
203 h3 {
204 float: inline-end;
205 color: #666;
206 }
207
208 h4 {
209 margin-block: 30px 10px;
210 margin-inline: 0;
211 }
212
213 ul {
214 margin-block-start: 5px;
215 }
216
217 li {
218 display: grid;
219 grid-template-columns: 40px 1fr;
220 grid-template-rows: 1fr;
221 align-items: baseline;
222 gap: 7px;
223 }
224
225 li .badge {
226 text-align: center;
227 }
228
229 > article::after {
230 border-block-end: 1px solid #666;
231 content: ' ';
232 display: block;
233 inline-size: 50%;
234 margin-block: 3em 0;
235 margin-inline: auto;
236 }
237
238 > article:last-child {
239 padding-block-end: 1px;
240
241 &::after {
242 border: 0;
243 }
244 }
245 }
246
247 figure {
248 margin-block: 1em 0;
249 margin-inline: 0;
250 overflow: hidden;
251 border-radius: 0.5rem;
252 border: 1px solid grey;
253 position: relative;
254 block-size: auto;
255 background: #646970;
256
257 img {
258 inline-size: 100%;
259 block-size: 100%;
260 overflow: hidden;
261 object-fit: cover;
262 }
263 }
264
265 .dashicons-lightbulb {
266 color: #f1c40f;
267 }
268
269 .dashicons-chart-line {
270 color: #85144b;
271 }
272
273 .dashicons-buddicons-replies {
274 color: #3d9970;
275 }
276 }
277
278 .csp-section-links {
279 padding-block: 40px 50px;
280 padding-inline: 0;
281
282 .csp-card {
283 margin-block-start: 20px;
284 justify-content: flex-start;
285 color: black;
286 position: relative;
287 overflow: hidden;
288 row-gap: 10px;
289 padding: 1rem;
290 inline-size: 85%;
291
292 header {
293 flex: 1;
294 }
295
296 figure {
297 margin-block: 1em 0;
298 margin-inline: 0;
299
300 img {
301 border-radius: 5px;
302 inline-size: 100%;
303 block-size: 100%;
304 max-block-size: 300px;
305 overflow: hidden;
306 object-fit: cover;
307 }
308 }
309
310 .csp-card-item-category {
311 color: white;
312 background: theme.$secondary;
313 display: block;
314 font-size: .9rem;
315 letter-spacing: 1px;
316 margin-block: 0;
317 text-transform: uppercase;
318 inline-size: fit-content;
319 padding-block: 5px;
320 padding-inline: 15px;
321 border-radius: 50px;
322 }
323
324 h3 {
325 font-size: 1.7rem;
326 color: theme.$primary;
327 line-height: normal;
328 }
329
330 .csp-card-item-description {
331 color: #51525c;
332 font-size: 1rem;
333 font-weight: 300;
334 }
335
336 footer {
337 display: flex;
338 flex-direction: row;
339 justify-content: space-between;
340 align-items: center;
341 }
342 }
343
344 &.csp-section-partners {
345 border-block-start: 1px solid theme.$outline;
346
347 header {
348 display: flex;
349 flex-direction: row-reverse;
350 justify-content: space-between;
351 align-items: center;
352 }
353 }
354
355 &.csp-section-articles {
356 h2 {
357 font-size: 1.1rem;
358 }
359
360 figure img {
361 aspect-ratio: 1;
362 }
363 }
364 }
365
366 .csp-loading-spinner {
367 block-size: 0;
368 inline-size: 0;
369 padding: 15px;
370 border: 6px solid #e7c0b3;
371 border-inline-end-color: theme.$secondary;
372 border-radius: 22px;
373 animation: loading-rotate 1s infinite linear;
374 position: absolute;
375 inset-inline-start: 47%;
376 inset-block-start: 45%;
377 }
378
379 @keyframes loading-rotate {
380 100% {
381 transform: rotate(calc(360deg * var(--cs-direction-multiplier)));
382 }
383 }
384