Skip to content

Instantly share code, notes, and snippets.

@diggeddy
diggeddy / gist:3ce9edc636d79538397251fa96bcafd2
Created August 2, 2017 01:32
LOGO BUILDING - HTML AND CSS EFFECT
/* ------------ MARK-UP BELOW -------*/
<div class="db-container">
<div class="db-a">A</div>
<div class="db-b">B</div>
<div class="db-c">C</div>
<div class="db-d">D</div>
</div>
/* ----------- CSS BELOW ---------- */
@diggeddy
diggeddy / EL-CSS-HACK-1
Last active December 20, 2017 13:05
ELEMENTOR CSS HACK - RESPONSIVE GALLERY WIDGET
/* CSS Elementor flexible gallaery */
.db-grid-flex .elementor-widget-container .elementor-image-gallery .gallery {
display: -webkit-box; /* OLD - iOS 6-, Safari 3.1-6, BB7 */
display: -ms-flexbox; /* TWEENER - IE 10 */
display: -webkit-flex; /* NEW - Safari 6.1+. iOS 7.1+, BB10 */
display: flex;
justify-content: center;
flex-flow: row wrap;
}
@diggeddy
diggeddy / Elementor - Aligning elements within columns
Created December 20, 2017 13:48
A Flex and Grid option for vertically aligning elements within a column
/* Elementor - Auto aligning elements within a column */
/*Option 1 - Flex Container Fix*/
.db-flex-column .elementor-widget-wrap {
height: 100%;
display: -webkit-box; /* OLD - iOS 6-, Safari 3.1-6, BB7 */
display: -ms-flexbox; /* TWEENER - IE 10 */
display: -webkit-flex; /* NEW - Safari 6.1+. iOS 7.1+, BB10 */
display: flex; /* NEW, Spec - Firefox, Chrome, Opera */
@diggeddy
diggeddy / Elementor - Double button using Icon List widget
Created December 20, 2017 14:22
Using the Icon List widget to create double (multiple) buttons
/* Elementor - create a double button with Icon List widget */
.db-list-button .elementor-icon-list-items {
display: -webkit-box; /* OLD - iOS 6-, Safari 3.1-6, BB7 */
display: -ms-flexbox; /* TWEENER - IE 10 */
display: -webkit-flex; /* NEW - Safari 6.1+. iOS 7.1+, BB10 */
display: flex; /* NEW, Spec - Firefox, Chrome, Opera */
justify-content: center;
}
.db-list-button .elementor-icon-list-item a {
@diggeddy
diggeddy / Elementor - Masonry on Gallery Widget
Created December 20, 2017 14:31
Add Masonry to Elementor Gallery Widget
@diggeddy
diggeddy / Elementor - Additional content on Form Widget
Created December 20, 2017 14:35
Using Pseudo elements to add additional content to Elementor Form Widget
/* Elementor - additional content on Form Widget */
/* Basic code to add text content via Pseudo elements */
.elementor-form-fields-wrapper >div:nth-child(1) {
display: flex;
flex-flow: column;
align-items: left;
}
.elementor-form-fields-wrapper >div:nth-child(1):before {
content: "PUT YOUR TEXT CONTENT HERE";
@diggeddy
diggeddy / Post Thumbnail Shortcode
Created December 27, 2017 16:21
Add post thumbnail with short code
/* Post thumbnail shortcode */
add_shortcode('featured_img', 'fi_in_content');
function fi_in_content($atts) {
global $post;
return get_the_post_thumbnail($post->ID);
}
@diggeddy
diggeddy / Elementor - Slider Zoom Box
Created January 2, 2018 00:55
Change a single slide elementor slider into a zoom box
/*---- convert a slider widget into a zoom box ---*/
.db-slider-reveal .elementor-slide-description,
.db-slider-reveal .elementor-slide-button,
.db-slider-reveal .slick-slide-inner .elementor-background-overlay {
transition: all 1000ms ease-in-out;
}
.db-slider-reveal:not(:hover) .elementor-slide-description,
.db-slider-reveal:not(:hover) .elementor-slide-button,
.db-slider-reveal:not(:hover) .slick-slide-inner .elementor-background-overlay
@diggeddy
diggeddy / Elementor - Block quote class for p tag
Created January 2, 2018 01:20
Simple CSS class for adding block quotes to p tag elements.
/*---- creating a block quote class for p tag ----*/
.db-quote p:before {
content: '\f10d';
}
.db-quote p::after {
content: '\f10e';
}
.db-quote p:before , .db-quote p:after {
font-family: FontAwesome;
@diggeddy
diggeddy / Elementor UI OnionSkin Hack
Created January 2, 2018 02:49
Providing that little extra accessibility in the elementor editor
/*---- Elementor UI Onion Skin Hack ----*/
.elementor-editor-active .elementor:hover .elementor-section:not(:hover) {
opacity: 0.3;
z-index: 0;
}
.elementor-editor-active .elementor-section:hover {
z-index: 1 !important;
}