From 58437a585597613cd2ae790bc15a5b7848528209 Mon Sep 17 00:00:00 2001 From: Joe Tower Date: Wed, 6 Sep 2023 14:54:12 -0500 Subject: [PATCH] fix(yalb-1552): update media grid pattern-fallback color var --- .../css/gin-color-overrides.css | 2 +- .../custom/ys_admin_theme/css/gin-custom.css | 21 +++++++++++++++++-- .../ys_admin_theme/css/gin-custom.css.map | 2 +- .../scss/gin-color-overrides.scss | 2 +- .../ys_admin_theme/scss/gin-custom.scss | 21 +++++++++++++++++-- 5 files changed, 41 insertions(+), 7 deletions(-) diff --git a/web/themes/custom/ys_admin_theme/css/gin-color-overrides.css b/web/themes/custom/ys_admin_theme/css/gin-color-overrides.css index 4953a49923..929b7ca336 100644 --- a/web/themes/custom/ys_admin_theme/css/gin-color-overrides.css +++ b/web/themes/custom/ys_admin_theme/css/gin-color-overrides.css @@ -42,7 +42,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; } diff --git a/web/themes/custom/ys_admin_theme/css/gin-custom.css b/web/themes/custom/ys_admin_theme/css/gin-custom.css index 343944ee60..26c67e5945 100644 --- a/web/themes/custom/ys_admin_theme/css/gin-custom.css +++ b/web/themes/custom/ys_admin_theme/css/gin-custom.css @@ -296,6 +296,10 @@ background-color: var(--wool); } +.gin--dark-mode[dir=ltr] .media-library-item img { + background-image: unset !important; +} + /* Embed component */ .gin--dark-mode .ui-dialog .ui-widget-content.ui-dialog-content h2 { color: var(--wool); @@ -331,11 +335,13 @@ border: 0; padding: 0; width: 100%; + float: none; } -.gin--dark-mode .fieldset-legend.fieldset__label { +.gin--dark-mode .fieldset-legend.fieldset__label, +.gin--dark-mode .fieldset__legend.fieldset__legend--visible .fieldset__label { display: block; - color: var(--darkest-gray); + color: var(--darkest-gray) !important; background-color: var(--wool); border-top-left-radius: 0.5rem; border-top-right-radius: 0.5rem; @@ -346,6 +352,11 @@ 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; } @@ -364,6 +375,12 @@ 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 */ /*# sourceMappingURL=gin-custom.css.map */ diff --git a/web/themes/custom/ys_admin_theme/css/gin-custom.css.map b/web/themes/custom/ys_admin_theme/css/gin-custom.css.map index 2f751eb06c..f952e4c48e 100644 --- a/web/themes/custom/ys_admin_theme/css/gin-custom.css.map +++ b/web/themes/custom/ys_admin_theme/css/gin-custom.css.map @@ -1 +1 @@ -{"version":3,"sourceRoot":"","sources":["../scss/gin-custom.scss"],"names":[],"mappings":"AAAA;AAEA;EACE;EACA;EACA;EACA;EACA;;AAEA;AAAA;EAEE;;;AAIJ;EACE;EACA;;;AAIF;EACE;;;AAIF;EACE;;;AAGF;EACE;;;AAIF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAQE;;;AAIF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAqCE;;;AAGF;AACA;AAAA;EAEE;;;AAGF;AACA;AAAA;EAEE;;;AAGF;EACE;EACA;EACA;EACA;;;AAGF;EACE;EACA;;;AAIF;AAAA;EAEE;;;AAIF;EACE;;;AAIF;EACE;;;AAMF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAUE;;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAUE;EACA;;;AAGF;EACE;;;AAGF;AAAA;EAEE;EACA;;;AAGF;AACA;EACE;EACA;;;AAGF;EACE;;;AAGF;AACA;EACE;;;AAGF;AACA;AAAA;EAEE;;;AAGF;EACE;EACA;;;AAGF;AACA;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAIF;AACA;EACE;;;AAGF;AACA;EACE;EACA;;;AAGF;EACE;;;AAGF;AACA;EACE;EACA;;;AAKF;EACE;;;AAGF;EACE;EACA;;;AAIF;EACE;;;AAGF;AACA;EACE;;;AAGF;EACE;;;AAGF;AAAA;EAEE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;;;AAEF;EACE;EACA;;;AAKF;AAAA;EAEE;EACA;EACA;;;AAGF;AACA;EACE;;;AAGF;AACA;EACE;;;AAGF;AACA;EACE;;;AAGF;AACA;EACE;;;AAGF;EACE;;;AAGF;EACE;EACA;;;AAGF;AACA;EACE;;;AAGF;AACA;EACE;;;AAGF;EACE;;;AAGF;AACA;EACE;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;AACA;AAAA;EAEE;;;AAGF","file":"gin-custom.css"} \ No newline at end of file +{"version":3,"sourceRoot":"","sources":["../scss/gin-custom.scss"],"names":[],"mappings":"AAAA;AAEA;EACE;EACA;EACA;EACA;EACA;;AAEA;AAAA;EAEE;;;AAIJ;EACE;EACA;;;AAIF;EACE;;;AAIF;EACE;;;AAGF;EACE;;;AAIF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAQE;;;AAIF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA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;;;AAGF;AACA;AAAA;EAEE;;;AAGF;AACA;EACE;EACA;;;AAGF","file":"gin-custom.css"} \ No newline at end of file diff --git a/web/themes/custom/ys_admin_theme/scss/gin-color-overrides.scss b/web/themes/custom/ys_admin_theme/scss/gin-color-overrides.scss index bad6592291..ffb2abe8c9 100644 --- a/web/themes/custom/ys_admin_theme/scss/gin-color-overrides.scss +++ b/web/themes/custom/ys_admin_theme/scss/gin-color-overrides.scss @@ -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; } } diff --git a/web/themes/custom/ys_admin_theme/scss/gin-custom.scss b/web/themes/custom/ys_admin_theme/scss/gin-custom.scss index 2d512bc021..761ea14db4 100644 --- a/web/themes/custom/ys_admin_theme/scss/gin-custom.scss +++ b/web/themes/custom/ys_admin_theme/scss/gin-custom.scss @@ -313,6 +313,10 @@ background-color: var(--wool); } +.gin--dark-mode[dir="ltr"] .media-library-item img { + background-image: unset !important; +} + /* Embed component */ .gin--dark-mode .ui-dialog .ui-widget-content.ui-dialog-content h2 { color: var(--wool); @@ -348,11 +352,13 @@ border: 0; padding: 0; width: 100%; + float: none; } -.gin--dark-mode .fieldset-legend.fieldset__label { +.gin--dark-mode .fieldset-legend.fieldset__label, +.gin--dark-mode .fieldset__legend.fieldset__legend--visible .fieldset__label { display: block; - color: var(--darkest-gray); + color: var(--darkest-gray) !important; background-color: var(--wool); border-top-left-radius: 0.5rem; border-top-right-radius: 0.5rem; @@ -363,6 +369,11 @@ 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; } @@ -381,4 +392,10 @@ 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 */