Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Address Styling Issues on Entry (Edit/New) and Style Pages #1986

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions css/custom_theme.css.php
Original file line number Diff line number Diff line change
Expand Up @@ -871,8 +871,8 @@
border-radius:50%;
}

.with_frm_style .frm_checkbox input[type=checkbox]{
border-radius: calc(var(--border-radius) / 2);
.with_frm_style .frm_checkbox input[type=checkbox] {
border-radius: calc(var(--border-radius) / 2) !important;
shervElmi marked this conversation as resolved.
Show resolved Hide resolved
}

.with_frm_style .frm_radio input[type=radio],
Expand Down Expand Up @@ -904,7 +904,8 @@
border-color: var(--border-color-active) !important;
}

.frm_forms.with_frm_style .frm_fields_container .frm_checkbox input[type=checkbox]:not([disabled]):checked {
.frm_forms.with_frm_style .frm_fields_container .frm_checkbox input[type=checkbox]:not([disabled]):checked,
.frm_forms .with_frm_style .frm_fields_container .frm_checkbox input[type=checkbox]:not([disabled]):checked {
background-color: var(--border-color-active) !important;
}

Expand Down
48 changes: 20 additions & 28 deletions css/frm_admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -1411,7 +1411,7 @@ body.frm-hidden-overflow {
.post-type-frm_display.wp-core-ui .button-primary,
.frm-button-primary,
.wp-core-ui .button-primary.frm-button-primary,
.frm_single_entry_page .button-primary {
.frm_single_entry_page #frm-publishing .button-primary {
background-color: var(--primary-500) !important;
color: #fff !important;
}
Expand Down Expand Up @@ -3854,21 +3854,18 @@ input[type="checkbox"] {
}

.frm-white-body input[type="checkbox"]:checked,
.frm_wrap input[type="checkbox"]:checked,
body[class*="frm-admin"] #wpbody-content input[type="checkbox"]:checked {
.frm_wrap input[type="checkbox"]:checked {
shervElmi marked this conversation as resolved.
Show resolved Hide resolved
background-color: var(--primary-500);
border-color: var(--primary-500) !important;
}
shervElmi marked this conversation as resolved.
Show resolved Hide resolved

.frm-white-body input[type="checkbox"]:checked:focus,
.frm_wrap input[type="checkbox"]:checked:focus,
body[class*="frm-admin"] #wpbody-content input[type="checkbox"]:checked:focus {
.frm_wrap input[type="checkbox"]:checked:focus {
border-color: var(--primary-500);
}
shervElmi marked this conversation as resolved.
Show resolved Hide resolved

.frm-white-body input[type="checkbox"]:checked::before,
.frm_wrap input[type="checkbox"]:checked::before,
body[class*="frm-admin"] #wpbody-content input[type="checkbox"]:checked::before {
.frm_wrap input[type="checkbox"]:checked::before {
shervElmi marked this conversation as resolved.
Show resolved Hide resolved
content: '';
display: block;
width: 100% !important;
Expand All @@ -3885,19 +3882,6 @@ body[class*="frm-admin"] #wpbody-content input[type="checkbox"]:checked::before
margin-right: 5px;
}

.frm_single_entry_page .with_frm_style .frm_radio input[type=radio] {
margin: 5px 0;
width: 18px;
position: relative; /* override Bootstrap */
}

.frm_single_entry_page .with_frm_style .frm_radio input[type=radio]:before {
position: relative !important;
left: calc(50% - 6px);
top: calc(50% - 6px);
margin: 0 !important;
}

.frm_inner_field_container {
margin-bottom: 10px;
}
Expand Down Expand Up @@ -4535,7 +4519,7 @@ li.frm_field_box > ul.frm_grid_container {

/* Image options for Radio and Checkbox */

.frm_image_options .frm_image_option_container {
body:not(.frm-admin-page-styles):not(.frm-admin-page-entries) .frm_image_options .frm_image_option_container {
--field-border-width: 1px;
--border-color: var(--grey-300);
--border-color-active: var(--primary-500);
Expand Down Expand Up @@ -8241,19 +8225,27 @@ button.frm_choose_image_box,
line-height: var(--leading);
}

.frm-white-body textarea:focus,
.frm-white-body input:focus,
.frm-white-body select:focus,
.frm_wrap input:focus,
.frm_wrap select:focus,
.wp-core-ui .frm_wrap select:focus,

.frm-white-body:not(.frm-admin-page-styles):not(.frm-admin-page-entries) textarea:focus,
.frm-white-body:not(.frm-admin-page-styles):not(.frm-admin-page-entries) input:focus,
.frm-white-body:not(.frm-admin-page-styles):not(.frm-admin-page-entries) select:focus,
body:not(.frm-admin-page-styles):not(.frm-admin-page-entries) .frm_wrap input:focus,
body:not(.frm-admin-page-styles):not(.frm-admin-page-entries) .frm_wrap select:focus,
.wp-core-ui:not(.frm-admin-page-styles):not(.frm-admin-page-entries) .frm_wrap select:focus,
#frm-form-templates-modal select:focus,
.frm-btn-group .multiselect.dropdown-toggle:focus,
.frm_wrap textarea:focus {
body:not(.frm-admin-page-styles):not(.frm-admin-page-entries) .frm_wrap textarea:focus {
shervElmi marked this conversation as resolved.
Show resolved Hide resolved
border-color: var(--primary-500) !important;
box-shadow: none !important;
}

.wp-admin .frm_fields_container textarea:focus,
shervElmi marked this conversation as resolved.
Show resolved Hide resolved
.wp-admin .frm_fields_container input:focus,
.wp-admin .frm_fields_container select:focus {
border-color: var(--primary-500);
box-shadow: none;
}

shervElmi marked this conversation as resolved.
Show resolved Hide resolved
#postbox-container-2 textarea,
.frm_wrap textarea,
.field-group textarea {
Expand Down
Loading