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 / Fixed variable height footer in GeneratePress
Last active March 14, 2018 22:29
Fixed variable height footer
@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 - Transfrom position of colums x 4
Last active February 12, 2018 12:52
Simple use of CSS Transform:Translate and Transition for intro animations on hover
/* Elementor - transform position for animated columns x 4 */
.db-enter-left ,
.db-enter-right ,
.db-enter-top,
.db-enter-bottom {
transition: all 0.75s ease-in-out;
}
.db-window2:not(:hover) .db-enter-left {
@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 / Elementor - Portfolio Filter Bar Hacks
Created December 22, 2017 14:30
Change the All filter title and re-order the filter bar
/* Elementor Portfolio Filter Bar Hacks */
/* Hack 1 - Change or hide the 'All' filter */
/* Hide the Elements visibility */
.elementor-portfolio__filters li:nth-child(1) {
visibility: hidden;
}
/* Add a different title in place of ALL */
@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);
}