public function register_customisations() {
$this->_customise_sections();
- $this->_customise_image_widget();
+ $this->_customise_image_box_widget();
}
}
- protected function _customise_image_widget() {
+ protected function _customise_image_box_widget() {
- // Add controls to image widget in editor
- add_action( 'elementor/element/image/section_image/before_section_end', function( $element, $args ) {
+ // Add controls to image box widget in editor
+ add_action( 'elementor/element/image-box/section_image/before_section_end', function( $element, $args ) {
/** @var \Elementor\Element_Base $element */
$element->add_control(
- 'link_icon',
+ 'content_alignment',
[
- 'label' => __( 'Link Icon', 'cube' ),
+ 'label' => __( 'Vertical Alignment', 'cube' ),
'type' => Controls_Manager::SELECT,
'options' => [
- '' => __( 'None', 'cube' ),
- 'tour-360' => __( '360 Tour', 'cube' ),
- 'enlarge' => __( 'Enlarge', 'cube' ),
+ 'flex-start' => __( 'Top', 'cube' ),
+ 'center' => __( 'Center', 'cube' ),
+ 'flex-end' => __( 'Bottom', 'cube' ),
],
- 'default' => '',
- 'prefix_class' => 'icon-',
- 'condition' => [
- 'link_to!' => 'none',
+ 'default' => 'center',
+ 'selectors' => [
+ '{{WRAPPER}} .elementor-image-box-wrapper' => 'align-items: {{VALUE}};',
],
]
);
module.exports = {
theme: {
+
screens: {
// We're using the desktop-first approach to media queries so everything is max-width based
// The most important breakpoint is when the columns stack. This is defined in setup.styl
'sm': {'max': '767px'}, // => @media (max-width: 767px) { ... }
'xs': {'max': '499px'}, // => @media (max-width: 499px) { ... }
},
+
+ colors: {
+ 'inherit': 'inherit',
+ 'transparent': 'transparent',
+ 'white': '#FFF',
+ 'dark': '#1A0707', // Text colour
+ 'light': '#F6F5F5', // Light grey backgrounds
+ 'purple': '#5A5488',
+ 'purple-dark': '#2E2C40', // Footer and other dark sections
+ 'pink': '#FF078B', // Accent colour
+ 'pink-light': '#FF7EC3', // Hover colour
+ 'teal': '#2CC4CF', // Accent colour
+ 'teal-light': '#71D3DF', // Hover colour
+ },
+ fontFamily: {
+ 'display': ['Dosis', 'sans-serif'], // Headings, labels, menus etc
+ 'body': ['Roboto Condensed', 'sans-serif'], // Main blocks of text
+ },
+ fontSize: {
+ 'xs': '0.8181rem', // 18px
+ 'sm': '0.9091rem', // 20px
+ 'base': '1rem', // 22px
+ 'lg': '1.3636rem', // 30px
+ 'xl': '1.9091rem', // 42px
+ '2xl': '2.4545rem', // 54px
+ '3xl': '3.0909rem', // 68px
+ },
+
extend: {
- colors: {
- 'inherit': 'inherit',
- 'dark': '#1A0707', // Text colour
- 'light': '#F6F5F5', // Light grey backgrounds
- 'purple': '#5A5488',
- 'purple-dark': '#2E2C40', // Footer and other dark sections
- 'pink': '#FF078B', // Accent colour
- 'pink-light': '#FF7EC3', // Hover colour
- 'teal': '#2CC4CF', // Accent colour
- 'teal-light': '#71D3DF', // Hover colour
- },
- fontFamily: {
- 'display': ['Dosis', 'sans-serif'], // Headings, labels, menus etc
- 'body': ['Roboto Condensed', 'sans-serif'], // Main blocks of text
- },
- fontSize: {
- 'xs': '0.8181rem', // 18px
- 'sm': '0.9091rem', // 20px
- 'lg': '1.3636rem', // 30px
- 'xl': '1.9091rem', // 42px
- '2xl': '2.4545rem', // 54px
- '3xl': '3.0909rem', // 68px
- },
padding: {
'0!': '0 !important', // Special overrides
'100%': '100%', // Used for proportional padding to make a square
}
},
},
- variants: {},
+ variants: {
+
+ },
plugins: [
wordpressUtilities,
],
corePlugins: {
container: false,
+ float: false,
+ objectFit: false,
+ objectPosition: false,
},
};