Skip to content

Commit

Permalink
fix(yalb-1552): update checkbox toggle styles for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
joetower committed Sep 6, 2023
1 parent 4368aab commit fe8233a
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 16 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 10 additions & 7 deletions web/themes/custom/ys_admin_theme/css/gin-custom.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion web/themes/custom/ys_admin_theme/css/gin-custom.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
--gin-bg-input: var(--darkest-gray) !important;
--gin-border-color: var(--wool) !important;
--gin-border-color-table-header: var(--darkest-gray) !important;
--gin-border-color-form-element: var(--light-gray) !important;
--gin-border-color-form-element: var(--darkest-gray) !important;
--gin-bg-app: var(--darkest-gray);
--gin-bg-layer3: var(--dark-theme-gray-hover);
--colorGinText: var(--darkest-gray);
Expand Down
16 changes: 10 additions & 6 deletions web/themes/custom/ys_admin_theme/scss/gin-custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,21 @@
opacity: 0.8;
}

/* checkboxes */
.gin--dark-mode :not(.glb-form-checkboxes):not(td):not(.media-library-item__click-to-select-checkbox):not(.field-content) > .glb-form-checkbox:checked + .glb-checkbox-toggle {
background-color: var(--robin-egg) !important;
}

.gin--dark-mode :not(.form-checkboxes):not(td):not(.tabledrag-cell-content__item):not(.media-library-item__click-to-select-checkbox):not(.field-content) > .form-type--checkbox .checkbox-toggle__inner::before {
background-color: var(--dark-theme-gray) !important;
}

.gin--dark-mode :not(.form-checkboxes):not(td):not(.tabledrag-cell-content__item):not(.media-library-item__click-to-select-checkbox):not(.field-content) > .form-type--checkbox input:checked ~ .checkbox-toggle .checkbox-toggle__inner::before {
background-color: var(--darkest-gray) !important;
}

.gin--dark-mode .form-boolean--type-checkbox:not(:checked) + .checkbox-toggle .checkbox-toggle__inner {
background-color: var(--dark-theme-gray) !important;
background-color: var(--wool) !important;
}

.gin--dark-mode table th {
Expand All @@ -197,11 +206,6 @@
background: var(--dark-theme-gray);
}

.gin--dark-mode [data-drupal-selector^="views-ui-config-item-form-"] .js-form-type-checkbox,
.gin--dark-mode .js-form-item-required,
.gin--dark-mode .js-form-item-cas-enabled {
background-color: var(--darkest-gray);
}

/* checkbox spacing */
.gin--dark-mode .js-form-type-checkbox.form-type--checkbox {
Expand Down

0 comments on commit fe8233a

Please sign in to comment.