pro
3 weeks ago
_acf-headerbar.scss
1 year ago
_acf-icon-picker.scss
1 year ago
_admin-inputs.scss
1 year ago
_admin-toolbar.scss
1 year ago
_btn.scss
1 year ago
_dark.scss
1 year ago
_edit-field-group.scss
1 year ago
_field-group.scss
1 year ago
_field-picker.scss
1 year ago
_field-type-icons.scss
1 year ago
_fields.scss
1 month ago
_forms.scss
11 months ago
_global.scss
1 year ago
_icons.scss
1 year ago
_input.scss
1 year ago
_list-table.scss
1 year ago
_media.scss
1 year ago
_mixins.scss
1 year ago
_post-types-taxonomies.scss
1 year ago
_postbox.scss
1 year ago
_pro-upgrade.scss
1 year ago
_sub-field-groups.scss
1 year ago
_tools.scss
1 year ago
_typography.scss
1 year ago
_updates.scss
1 year ago
_variables.scss
1 year ago
acf-dark.scss
1 year ago
acf-field-group.scss
8 months ago
acf-global.scss
2 months ago
acf-input.scss
1 month ago
_icons.scss
457 lines
| 1 | /*-------------------------------------------------------------------------------------------- |
| 2 | * |
| 3 | * Icon base styling |
| 4 | * |
| 5 | *--------------------------------------------------------------------------------------------*/ |
| 6 | .acf-internal-post-type, |
| 7 | .post-type-acf-field-group { |
| 8 | i.acf-icon { |
| 9 | $icon-size: 20px; |
| 10 | display: inline-flex; |
| 11 | width: $icon-size; |
| 12 | height: $icon-size; |
| 13 | background-color: currentColor; |
| 14 | border: none; |
| 15 | border-radius: 0; |
| 16 | -webkit-mask-size: contain; |
| 17 | mask-size: contain; |
| 18 | -webkit-mask-repeat: no-repeat; |
| 19 | mask-repeat: no-repeat; |
| 20 | -webkit-mask-position: center; |
| 21 | mask-position: center; |
| 22 | text-indent: 500%; |
| 23 | white-space: nowrap; |
| 24 | overflow: hidden; |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | /*-------------------------------------------------------------------------------------------- |
| 29 | * |
| 30 | * Icons |
| 31 | * |
| 32 | *--------------------------------------------------------------------------------------------*/ |
| 33 | .acf-admin-page { |
| 34 | |
| 35 | // Action icons for Flexible Content Field |
| 36 | i.acf-field-setting-fc-delete, i.acf-field-setting-fc-duplicate { |
| 37 | box-sizing: border-box; |
| 38 | |
| 39 | /* Auto layout */ |
| 40 | |
| 41 | display: flex; |
| 42 | flex-direction: row; |
| 43 | justify-content: center; |
| 44 | align-items: center; |
| 45 | padding: 8px; |
| 46 | cursor: pointer; |
| 47 | |
| 48 | width: 32px; |
| 49 | height: 32px; |
| 50 | |
| 51 | /* Base / White */ |
| 52 | |
| 53 | background: #FFFFFF; |
| 54 | /* Gray/300 */ |
| 55 | |
| 56 | border: 1px solid $gray-300; |
| 57 | /* Elevation/01 */ |
| 58 | |
| 59 | box-shadow: $elevation-01; |
| 60 | border-radius: 6px; |
| 61 | |
| 62 | /* Inside auto layout */ |
| 63 | |
| 64 | flex: none; |
| 65 | order: 0; |
| 66 | flex-grow: 0; |
| 67 | } |
| 68 | |
| 69 | i.acf-icon-plus { |
| 70 | -webkit-mask-image: url("../../images/icons/icon-add.svg"); |
| 71 | mask-image: url("../../images/icons/icon-add.svg"); |
| 72 | } |
| 73 | |
| 74 | i.acf-icon-stars { |
| 75 | -webkit-mask-image: url("../../images/icons/icon-stars.svg"); |
| 76 | mask-image: url("../../images/icons/icon-stars.svg"); |
| 77 | } |
| 78 | |
| 79 | i.acf-icon-help { |
| 80 | -webkit-mask-image: url("../../images/icons/icon-help.svg"); |
| 81 | mask-image: url("../../images/icons/icon-help.svg"); |
| 82 | } |
| 83 | |
| 84 | i.acf-icon-key { |
| 85 | -webkit-mask-image: url("../../images/icons/icon-key.svg"); |
| 86 | mask-image: url("../../images/icons/icon-key.svg"); |
| 87 | } |
| 88 | |
| 89 | i.acf-icon-regenerate { |
| 90 | -webkit-mask-image: url("../../images/icons/icon-regenerate.svg"); |
| 91 | mask-image: url("../../images/icons/icon-regenerate.svg"); |
| 92 | } |
| 93 | |
| 94 | i.acf-icon-trash, button.acf-icon-trash { |
| 95 | -webkit-mask-image: url("../../images/icons/icon-trash.svg"); |
| 96 | mask-image: url("../../images/icons/icon-trash.svg"); |
| 97 | } |
| 98 | |
| 99 | i.acf-icon-extended-menu, button.acf-icon-extended-menu { |
| 100 | -webkit-mask-image: url("../../images/icons/icon-extended-menu.svg"); |
| 101 | mask-image: url("../../images/icons/icon-extended-menu.svg"); |
| 102 | } |
| 103 | |
| 104 | i.acf-icon.-duplicate, button.acf-icon-duplicate { |
| 105 | -webkit-mask-image: url("../../images/field-type-icons/icon-field-clone.svg"); |
| 106 | mask-image: url("../../images/field-type-icons/icon-field-clone.svg"); |
| 107 | |
| 108 | &:before, |
| 109 | &:after { |
| 110 | content: none; |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | i.acf-icon-arrow-right { |
| 115 | -webkit-mask-image: url("../../images/icons/icon-arrow-right.svg"); |
| 116 | mask-image: url("../../images/icons/icon-arrow-right.svg"); |
| 117 | } |
| 118 | |
| 119 | i.acf-icon-arrow-up-right { |
| 120 | -webkit-mask-image: url("../../images/icons/icon-arrow-up-right.svg"); |
| 121 | mask-image: url("../../images/icons/icon-arrow-up-right.svg"); |
| 122 | } |
| 123 | |
| 124 | i.acf-icon-arrow-left { |
| 125 | -webkit-mask-image: url("../../images/icons/icon-arrow-left.svg"); |
| 126 | mask-image: url("../../images/icons/icon-arrow-left.svg"); |
| 127 | } |
| 128 | |
| 129 | i.acf-icon-chevron-right, |
| 130 | .acf-icon.-right { |
| 131 | -webkit-mask-image: url("../../images/icons/icon-chevron-right.svg"); |
| 132 | mask-image: url("../../images/icons/icon-chevron-right.svg"); |
| 133 | } |
| 134 | |
| 135 | i.acf-icon-chevron-left, |
| 136 | .acf-icon.-left { |
| 137 | -webkit-mask-image: url("../../images/icons/icon-chevron-left.svg"); |
| 138 | mask-image: url("../../images/icons/icon-chevron-left.svg"); |
| 139 | } |
| 140 | |
| 141 | i.acf-icon-key-solid { |
| 142 | -webkit-mask-image: url("../../images/icons/icon-key-solid.svg"); |
| 143 | mask-image: url("../../images/icons/icon-key-solid.svg"); |
| 144 | } |
| 145 | |
| 146 | i.acf-icon-globe, |
| 147 | .acf-icon.-globe { |
| 148 | -webkit-mask-image: url("../../images/icons/icon-globe.svg"); |
| 149 | mask-image: url("../../images/icons/icon-globe.svg"); |
| 150 | } |
| 151 | |
| 152 | i.acf-icon-image, |
| 153 | .acf-icon.-picture { |
| 154 | -webkit-mask-image: url("../../images/field-type-icons/icon-field-image.svg"); |
| 155 | mask-image: url("../../images/field-type-icons/icon-field-image.svg"); |
| 156 | } |
| 157 | |
| 158 | i.acf-icon-warning { |
| 159 | -webkit-mask-image: url("../../images/icons/icon-warning-alt.svg"); |
| 160 | mask-image: url("../../images/icons/icon-warning-alt.svg"); |
| 161 | } |
| 162 | |
| 163 | i.acf-icon-warning-red { |
| 164 | -webkit-mask-image: url("../../images/icons/icon-warning-alt-red.svg"); |
| 165 | mask-image: url("../../images/icons/icon-warning-alt-red.svg"); |
| 166 | } |
| 167 | |
| 168 | i.acf-icon-dots-grid { |
| 169 | -webkit-mask-image: url("../../images/icons/icon-dots-grid.svg"); |
| 170 | mask-image: url("../../images/icons/icon-dots-grid.svg"); |
| 171 | } |
| 172 | |
| 173 | i.acf-icon-play { |
| 174 | -webkit-mask-image: url("../../images/icons/icon-play.svg"); |
| 175 | mask-image: url("../../images/icons/icon-play.svg"); |
| 176 | } |
| 177 | |
| 178 | i.acf-icon-lock { |
| 179 | -webkit-mask-image: url("../../images/icons/icon-lock.svg"); |
| 180 | mask-image: url("../../images/icons/icon-lock.svg"); |
| 181 | } |
| 182 | |
| 183 | i.acf-icon-document { |
| 184 | -webkit-mask-image: url("../../images/icons/icon-document.svg"); |
| 185 | mask-image: url("../../images/icons/icon-document.svg"); |
| 186 | } |
| 187 | /*-------------------------------------------------------------------------------------------- |
| 188 | * |
| 189 | * Inactive group icon |
| 190 | * |
| 191 | *--------------------------------------------------------------------------------------------*/ |
| 192 | .post-type-acf-field-group, |
| 193 | .acf-internal-post-type { |
| 194 | .post-state { |
| 195 | font-weight: normal; |
| 196 | |
| 197 | .dashicons.dashicons-hidden { |
| 198 | $icon-size: 18px; |
| 199 | display: inline-flex; |
| 200 | width: $icon-size; |
| 201 | height: $icon-size; |
| 202 | background-color: $gray-400; |
| 203 | border: none; |
| 204 | border-radius: 0; |
| 205 | -webkit-mask-size: $icon-size; |
| 206 | mask-size: $icon-size; |
| 207 | -webkit-mask-repeat: no-repeat; |
| 208 | mask-repeat: no-repeat; |
| 209 | -webkit-mask-position: center; |
| 210 | mask-position: center; |
| 211 | -webkit-mask-image: url("../../images/icons/icon-hidden.svg"); |
| 212 | mask-image: url("../../images/icons/icon-hidden.svg"); |
| 213 | |
| 214 | &:before { |
| 215 | display: none; |
| 216 | } |
| 217 | } |
| 218 | } |
| 219 | } |
| 220 | } |
| 221 | |
| 222 | /*-------------------------------------------------------------------------------------------- |
| 223 | * |
| 224 | * Edit field group page postbox header icons |
| 225 | * |
| 226 | *--------------------------------------------------------------------------------------------*/ |
| 227 | #acf-field-group-fields, |
| 228 | #acf-field-group-options, |
| 229 | #acf-advanced-settings { |
| 230 | .postbox-header, |
| 231 | .acf-sub-field-list-header { |
| 232 | h2, |
| 233 | h3 { |
| 234 | display: inline-flex; |
| 235 | justify-content: flex-start; |
| 236 | align-content: stretch; |
| 237 | align-items: center; |
| 238 | |
| 239 | &:before { |
| 240 | content: ""; |
| 241 | $icon-size: 20px; |
| 242 | display: inline-block; |
| 243 | width: $icon-size; |
| 244 | height: $icon-size; |
| 245 | margin: { |
| 246 | right: 8px; |
| 247 | } |
| 248 | background-color: $gray-400; |
| 249 | border: none; |
| 250 | border-radius: 0; |
| 251 | -webkit-mask-size: contain; |
| 252 | mask-size: contain; |
| 253 | -webkit-mask-repeat: no-repeat; |
| 254 | mask-repeat: no-repeat; |
| 255 | -webkit-mask-position: center; |
| 256 | mask-position: center; |
| 257 | } |
| 258 | } |
| 259 | } |
| 260 | } |
| 261 | |
| 262 | .rtl #acf-field-group-fields, |
| 263 | .rtl #acf-field-group-options { |
| 264 | .postbox-header, |
| 265 | .acf-sub-field-list-header { |
| 266 | h2, |
| 267 | h3 { |
| 268 | &:before { |
| 269 | margin: { |
| 270 | right: 0; |
| 271 | left: 8px; |
| 272 | } |
| 273 | } |
| 274 | } |
| 275 | } |
| 276 | } |
| 277 | |
| 278 | // Field icon |
| 279 | #acf-field-group-fields .postbox-header h2:before, |
| 280 | h3.acf-sub-field-list-title:before, |
| 281 | .acf-link-field-groups-popup h3:before { |
| 282 | -webkit-mask-image: url("../../images/icons/icon-fields.svg"); |
| 283 | mask-image: url("../../images/icons/icon-fields.svg"); |
| 284 | } |
| 285 | |
| 286 | // Create options page modal icon |
| 287 | .acf-create-options-page-popup h3:before { |
| 288 | -webkit-mask-image: url("../../images/icons/icon-sliders.svg"); |
| 289 | mask-image: url("../../images/icons/icon-sliders.svg"); |
| 290 | } |
| 291 | |
| 292 | // Settings icon |
| 293 | #acf-field-group-options .postbox-header h2:before { |
| 294 | -webkit-mask-image: url("../../images/icons/icon-settings.svg"); |
| 295 | mask-image: url("../../images/icons/icon-settings.svg"); |
| 296 | } |
| 297 | |
| 298 | // Layout icon |
| 299 | .acf-field-setting-fc_layout .acf-field-settings-fc_head label:before { |
| 300 | -webkit-mask-image: url("../../images/icons/icon-layout.svg"); |
| 301 | mask-image: url("../../images/icons/icon-layout.svg"); |
| 302 | } |
| 303 | |
| 304 | // Advanced post type and taxonomies settings icon |
| 305 | .acf-admin-single-post-type, |
| 306 | .acf-admin-single-taxonomy, |
| 307 | .acf-admin-single-options-page { |
| 308 | |
| 309 | #acf-advanced-settings .postbox-header h2:before { |
| 310 | -webkit-mask-image: url("../../images/icons/icon-post-type.svg"); |
| 311 | mask-image: url("../../images/icons/icon-post-type.svg"); |
| 312 | } |
| 313 | |
| 314 | } |
| 315 | |
| 316 | // Flexible Content reorder |
| 317 | .acf-field-setting-fc_layout .acf-field-settings-fc_head .acf-fc_draggable:hover .reorder-layout:before { |
| 318 | width: 20px; |
| 319 | height: 11px; |
| 320 | background-color: $gray-600 !important; |
| 321 | -webkit-mask-image: url("../../images/icons/icon-draggable.svg"); |
| 322 | mask-image: url("../../images/icons/icon-draggable.svg"); |
| 323 | } |
| 324 | |
| 325 | /*-------------------------------------------------------------------------------------------- |
| 326 | * |
| 327 | * Postbox expand / collapse icon |
| 328 | * |
| 329 | *--------------------------------------------------------------------------------------------*/ |
| 330 | .post-type-acf-field-group, |
| 331 | .post-type-acf-field-group #acf-field-group-fields, |
| 332 | .post-type-acf-field-group #acf-field-group-options, |
| 333 | .post-type-acf-field-group .postbox, |
| 334 | .acf-admin-single-post-type #acf-advanced-settings, |
| 335 | .acf-admin-single-taxonomy #acf-advanced-settings, |
| 336 | .acf-admin-single-options-page #acf-advanced-settings{ |
| 337 | |
| 338 | .postbox-header .handle-actions { |
| 339 | display: flex; |
| 340 | |
| 341 | .toggle-indicator:before { |
| 342 | content: ""; |
| 343 | $icon-size: 20px; |
| 344 | display: inline-flex; |
| 345 | width: $icon-size; |
| 346 | height: $icon-size; |
| 347 | background-color: currentColor; |
| 348 | border: none; |
| 349 | border-radius: 0; |
| 350 | -webkit-mask-size: contain; |
| 351 | mask-size: contain; |
| 352 | -webkit-mask-repeat: no-repeat; |
| 353 | mask-repeat: no-repeat; |
| 354 | -webkit-mask-position: center; |
| 355 | mask-position: center; |
| 356 | -webkit-mask-image: url("../../images/icons/icon-chevron-up.svg"); |
| 357 | mask-image: url("../../images/icons/icon-chevron-up.svg"); |
| 358 | } |
| 359 | } |
| 360 | |
| 361 | // Closed state |
| 362 | &.closed { |
| 363 | .postbox-header .handle-actions { |
| 364 | .toggle-indicator:before { |
| 365 | -webkit-mask-image: url("../../images/icons/icon-chevron-down.svg"); |
| 366 | mask-image: url("../../images/icons/icon-chevron-down.svg"); |
| 367 | } |
| 368 | } |
| 369 | } |
| 370 | } |
| 371 | |
| 372 | /*--------------------------------------------------------------------------------------------- |
| 373 | * |
| 374 | * Tools & updates page heading icons |
| 375 | * |
| 376 | *---------------------------------------------------------------------------------------------*/ |
| 377 | .post-type-acf-field-group { |
| 378 | #acf-admin-tool-export, |
| 379 | #acf-admin-tool-import, |
| 380 | #acf-update-information { |
| 381 | h2, |
| 382 | h3 { |
| 383 | display: inline-flex; |
| 384 | justify-content: flex-start; |
| 385 | align-content: stretch; |
| 386 | align-items: center; |
| 387 | |
| 388 | &:before { |
| 389 | content: ""; |
| 390 | $icon-size: 20px; |
| 391 | display: inline-block; |
| 392 | width: $icon-size; |
| 393 | height: $icon-size; |
| 394 | margin: { |
| 395 | right: 8px; |
| 396 | } |
| 397 | background-color: $gray-400; |
| 398 | border: none; |
| 399 | border-radius: 0; |
| 400 | -webkit-mask-size: contain; |
| 401 | mask-size: contain; |
| 402 | -webkit-mask-repeat: no-repeat; |
| 403 | mask-repeat: no-repeat; |
| 404 | -webkit-mask-position: center; |
| 405 | mask-position: center; |
| 406 | } |
| 407 | } |
| 408 | } |
| 409 | |
| 410 | &.rtl { |
| 411 | #acf-admin-tool-export, |
| 412 | #acf-admin-tool-import, |
| 413 | #acf-update-information { |
| 414 | h2, |
| 415 | h3 { |
| 416 | &:before { |
| 417 | margin: { |
| 418 | right: 0; |
| 419 | left: 8px; |
| 420 | } |
| 421 | } |
| 422 | } |
| 423 | } |
| 424 | } |
| 425 | } |
| 426 | |
| 427 | // Export icon |
| 428 | .post-type-acf-field-group #acf-admin-tool-export h2:before { |
| 429 | -webkit-mask-image: url("../../images/icons/icon-export.svg"); |
| 430 | mask-image: url("../../images/icons/icon-export.svg"); |
| 431 | } |
| 432 | |
| 433 | // Import icon |
| 434 | .post-type-acf-field-group #acf-admin-tool-import h2:before { |
| 435 | -webkit-mask-image: url("../../images/icons/icon-import.svg"); |
| 436 | mask-image: url("../../images/icons/icon-import.svg"); |
| 437 | } |
| 438 | |
| 439 | // Update information icon |
| 440 | .post-type-acf-field-group #acf-update-information h3:before { |
| 441 | -webkit-mask-image: url("../../images/icons/icon-info.svg"); |
| 442 | mask-image: url("../../images/icons/icon-info.svg"); |
| 443 | } |
| 444 | |
| 445 | /*-------------------------------------------------------------------------------------------- |
| 446 | * |
| 447 | * Admin field icons |
| 448 | * |
| 449 | *--------------------------------------------------------------------------------------------*/ |
| 450 | .acf-admin-single-field-group .acf-input { |
| 451 | .acf-icon { |
| 452 | $icon-size: 18px; |
| 453 | width: $icon-size; |
| 454 | height: $icon-size; |
| 455 | } |
| 456 | } |
| 457 |