Skip to content

Commit

Permalink
Merge pull request #410 from yalesites-org/yalb-1552
Browse files Browse the repository at this point in the history
YALB-1552: [admin-theme] Update specific checkbox styles for admin-theme areas
  • Loading branch information
joetower authored Sep 7, 2023
2 parents 693b5ac + 84b7ab1 commit c8a2d7e
Show file tree
Hide file tree
Showing 6 changed files with 184 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,3 @@
justify-content: flex-end;
border-top: none;
}

.ys-alert-settings .js-form-type-checkbox {
background-color: var(--darkest-gray);
}
4 changes: 2 additions & 2 deletions web/themes/custom/ys_admin_theme/css/gin-color-overrides.css

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

90 changes: 89 additions & 1 deletion 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 All @@ -43,7 +43,7 @@
--gin-color-button-text: var(--dark-theme-gray-hover);
--gin-color-button-text-hover: var(--dark-theme-gray-hover);
--gin-border-color-layer2: #A8A8A8 !important;
--gin-pattern-fallback: var(--wool);
--gin-pattern-fallback: var(--light-gray);
--dropbutton-extrasmall-toggle-size: 1.5rem;
}
}
Expand Down
91 changes: 90 additions & 1 deletion web/themes/custom/ys_admin_theme/scss/gin-custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,16 @@
color: var(--wool) !important;
}

/* Secondary buttons */
.gin--dark-mode .form-actions .button {
color: var(--gin-color-primary);
background-color: var(--darkest-gray);
}

.gin--dark-mode .form-actions .button:focus {
background-color: var(--wool);
}

/* icons */
.action-link:hover::before {
background: var(--robin-egg) !important;
Expand All @@ -181,12 +191,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(--light-gray) !important;
}

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


/* checkbox spacing */
.gin--dark-mode .js-form-type-checkbox.form-type--checkbox {
padding: 0.5rem;
Expand Down Expand Up @@ -293,6 +313,22 @@
background-color: var(--wool);
}

.gin--dark-mode[dir="ltr"] .media-library-item img {
background-image: unset !important;
}

.gin--dark-mode .media-library-item .form-item {
border: 2px solid var(--darkest-gray);
padding: 0;
border-radius: 0.25rem;
}

.gin--dark-mode .media-library-item .media-library-item__remove:link,
.gin--dark-mode .media-library-item .media-library-item__remove:not(:hover):not(:checked),
.gin--dark-mode .media-library-item .media-library-item__edit:not(:hover):not(:checked) {
border-color: var(--darkest-gray) !important;
}

/* Embed component */
.gin--dark-mode .ui-dialog .ui-widget-content.ui-dialog-content h2 {
color: var(--wool);
Expand Down Expand Up @@ -321,4 +357,57 @@
background: var(--gin-color-danger) !important;
}

/* Legend */
.gin--dark-mode legend {
display: block;
margin: 0;
border: 0;
padding: 0;
width: 100%;
float: none;
}

.gin--dark-mode .fieldset-legend.fieldset__label,
.gin--dark-mode .fieldset__legend.fieldset__legend--visible .fieldset__label {
display: block;
color: var(--darkest-gray) !important;
background-color: var(--wool);
border-top-left-radius: 0.5rem;
border-top-right-radius: 0.5rem;
padding-top: 0.5rem;
padding-bottom: 0.5rem;
border: 0.15rem solid var(--gin-border-color);
margin-left: -0.15rem;
margin-right: -0.15rem;
}

.gin--dark-mode .fieldset__label.fieldset__label--group {
padding-left: 1.5rem;
padding-right: 1.5rem;
}

.gin--dark-mode #edit-footer-logos .fieldset-wrapper {
padding: 1rem;
}

.gin--dark-mode #edit-footer-logos fieldset + .form-item {
margin-top: 1rem;
}

.gin--dark-mode fieldset > legend + .fieldset-wrapper {
padding: 1rem;
}

/* Messages */
.gin--dark-mode .messages,
.gin--dark-mode .glb-messages {
outline: 0.15rem solid var(--wool);
}

/* Radios */
.gin--dark-mode .form-type--radio .form-radio {
border: 1px solid var(--wool);
background-color: var(--darkest-gray);
}

/* stylelint-enable */

0 comments on commit c8a2d7e

Please sign in to comment.