pro
2 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
7 months ago
acf-global.scss
2 months ago
acf-input.scss
1 month ago
_dark.scss
437 lines
| 1 | /*-------------------------------------------------------------------------------------------- |
| 2 | * |
| 3 | * Dark mode |
| 4 | * |
| 5 | * WordPress plugin: https://en-au.wordpress.org/plugins/dark-mode/ |
| 6 | * Github Documentation: https://github.com/danieltj27/Dark-Mode/wiki/Help:-Plugin-Compatibility-Guide |
| 7 | * |
| 8 | *--------------------------------------------------------------------------------------------*/ |
| 9 | |
| 10 | // Dark Mode Colours. |
| 11 | $white: #ffffff; |
| 12 | $black: #000000; |
| 13 | $blue: #0073aa; |
| 14 | $medium-blue: #00a0d2; |
| 15 | $clear: transparent; |
| 16 | |
| 17 | $accent-red: #dc3232; |
| 18 | $accent-orange: #f56e28; |
| 19 | $accent-yellow: #ffb900; |
| 20 | $accent-green: #46b450; |
| 21 | $accent-blue: $blue; |
| 22 | $accent-purple: #826eb4; |
| 23 | |
| 24 | $base-grey: #23282d; |
| 25 | $light-grey: #bbc8d4; |
| 26 | $heavy-grey: #37444c; |
| 27 | $dark-grey: #32373c; |
| 28 | $ultra-grey: #191f25; |
| 29 | $dark-silver: #50626f; |
| 30 | $base-blue: #2e74aa; |
| 31 | $light-blue: #4092d2; |
| 32 | $dark-blue: #2c5f88; |
| 33 | $ultra-blue: #1f3f58; |
| 34 | $bright-blue: #30ceff; |
| 35 | |
| 36 | $editor-lavender: #c678dd; |
| 37 | $editor-sunglo: #e06c75; |
| 38 | $editor-olivine: #98c379; |
| 39 | |
| 40 | // Custom variables. |
| 41 | $body_text: #bbc8d4; |
| 42 | $body_background: #23282d; |
| 43 | $body_background2: #191f25; |
| 44 | $postbox_background: #32373c; |
| 45 | $postbox_border: #191f25; |
| 46 | $postbox_divider: #23282d; |
| 47 | $input_background: #50626f; |
| 48 | $input_text: #fff; |
| 49 | $input_border: #191f25; |
| 50 | |
| 51 | // Mixins. |
| 52 | @mixin dark-text() { |
| 53 | color: $body_text; |
| 54 | } |
| 55 | @mixin dark-heading() { |
| 56 | color: $body_text; |
| 57 | } |
| 58 | @mixin dark-border() { |
| 59 | border-color: $postbox_border; |
| 60 | } |
| 61 | @mixin dark-background() { |
| 62 | background: $body_background; |
| 63 | } |
| 64 | @mixin darker-background() { |
| 65 | background: darken($body_background, 5%); |
| 66 | } |
| 67 | @mixin dark-postbox() { |
| 68 | background-color: $postbox_background; |
| 69 | border-color: $postbox_border; |
| 70 | color: $body_text; |
| 71 | } |
| 72 | @mixin dark-postbox-block() { |
| 73 | background-color: #2d3136; |
| 74 | border-color: $postbox_divider; |
| 75 | } |
| 76 | @mixin dark-divider() { |
| 77 | border-color: $postbox_divider; |
| 78 | } |
| 79 | @mixin dark-input() { |
| 80 | background-color: $input_background; |
| 81 | border-color: $input_border; |
| 82 | color: $input_text; |
| 83 | } |
| 84 | |
| 85 | |
| 86 | /*--------------------------------------------------------------------------------------------- |
| 87 | * |
| 88 | * Global |
| 89 | * |
| 90 | *---------------------------------------------------------------------------------------------*/ |
| 91 | |
| 92 | // acf-box |
| 93 | .acf-box { |
| 94 | @include dark-postbox(); |
| 95 | |
| 96 | .title, |
| 97 | .footer { |
| 98 | @include dark-divider(); |
| 99 | } |
| 100 | |
| 101 | h2 { |
| 102 | @include dark-heading(); |
| 103 | } |
| 104 | |
| 105 | table, tbody, tr { |
| 106 | background: transparent !important; |
| 107 | } |
| 108 | } |
| 109 | |
| 110 | // thead |
| 111 | .acf-thead { |
| 112 | @include dark-heading(); |
| 113 | @include dark-border(); |
| 114 | } |
| 115 | .acf-tfoot { |
| 116 | @include dark-postbox-block(); |
| 117 | } |
| 118 | |
| 119 | // table clear |
| 120 | .acf-table.-clear, |
| 121 | .acf-table.-clear tr { |
| 122 | background: transparent !important; |
| 123 | } |
| 124 | |
| 125 | // loading overlay |
| 126 | .acf-loading-overlay { |
| 127 | background: rgba(0,0,0,0.5); |
| 128 | } |
| 129 | |
| 130 | |
| 131 | /*--------------------------------------------------------------------------------------------- |
| 132 | * |
| 133 | * Fields |
| 134 | * |
| 135 | *---------------------------------------------------------------------------------------------*/ |
| 136 | |
| 137 | // fields |
| 138 | .acf-fields { |
| 139 | |
| 140 | // field |
| 141 | > .acf-field { |
| 142 | @include dark-divider(); |
| 143 | } |
| 144 | } |
| 145 | |
| 146 | // fields (left) |
| 147 | .acf-fields.-left { |
| 148 | |
| 149 | > .acf-field { |
| 150 | &:before { |
| 151 | background: rgba(0,0,0,0.1); |
| 152 | @include dark-divider(); |
| 153 | } |
| 154 | } |
| 155 | } |
| 156 | |
| 157 | // fields (border) |
| 158 | .acf-fields.-border { |
| 159 | @include dark-postbox(); |
| 160 | } |
| 161 | |
| 162 | // width |
| 163 | .acf-field[data-width]] + .acf-field[data-width]] { |
| 164 | @include dark-divider(); |
| 165 | } |
| 166 | |
| 167 | // text |
| 168 | .acf-input-prepend, |
| 169 | .acf-input-append { |
| 170 | @include dark-postbox(); |
| 171 | } |
| 172 | |
| 173 | // tab |
| 174 | .acf-tab-wrap { |
| 175 | |
| 176 | } |
| 177 | |
| 178 | .acf-fields > .acf-tab-wrap { |
| 179 | @include dark-postbox(); |
| 180 | |
| 181 | .acf-tab-group { |
| 182 | @include dark-postbox-block(); |
| 183 | |
| 184 | li { |
| 185 | a { |
| 186 | @include dark-postbox-block(); |
| 187 | |
| 188 | &:hover { |
| 189 | @include dark-postbox-block(); |
| 190 | @include dark-text(); |
| 191 | } |
| 192 | } |
| 193 | |
| 194 | &.active a { |
| 195 | @include dark-postbox(); |
| 196 | } |
| 197 | } |
| 198 | } |
| 199 | } |
| 200 | |
| 201 | .acf-fields.-sidebar { |
| 202 | &:before { |
| 203 | @include dark-postbox-block(); |
| 204 | } |
| 205 | } |
| 206 | |
| 207 | .acf-fields.-sidebar.-left { |
| 208 | &:before { |
| 209 | @include dark-postbox-block(); |
| 210 | background: $body_background; |
| 211 | } |
| 212 | > .acf-tab-wrap.-left { |
| 213 | .acf-tab-group li a { |
| 214 | @include dark-postbox-block(); |
| 215 | } |
| 216 | |
| 217 | .acf-tab-group li.active a { |
| 218 | @include dark-postbox-block(); |
| 219 | } |
| 220 | } |
| 221 | } |
| 222 | |
| 223 | // file |
| 224 | .acf-file-uploader { |
| 225 | |
| 226 | .show-if-value { |
| 227 | @include dark-postbox(); |
| 228 | |
| 229 | .file-icon { |
| 230 | @include dark-postbox-block(); |
| 231 | } |
| 232 | } |
| 233 | } |
| 234 | |
| 235 | // acf-oembed |
| 236 | .acf-oembed { |
| 237 | @include dark-postbox-block(); |
| 238 | |
| 239 | .title { |
| 240 | @include dark-input(); |
| 241 | } |
| 242 | } |
| 243 | |
| 244 | // gallery |
| 245 | .acf-gallery { |
| 246 | @include dark-postbox-block(); |
| 247 | |
| 248 | .acf-gallery-main { |
| 249 | @include dark-background(); |
| 250 | } |
| 251 | |
| 252 | .acf-gallery-attachment { |
| 253 | .margin { |
| 254 | @include dark-postbox-block(); |
| 255 | } |
| 256 | } |
| 257 | |
| 258 | .acf-gallery-side { |
| 259 | @include dark-postbox-block(); |
| 260 | |
| 261 | .acf-gallery-side-info { |
| 262 | @include dark-postbox-block(); |
| 263 | } |
| 264 | } |
| 265 | |
| 266 | .acf-gallery-toolbar { |
| 267 | @include dark-postbox-block(); |
| 268 | } |
| 269 | } |
| 270 | |
| 271 | // button group |
| 272 | .acf-button-group { |
| 273 | |
| 274 | label:not(.selected) { |
| 275 | @include dark-postbox-block(); |
| 276 | } |
| 277 | } |
| 278 | |
| 279 | // switch |
| 280 | .acf-switch:not(.-on) { |
| 281 | @include dark-postbox-block(); |
| 282 | .acf-switch-slider { |
| 283 | @include dark-input(); |
| 284 | } |
| 285 | } |
| 286 | |
| 287 | // link |
| 288 | .acf-link .link-wrap { |
| 289 | @include dark-postbox-block(); |
| 290 | } |
| 291 | |
| 292 | // relationship |
| 293 | .acf-relationship { |
| 294 | .filters { |
| 295 | @include dark-postbox(); |
| 296 | } |
| 297 | .selection { |
| 298 | @include dark-postbox-block(); |
| 299 | .choices, |
| 300 | .choices-list, |
| 301 | .values { |
| 302 | @include dark-postbox-block(); |
| 303 | } |
| 304 | } |
| 305 | } |
| 306 | |
| 307 | // checkbox |
| 308 | .acf-taxonomy-field .categorychecklist-holder { |
| 309 | @include dark-postbox-block(); |
| 310 | } |
| 311 | |
| 312 | // google map |
| 313 | .acf-google-map { |
| 314 | @include dark-postbox-block(); |
| 315 | |
| 316 | .title { |
| 317 | @include dark-input(); |
| 318 | } |
| 319 | } |
| 320 | |
| 321 | // accordion |
| 322 | .acf-accordion { |
| 323 | @include dark-postbox(); |
| 324 | } |
| 325 | .acf-field.acf-accordion .acf-accordion-content > .acf-fields { |
| 326 | @include dark-border(); |
| 327 | } |
| 328 | |
| 329 | // flexible content |
| 330 | .acf-flexible-content { |
| 331 | .layout { |
| 332 | @include dark-postbox(); |
| 333 | |
| 334 | .acf-fc-layout-handle { |
| 335 | @include dark-postbox-block(); |
| 336 | |
| 337 | .acf-fc-layout-order { |
| 338 | @include dark-postbox(); |
| 339 | } |
| 340 | } |
| 341 | } |
| 342 | } |
| 343 | |
| 344 | // repeater |
| 345 | #wpbody .acf-table { |
| 346 | @include dark-postbox-block(); |
| 347 | |
| 348 | > tbody, |
| 349 | > thead { |
| 350 | > tr { |
| 351 | background: transparent; |
| 352 | |
| 353 | > td, |
| 354 | > th { |
| 355 | @include dark-border(); |
| 356 | } |
| 357 | } |
| 358 | } |
| 359 | } |
| 360 | |
| 361 | // Select |
| 362 | .acf-field select { |
| 363 | optgroup, optgroup:nth-child(2n) { |
| 364 | background: $input_background; |
| 365 | } |
| 366 | } |
| 367 | |
| 368 | /*--------------------------------------------------------------------------------------------- |
| 369 | * |
| 370 | * Field Group |
| 371 | * |
| 372 | *---------------------------------------------------------------------------------------------*/ |
| 373 | |
| 374 | // fields |
| 375 | #acf-field-group-fields { |
| 376 | |
| 377 | // field list |
| 378 | .acf-field-list-wrap { |
| 379 | @include dark-postbox(); |
| 380 | } |
| 381 | |
| 382 | .acf-field-list { |
| 383 | .no-fields-message { |
| 384 | @include dark-postbox(); |
| 385 | } |
| 386 | } |
| 387 | |
| 388 | // field |
| 389 | .acf-field-object { |
| 390 | @include dark-postbox(); |
| 391 | @include dark-divider(); |
| 392 | |
| 393 | |
| 394 | table, tbody, tr, td, th { |
| 395 | background: transparent; |
| 396 | @include dark-divider(); |
| 397 | } |
| 398 | |
| 399 | .acf-field { |
| 400 | .acf-label { |
| 401 | @include dark-postbox-block(); |
| 402 | } |
| 403 | } |
| 404 | |
| 405 | // sortable |
| 406 | &.ui-sortable-helper { |
| 407 | @include dark-border(); |
| 408 | box-shadow: none; |
| 409 | } |
| 410 | |
| 411 | &.ui-sortable-placeholder { |
| 412 | @include dark-postbox-block(); |
| 413 | box-shadow: none; |
| 414 | } |
| 415 | } |
| 416 | |
| 417 | .acf-field-object + .acf-field-object-tab::before, |
| 418 | .acf-field-object + .acf-field-object-accordion::before { |
| 419 | @include dark-postbox-block(); |
| 420 | } |
| 421 | } |
| 422 | |
| 423 | |
| 424 | /*--------------------------------------------------------------------------------------------- |
| 425 | * |
| 426 | * Admin: Tools |
| 427 | * |
| 428 | *---------------------------------------------------------------------------------------------*/ |
| 429 | |
| 430 | // tools |
| 431 | .acf-meta-box-wrap { |
| 432 | |
| 433 | .acf-fields { |
| 434 | @include dark-input(); |
| 435 | background: transparent; |
| 436 | } |
| 437 | } |