Skip to content

Commit

Permalink
improved Pro control styles in settings
Browse files Browse the repository at this point in the history
  • Loading branch information
nk-o committed Feb 26, 2024
1 parent 5729e6f commit 3f75059
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 11 deletions.
24 changes: 16 additions & 8 deletions assets/admin/css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,9 @@ $escaped-svg-characters: (
pointer-events: none;
}

.description {
.description,
.vp-toggle-field-slider-round,
select {
opacity: 0.3;
}

Expand Down Expand Up @@ -664,13 +666,19 @@ $escaped-svg-characters: (
}
}

// Hide pro control info from individual breakpoint settings.
&.breakpoint_xs .vpf-settings-control-pro-label,
&.breakpoint_sm .vpf-settings-control-pro-label,
&.breakpoint_md .vpf-settings-control-pro-label,
&.breakpoint_lg .vpf-settings-control-pro-label,
&.breakpoint_xl .vpf-settings-control-pro-label {
display: none;
// Hide pro control info from individual settings, which has sections.
&.breakpoint_xs,
&.breakpoint_sm,
&.breakpoint_md,
&.breakpoint_lg,
&.breakpoint_xl,
&.popup_quick_view_show_url_button,
&.popup_quick_view_internal_links_target,
&.popup_quick_view_external_links_target,
&.pages_iframe_custom_css {
.vpf-settings-control-pro-label {
display: none;
}
}
}

Expand Down
7 changes: 4 additions & 3 deletions classes/class-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -686,9 +686,10 @@ public static function get_settings_fields() {

// Quick View settings.
array(
'name' => 'popup_quick_view_title',
'label' => esc_html__( 'Quick View', 'visual-portfolio' ),
'type' => 'section_title',
'name' => 'popup_quick_view_title',
'label' => esc_html__( 'Quick View', 'visual-portfolio' ),
'type' => 'section_title',
'is_pro' => true,
),
array(
'name' => 'popup_quick_view_show_url_button',
Expand Down

0 comments on commit 3f75059

Please sign in to comment.