PluginProbe
Code Snippets / 3.6.6
Code Snippets v3.6.6
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.6.6, at css/welcome.scss

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