shapes
7 years ago
updater
6 years ago
vendor
6 years ago
admin-posts.php
7 years ago
admin-settings-js-config.php
8 years ago
admin-settings-modules.php
7 years ago
admin-settings-post-types.php
7 years ago
admin-settings-tools.php
6 years ago
admin-settings-upgrade.php
7 years ago
admin-settings-user-access.php
7 years ago
admin-settings-welcome.php
7 years ago
admin-settings.php
7 years ago
column-css.php
7 years ago
column-group.php
7 years ago
column-settings.php
6 years ago
column.php
7 years ago
compatibility.php
6 years ago
export-filters.php
8 years ago
export.php
7 years ago
global-settings.php
6 years ago
icon-selector.php
8 years ago
layout-js-config.php
8 years ago
layout-settings.php
7 years ago
loop-settings-matching.php
7 years ago
module-settings.php
6 years ago
module.php
7 years ago
row-css.php
7 years ago
row-js.php
7 years ago
row-settings.php
6 years ago
row-video.php
7 years ago
row.php
7 years ago
shape-layer.php
7 years ago
strings.php
7 years ago
ui-bar-title-area.php
7 years ago
ui-bar.php
6 years ago
ui-extras.php
8 years ago
ui-field-align.php
7 years ago
ui-field-animation.php
7 years ago
ui-field-border.php
7 years ago
ui-field-button-group.php
7 years ago
ui-field-button.php
8 years ago
ui-field-code.php
8 years ago
ui-field-color.php
7 years ago
ui-field-date.php
7 years ago
ui-field-dimension.php
7 years ago
ui-field-editor.php
8 years ago
ui-field-font.php
7 years ago
ui-field-form.php
7 years ago
ui-field-gradient.php
7 years ago
ui-field-icon.php
7 years ago
ui-field-layout.php
8 years ago
ui-field-link.php
7 years ago
ui-field-multiple-audios.php
8 years ago
ui-field-multiple-photos.php
8 years ago
ui-field-ordering.php
8 years ago
ui-field-photo-sizes.php
7 years ago
ui-field-photo.php
7 years ago
ui-field-post-type.php
8 years ago
ui-field-preset.php
7 years ago
ui-field-raw.php
7 years ago
ui-field-select.php
7 years ago
ui-field-shadow.php
7 years ago
ui-field-shape-transform.php
7 years ago
ui-field-suggest.php
7 years ago
ui-field-text.php
7 years ago
ui-field-textarea.php
8 years ago
ui-field-time.php
8 years ago
ui-field-timezone.php
8 years ago
ui-field-typography.php
7 years ago
ui-field-unit.php
7 years ago
ui-field-video.php
8 years ago
ui-field.php
7 years ago
ui-js-config.php
6 years ago
ui-js-templates.php
6 years ago
ui-legacy-custom-field.php
8 years ago
ui-legacy-field.php
7 years ago
ui-legacy-settings.php
8 years ago
ui-loop-settings.php
7 years ago
ui-service-settings.php
8 years ago
ui-settings-config.php
6 years ago
ui-settings-form-row.php
7 years ago
ui-settings-form.php
7 years ago
updater-config.php
6 years ago
column-css.php
196 lines
| 1 | <?php if ( ! empty( $col->settings->text_color ) ) : // Text Color ?> |
| 2 | .fl-node-<?php echo $col->node; ?> { |
| 3 | color: <?php echo FLBuilderColor::hex_or_rgb( $col->settings->text_color ); ?>; |
| 4 | } |
| 5 | .fl-builder-content .fl-node-<?php echo $col->node; ?> *:not(input):not(textarea):not(select):not(a):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(.fl-menu-mobile-toggle) { |
| 6 | color: <?php echo FLBuilderColor::hex_or_rgb( $col->settings->text_color ); ?>; |
| 7 | } |
| 8 | <?php endif; ?> |
| 9 | |
| 10 | <?php if ( ! empty( $col->settings->link_color ) ) : // Link Color ?> |
| 11 | .fl-builder-content .fl-node-<?php echo $col->node; ?> a { |
| 12 | color: <?php echo FLBuilderColor::hex_or_rgb( $col->settings->link_color ); ?>; |
| 13 | } |
| 14 | <?php elseif ( ! empty( $col->settings->text_color ) ) : ?> |
| 15 | .fl-builder-content .fl-node-<?php echo $col->node; ?> a { |
| 16 | color: <?php echo FLBuilderColor::hex_or_rgb( $col->settings->text_color ); ?>; |
| 17 | } |
| 18 | <?php endif; ?> |
| 19 | |
| 20 | <?php if ( ! empty( $col->settings->hover_color ) ) : // Link Hover Color ?> |
| 21 | .fl-builder-content .fl-node-<?php echo $col->node; ?> a:hover { |
| 22 | color: <?php echo FLBuilderColor::hex_or_rgb( $col->settings->hover_color ); ?>; |
| 23 | } |
| 24 | <?php elseif ( ! empty( $col->settings->text_color ) ) : ?> |
| 25 | .fl-builder-content .fl-node-<?php echo $col->node; ?> a:hover { |
| 26 | color: <?php echo FLBuilderColor::hex_or_rgb( $col->settings->text_color ); ?>; |
| 27 | } |
| 28 | <?php endif; ?> |
| 29 | |
| 30 | <?php if ( ! empty( $col->settings->heading_color ) ) : // Heading Color ?> |
| 31 | .fl-builder-content .fl-node-<?php echo $col->node; ?> h1, |
| 32 | .fl-builder-content .fl-node-<?php echo $col->node; ?> h2, |
| 33 | .fl-builder-content .fl-node-<?php echo $col->node; ?> h3, |
| 34 | .fl-builder-content .fl-node-<?php echo $col->node; ?> h4, |
| 35 | .fl-builder-content .fl-node-<?php echo $col->node; ?> h5, |
| 36 | .fl-builder-content .fl-node-<?php echo $col->node; ?> h6, |
| 37 | .fl-builder-content .fl-node-<?php echo $col->node; ?> h1 a, |
| 38 | .fl-builder-content .fl-node-<?php echo $col->node; ?> h2 a, |
| 39 | .fl-builder-content .fl-node-<?php echo $col->node; ?> h3 a, |
| 40 | .fl-builder-content .fl-node-<?php echo $col->node; ?> h4 a, |
| 41 | .fl-builder-content .fl-node-<?php echo $col->node; ?> h5 a, |
| 42 | .fl-builder-content .fl-node-<?php echo $col->node; ?> h6 a { |
| 43 | color: <?php echo FLBuilderColor::hex_or_rgb( $col->settings->heading_color ); ?>; |
| 44 | } |
| 45 | <?php elseif ( ! empty( $col->settings->text_color ) ) : ?> |
| 46 | .fl-builder-content .fl-node-<?php echo $col->node; ?> h1, |
| 47 | .fl-builder-content .fl-node-<?php echo $col->node; ?> h2, |
| 48 | .fl-builder-content .fl-node-<?php echo $col->node; ?> h3, |
| 49 | .fl-builder-content .fl-node-<?php echo $col->node; ?> h4, |
| 50 | .fl-builder-content .fl-node-<?php echo $col->node; ?> h5, |
| 51 | .fl-builder-content .fl-node-<?php echo $col->node; ?> h6, |
| 52 | .fl-builder-content .fl-node-<?php echo $col->node; ?> h1 a, |
| 53 | .fl-builder-content .fl-node-<?php echo $col->node; ?> h2 a, |
| 54 | .fl-builder-content .fl-node-<?php echo $col->node; ?> h3 a, |
| 55 | .fl-builder-content .fl-node-<?php echo $col->node; ?> h4 a, |
| 56 | .fl-builder-content .fl-node-<?php echo $col->node; ?> h5 a, |
| 57 | .fl-builder-content .fl-node-<?php echo $col->node; ?> h6 a { |
| 58 | color: <?php echo FLBuilderColor::hex_or_rgb( $col->settings->text_color ); ?>; |
| 59 | } |
| 60 | <?php endif; ?> |
| 61 | |
| 62 | <?php |
| 63 | |
| 64 | $responsive_enabled = $global_settings->responsive_enabled; |
| 65 | |
| 66 | // Width - Desktop |
| 67 | FLBuilderCSS::rule( array( |
| 68 | 'selector' => ".fl-node-$id", |
| 69 | 'props' => array( |
| 70 | 'width' => "{$settings->size}%", |
| 71 | ), |
| 72 | ) ); |
| 73 | |
| 74 | // Width - Medium |
| 75 | FLBuilderCSS::rule( array( |
| 76 | 'media' => 'medium', |
| 77 | 'selector' => ".fl-builder-content .fl-node-$id", |
| 78 | 'enabled' => '' !== $settings->size_medium && $responsive_enabled, |
| 79 | 'props' => array( |
| 80 | 'width' => "{$settings->size_medium}% !important", |
| 81 | 'max-width' => 'none', |
| 82 | '-webkit-box-flex' => '0 1 auto', |
| 83 | '-moz-box-flex' => '0 1 auto', |
| 84 | '-webkit-flex' => '0 1 auto', |
| 85 | '-ms-flex' => '0 1 auto', |
| 86 | 'flex' => '0 1 auto', |
| 87 | ), |
| 88 | ) ); |
| 89 | |
| 90 | // Width - Responsive |
| 91 | FLBuilderCSS::rule( array( |
| 92 | 'media' => 'responsive', |
| 93 | 'selector' => ".fl-builder-content .fl-node-$id", |
| 94 | 'enabled' => '' !== $settings->size_responsive && $responsive_enabled, |
| 95 | 'props' => array( |
| 96 | 'width' => "{$settings->size_responsive}% !important", |
| 97 | 'max-width' => 'none', |
| 98 | 'clear' => 'none', |
| 99 | 'float' => 'left', |
| 100 | ), |
| 101 | ) ); |
| 102 | |
| 103 | // Stacking Order - Responsive |
| 104 | FLBuilderCSS::rule( array( |
| 105 | 'media' => 'responsive', |
| 106 | 'selector' => ".fl-col-group-custom-width.fl-col-group-responsive-reversed .fl-node-$id", |
| 107 | 'enabled' => 'reversed' == $settings->responsive_order && '' !== $settings->size_responsive && $responsive_enabled, |
| 108 | 'props' => array( |
| 109 | 'flex-basis' => "{$settings->size_responsive}%", |
| 110 | ), |
| 111 | ) ); |
| 112 | |
| 113 | // Background Color |
| 114 | FLBuilderCSS::rule( array( |
| 115 | 'selector' => ".fl-node-$id > .fl-col-content", |
| 116 | 'enabled' => 'color' == $settings->bg_type, |
| 117 | 'props' => array( |
| 118 | 'background-color' => $settings->bg_color, |
| 119 | ), |
| 120 | ) ); |
| 121 | |
| 122 | // Background Gradient |
| 123 | FLBuilderCSS::rule( array( |
| 124 | 'selector' => ".fl-node-$id > .fl-col-content", |
| 125 | 'enabled' => 'gradient' === $settings->bg_type, |
| 126 | 'props' => array( |
| 127 | 'background-image' => FLBuilderColor::gradient( $settings->bg_gradient ), |
| 128 | ), |
| 129 | ) ); |
| 130 | |
| 131 | // Background Color Overlay |
| 132 | FLBuilderCSS::rule( array( |
| 133 | 'selector' => ".fl-node-$id > .fl-col-content:after", |
| 134 | 'enabled' => 'none' !== $settings->bg_overlay_type && in_array( $settings->bg_type, array( 'photo' ) ), |
| 135 | 'props' => array( |
| 136 | 'background-color' => 'color' === $settings->bg_overlay_type ? $settings->bg_overlay_color : '', |
| 137 | 'background-image' => 'gradient' === $settings->bg_overlay_type ? FLBuilderColor::gradient( $settings->bg_overlay_gradient ) : '', |
| 138 | ), |
| 139 | ) ); |
| 140 | |
| 141 | // Background Photo - Desktop |
| 142 | FLBuilderCSS::rule( array( |
| 143 | 'selector' => ".fl-node-$id > .fl-col-content", |
| 144 | 'enabled' => 'photo' === $settings->bg_type, |
| 145 | 'props' => array( |
| 146 | 'background-image' => $settings->bg_image_src, |
| 147 | 'background-repeat' => $settings->bg_repeat, |
| 148 | 'background-position' => $settings->bg_position, |
| 149 | 'background-attachment' => $settings->bg_attachment, |
| 150 | 'background-size' => $settings->bg_size, |
| 151 | ), |
| 152 | ) ); |
| 153 | |
| 154 | // Background Photo - Medium |
| 155 | FLBuilderCSS::rule( array( |
| 156 | 'media' => 'medium', |
| 157 | 'selector' => ".fl-node-$id > .fl-col-content", |
| 158 | 'enabled' => 'photo' === $settings->bg_type, |
| 159 | 'props' => array( |
| 160 | 'background-image' => $settings->bg_image_medium_src, |
| 161 | 'background-repeat' => $settings->bg_repeat_medium, |
| 162 | 'background-position' => $settings->bg_position_medium, |
| 163 | 'background-attachment' => $settings->bg_attachment_medium, |
| 164 | 'background-size' => $settings->bg_size_medium, |
| 165 | ), |
| 166 | ) ); |
| 167 | |
| 168 | // Background Photo - Responsive |
| 169 | FLBuilderCSS::rule( array( |
| 170 | 'media' => 'responsive', |
| 171 | 'selector' => ".fl-node-$id > .fl-col-content", |
| 172 | 'enabled' => 'photo' === $settings->bg_type, |
| 173 | 'props' => array( |
| 174 | 'background-image' => $settings->bg_image_responsive_src, |
| 175 | 'background-repeat' => $settings->bg_repeat_responsive, |
| 176 | 'background-position' => $settings->bg_position_responsive, |
| 177 | 'background-attachment' => $settings->bg_attachment_responsive, |
| 178 | 'background-size' => $settings->bg_size_responsive, |
| 179 | ), |
| 180 | ) ); |
| 181 | |
| 182 | // Border |
| 183 | FLBuilderCSS::border_field_rule( array( |
| 184 | 'settings' => $settings, |
| 185 | 'setting_name' => 'border', |
| 186 | 'selector' => ".fl-node-$id > .fl-col-content", |
| 187 | ) ); |
| 188 | |
| 189 | // Minimum Height |
| 190 | FLBuilderCSS::responsive_rule( array( |
| 191 | 'settings' => $col->settings, |
| 192 | 'setting_name' => 'min_height', |
| 193 | 'selector' => ".fl-builder-content .fl-node-$id > .fl-col-content", |
| 194 | 'prop' => 'min-height', |
| 195 | ) ); |
| 196 |