]
);
+ $this->add_control(
+ 'title_size',
+ [
+ 'label' => __( 'Title Font Size', 'physioassist' ),
+ 'type' => Controls_Manager::SLIDER,
+ 'default' => [
+ 'size' => 2.6875, // 2.6875rem = 43px
+ ],
+ 'range' => [
+ 'px' => [
+ 'min' => 1,
+ 'max' => 3,
+ 'step' => 0.01,
+ ],
+ ],
+ 'selectors' => [
+ '{{WRAPPER}} .text-block-title' => 'font-size: {{SIZE}}rem;',
+ ],
+ ]
+ );
+
$this->add_control(
'body_color',
margin-bottom: 0.4em
font-weight: 700
+// Override default Elementor styles
+.elementor-widget-heading .elementor-heading-title
+ &.elementor-size-xxl
+ font-size: 60px
+ &.elementor-size-xl
+ font-size: 50px
+ &.elementor-size-large
+ font-size: 40px
+ &.elementor-size-medium
+ font-size: 30px
+ &.elementor-size-small
+ font-size: 20px
+ +below('large')
+ font-size: $font-size-medium !important
.elementor-heading-title, .main-heading
color: $colors.headings
font-size: 43px
+below(large)
- font-size: 30px
+ // Title size can be overridden in individual widgets but here we probably want to keep them consistent
+ font-size: 30px !important
+below(medium)
- font-size: 24px
+ font-size: 24px !important
// No bottom margin if it's the last element (ie. no body below)
&:last-child