| 1 |
@use 'common/theme'; |
| 2 |
@use 'common/badges'; |
| 3 |
@use 'common/toolbar'; |
| 4 |
@use 'common/wp-admin'; |
| 5 |
@use 'common/page-header'; |
| 6 |
|
| 7 |
#code-snippets-welcome-container { |
| 8 |
margin-block-start: 0; |
| 9 |
} |
| 10 |
|
| 11 |
.code-snippets-updates { |
| 12 |
display: flex; |
| 13 |
flex-direction: row; |
| 14 |
gap: 20px; |
| 15 |
|
| 16 |
> * { |
| 17 |
background: var(--cs-color-surface); |
| 18 |
border: 1px solid var(--cs-color-border-subtle); |
| 19 |
border-radius: var(--cs-card-radius); |
| 20 |
padding: 32px; |
| 21 |
} |
| 22 |
|
| 23 |
.code-snippets-header-wrapper { |
| 24 |
display: flex; |
| 25 |
flex-flow: row; |
| 26 |
justify-content: space-between; |
| 27 |
align-items: center; |
| 28 |
border-block-end: 1px solid var(--cs-color-border-subtle); |
| 29 |
margin-block-end: 20px; |
| 30 |
padding-block-end: 20px; |
| 31 |
} |
| 32 |
|
| 33 |
h2 { |
| 34 |
font-size: 18px; |
| 35 |
margin: 0; |
| 36 |
} |
| 37 |
|
| 38 |
@media (width <= 960px) { |
| 39 |
flex-direction: column; |
| 40 |
} |
| 41 |
} |
| 42 |
|
| 43 |
.code-snippets-hero { |
| 44 |
display: flex; |
| 45 |
flex-flow: column; |
| 46 |
border: 1px solid var(--cs-color-border-subtle); |
| 47 |
|
| 48 |
figure { |
| 49 |
margin: 1em 0 0; |
| 50 |
overflow: hidden; |
| 51 |
border-radius: var(--cs-card-radius); |
| 52 |
position: relative; |
| 53 |
block-size: auto; |
| 54 |
background: var(--cs-color-surface-muted); |
| 55 |
flex: 1; |
| 56 |
text-align: center; |
| 57 |
|
| 58 |
img { |
| 59 |
inline-size: 100%; |
| 60 |
block-size: 100%; |
| 61 |
overflow: hidden; |
| 62 |
object-fit: cover; |
| 63 |
} |
| 64 |
} |
| 65 |
} |
| 66 |
|
| 67 |
.code-snippets-partners, |
| 68 |
.code-snippets-articles { |
| 69 |
display: flex; |
| 70 |
flex-direction: row; |
| 71 |
gap: 16px; |
| 72 |
margin: 0; |
| 73 |
|
| 74 |
figure { |
| 75 |
margin: 0; |
| 76 |
padding: 0; |
| 77 |
|
| 78 |
img { |
| 79 |
inline-size: 100%; |
| 80 |
block-size: 220px; |
| 81 |
overflow: hidden; |
| 82 |
object-fit: cover; |
| 83 |
} |
| 84 |
} |
| 85 |
} |
| 86 |
|
| 87 |
.code-snippets-card { |
| 88 |
flex: 1; |
| 89 |
background: var(--cs-color-surface); |
| 90 |
border: 1px solid var(--cs-color-border-subtle); |
| 91 |
border-radius: var(--cs-card-radius); |
| 92 |
display: flex; |
| 93 |
margin: 0; |
| 94 |
flex-flow: column; |
| 95 |
color: var(--cs-color-text); |
| 96 |
|
| 97 |
figure img { |
| 98 |
border-start-start-radius: var(--cs-card-radius); |
| 99 |
border-start-end-radius: var(--cs-card-radius); |
| 100 |
} |
| 101 |
} |
| 102 |
|
| 103 |
.code-snippets-partners { |
| 104 |
.code-snippets-header-wrapper { |
| 105 |
display: flex; |
| 106 |
flex-direction: row; |
| 107 |
justify-content: space-between; |
| 108 |
align-items: center; |
| 109 |
padding: 24px; |
| 110 |
} |
| 111 |
} |
| 112 |
|
| 113 |
.code-snippets-articles { |
| 114 |
.code-snippets-header-wrapper { |
| 115 |
display: flex; |
| 116 |
flex-direction: column; |
| 117 |
align-items: flex-start; |
| 118 |
padding: 24px; |
| 119 |
gap: 14px; |
| 120 |
block-size: 100%; |
| 121 |
} |
| 122 |
|
| 123 |
.button { |
| 124 |
margin-block-start: auto; |
| 125 |
} |
| 126 |
|
| 127 |
h3 { |
| 128 |
font-size: 18px; |
| 129 |
margin: 0; |
| 130 |
} |
| 131 |
|
| 132 |
p { |
| 133 |
margin: 0; |
| 134 |
} |
| 135 |
|
| 136 |
.item-category { |
| 137 |
color: #fff; |
| 138 |
background: color-mix(in srgb, var(--cs-color-secondary) 85%, #000 15%); |
| 139 |
display: block; |
| 140 |
font-size: 12px; |
| 141 |
letter-spacing: 1px; |
| 142 |
margin-block: 0; |
| 143 |
text-transform: uppercase; |
| 144 |
inline-size: fit-content; |
| 145 |
padding: 3px 10px; |
| 146 |
border-radius: 5px; |
| 147 |
font-weight: bold; |
| 148 |
} |
| 149 |
} |
| 150 |
|
| 151 |
.code-snippets-changelog-entries { |
| 152 |
font-size: 0.9rem; |
| 153 |
line-height: 1.5; |
| 154 |
overflow-y: scroll; |
| 155 |
max-block-size: 500px; |
| 156 |
color: var(--cs-color-text); |
| 157 |
padding-inline-end: 1em; |
| 158 |
|
| 159 |
h3 { |
| 160 |
font-size: 16px; |
| 161 |
display: flex; |
| 162 |
|
| 163 |
&:not(:first-of-type) { |
| 164 |
margin-block-start: 100px; |
| 165 |
} |
| 166 |
|
| 167 |
span { |
| 168 |
font-size: 14px; |
| 169 |
font-weight: normal; |
| 170 |
margin-inline-start: auto; |
| 171 |
} |
| 172 |
} |
| 173 |
|
| 174 |
h4 { |
| 175 |
font-size: 14px; |
| 176 |
margin: 1em 0; |
| 177 |
} |
| 178 |
|
| 179 |
ul { |
| 180 |
margin-block-start: 5px; |
| 181 |
} |
| 182 |
|
| 183 |
li { |
| 184 |
display: grid; |
| 185 |
grid-template-columns: 40px 1fr; |
| 186 |
grid-template-rows: 1fr; |
| 187 |
align-items: baseline; |
| 188 |
gap: 10px; |
| 189 |
} |
| 190 |
|
| 191 |
.dashicons-lightbulb { |
| 192 |
color: #f1c40f; |
| 193 |
} |
| 194 |
|
| 195 |
.dashicons-chart-line { |
| 196 |
color: #85144b; |
| 197 |
} |
| 198 |
|
| 199 |
.dashicons-buddicons-replies { |
| 200 |
color: #3d9970; |
| 201 |
} |
| 202 |
|
| 203 |
.dashicons-remove { |
| 204 |
color: #ffbf00; |
| 205 |
} |
| 206 |
|
| 207 |
.dashicons-trash { |
| 208 |
color: #c0c0c0; |
| 209 |
} |
| 210 |
|
| 211 |
.dashicons-shield { |
| 212 |
color: #0074d9; |
| 213 |
} |
| 214 |
|
| 215 |
.dashicons-open-folder { |
| 216 |
color: #5d2f27; |
| 217 |
} |
| 218 |
} |
| 219 |
|
| 220 |
.code-snippets-loading-spinner { |
| 221 |
block-size: 0; |
| 222 |
inline-size: 0; |
| 223 |
padding: 15px; |
| 224 |
border: 6px solid #e7c0b3; |
| 225 |
border-inline-end-color: var(--cs-color-secondary); |
| 226 |
border-radius: 50%; |
| 227 |
animation: loading-rotate 1s infinite linear; |
| 228 |
position: absolute; |
| 229 |
inset-inline-start: 47%; |
| 230 |
inset-block-start: 45%; |
| 231 |
|
| 232 |
@media (prefers-reduced-motion: reduce) { |
| 233 |
animation: none; |
| 234 |
} |
| 235 |
} |
| 236 |
|
| 237 |
.csp-welcome-header nav { |
| 238 |
column-gap: 15px; |
| 239 |
|
| 240 |
ul { |
| 241 |
display: flex; |
| 242 |
flex-flow: row wrap; |
| 243 |
justify-content: space-evenly; |
| 244 |
gap: 5px; |
| 245 |
margin: 0; |
| 246 |
} |
| 247 |
} |
| 248 |
|
| 249 |
@keyframes loading-rotate { |
| 250 |
100% { |
| 251 |
transform: rotate(calc(360deg * var(--cs-direction-multiplier))); |
| 252 |
} |
| 253 |
} |
| 254 |
|