From 32dacb4686d523d3005c910ca31aa6ccfa22f825 Mon Sep 17 00:00:00 2001 From: Sherv Date: Wed, 11 Sep 2024 19:27:24 +0300 Subject: [PATCH 1/3] Fix missing checkbox marker in backend --- css/custom_theme.css.php | 1 + css/frm_admin.css | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/css/custom_theme.css.php b/css/custom_theme.css.php index 54e013fee0..6b14cfa643 100644 --- a/css/custom_theme.css.php +++ b/css/custom_theme.css.php @@ -932,6 +932,7 @@ background-size: 9px !important; background-repeat: no-repeat !important; background-position: center !important; + margin: 0; } diff --git a/css/frm_admin.css b/css/frm_admin.css index 29538c9d8c..ff64f5894b 100644 --- a/css/frm_admin.css +++ b/css/frm_admin.css @@ -3821,18 +3821,21 @@ input[type="checkbox"] { } .frm-white-body input[type="checkbox"]:checked, -.frm_wrap input[type="checkbox"]:checked { +.frm_wrap input[type="checkbox"]:checked, +#wpbody-content input[type="checkbox"]:checked { background-color: var(--primary-500); border-color: var(--primary-500) !important; } .frm-white-body input[type="checkbox"]:checked:focus, -.frm_wrap input[type="checkbox"]:checked:focus { +.frm_wrap input[type="checkbox"]:checked:focus, +#wpbody-content input[type="checkbox"]:checked:focus { border-color: var(--primary-500); } .frm-white-body input[type="checkbox"]:checked::before, -.frm_wrap input[type="checkbox"]:checked::before { +.frm_wrap input[type="checkbox"]:checked::before, +#wpbody-content input[type="checkbox"]:checked::before { content: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2010%2010%27%3E%3Cpath%20d%3D%27M9.2%202c.2.3.2.7%200%201l-5%205c-.3.2-.6.2-.9%200L.8 5.3a.6.6%200%200%201%20.9-.8l2%202%204.6-4.5c.3-.3.6-.3.9%200Z%27%20fill%3D%27%23fff%27%2F%3E%3C%2Fsvg%3E"); height: 12px; width: 12px; From 031a0883e540d889477b3f8fdbc8ddac2630d5d8 Mon Sep 17 00:00:00 2001 From: Sherv Date: Wed, 11 Sep 2024 20:10:13 +0300 Subject: [PATCH 2/3] Update checkbox marker --- css/frm_admin.css | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/css/frm_admin.css b/css/frm_admin.css index ff64f5894b..1937e11389 100644 --- a/css/frm_admin.css +++ b/css/frm_admin.css @@ -3836,10 +3836,15 @@ input[type="checkbox"] { .frm-white-body input[type="checkbox"]:checked::before, .frm_wrap input[type="checkbox"]:checked::before, #wpbody-content input[type="checkbox"]:checked::before { - content: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2010%2010%27%3E%3Cpath%20d%3D%27M9.2%202c.2.3.2.7%200%201l-5%205c-.3.2-.6.2-.9%200L.8 5.3a.6.6%200%200%201%20.9-.8l2%202%204.6-4.5c.3-.3.6-.3.9%200Z%27%20fill%3D%27%23fff%27%2F%3E%3C%2Fsvg%3E"); - height: 12px; - width: 12px; - margin: 1px; + content: ''; + display: block; + width: 100% !important; + height: 100% !important; + background-image: url("data:image/svg+xml,%3Csvg width='12' height='9' viewBox='0 0 12 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.6667 1.5L4.25001 7.91667L1.33334 5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A") !important; + background-size: 9px !important; + background-repeat: no-repeat !important; + background-position: center !important; + margin: 0; } .frm_radio input[type="radio"], From bdb8fb0a976b74d6cafc6f3bb00418694ae1f537 Mon Sep 17 00:00:00 2001 From: Sherv Date: Thu, 12 Sep 2024 17:52:00 +0300 Subject: [PATCH 3/3] Add `body[class*="frm-admin"]` to CSS selectors --- css/frm_admin.css | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/css/frm_admin.css b/css/frm_admin.css index 1937e11389..5ad2471fc2 100644 --- a/css/frm_admin.css +++ b/css/frm_admin.css @@ -3822,20 +3822,20 @@ input[type="checkbox"] { .frm-white-body input[type="checkbox"]:checked, .frm_wrap input[type="checkbox"]:checked, -#wpbody-content input[type="checkbox"]:checked { +body[class*="frm-admin"] #wpbody-content input[type="checkbox"]:checked { background-color: var(--primary-500); border-color: var(--primary-500) !important; } .frm-white-body input[type="checkbox"]:checked:focus, .frm_wrap input[type="checkbox"]:checked:focus, -#wpbody-content input[type="checkbox"]:checked:focus { +body[class*="frm-admin"] #wpbody-content input[type="checkbox"]:checked:focus { border-color: var(--primary-500); } .frm-white-body input[type="checkbox"]:checked::before, .frm_wrap input[type="checkbox"]:checked::before, -#wpbody-content input[type="checkbox"]:checked::before { +body[class*="frm-admin"] #wpbody-content input[type="checkbox"]:checked::before { content: ''; display: block; width: 100% !important;