Skip to content

Instantly share code, notes, and snippets.

@jamiemarsland
jamiemarsland / gist:dfa1f1a1e19e92e4e450bcbf9b2af91d
Last active October 13, 2022 18:24
Reverse Gutenberg Columns on Mobile (use 'reverse-mobile' as class for Column)
@media (max-width: 768px) {
.reverse-mobile {
flex-direction: column-reverse;
}
}
.wp-block-navigation .wp-block-navigation-item__label:hover {
background-color: #CE4520;
border-radius: 25px;
color:white;
}
.wp-block-navigation .wp-block-navigation-item__label {
padding:10px;
}
.wp-block-image
{
border-radius: 76% 24% 67% 33% / 30% 30% 70% 70% ;
}
.wp-block-image:nth-child(2)
{
border-radius: 56% 44% 66% 34% / 52% 50% 50% 48%
}
.roundedpics {
border-radius: 25px;
}
@jamiemarsland
jamiemarsland / gist:fc53718a7e062ee3c81f26503d3a38c7
Created June 28, 2021 14:50
CSS to fix image in column to bottom of Cover Block
.wp-block-cover.alignfull,
.wp-block-columns {
margin-bottom: 0;
padding-bottom: 0;
}
@jamiemarsland
jamiemarsland / gist:4af06d5cb0e67b2e4903f49b7ba8adeb
Created June 7, 2021 09:18
Glassmorphism Code for Gutenberg
.glass
{
background: rgba( 255, 255, 255, 0.25 );
box-shadow: 0 8px 32px 0 rgba( 31, 38, 135, 0.37 );
backdrop-filter: blur( 4px );
-webkit-backdrop-filter: blur( 4px );
border-radius: 10px;
border: 1px solid rgba( 255, 255, 255, 0.18 );
.background {
background-color: #533cd245;
padding:45px;
box-shadow: 1px 1px 50px 1px #000;
transition: box-shadow 0.3s ease-in-out;
}
@jamiemarsland
jamiemarsland / gist:235dbde69d694c8ec81c097867ca138a
Created June 1, 2020 20:53
Remove storefront header but keep the menu
#masthead > .col-full,
#masthead .site-header-cart {
display: none;
}
/*** Take out the divider line between content and sidebar ***/
#main-content .container:before {background: none;}
/*** Hide Sidebar ***/
#sidebar {display:none;}
/*** Expand the content area to fullwidth ***/
@media (min-width: 981px){
#left-area {
width: 100%;
@jamiemarsland
jamiemarsland / gist:fb804a1410728cf143bfafcd1756658f
Created May 13, 2019 09:39
Remove WooCommerce Storefront feature image from posts
remove_action( 'storefront_post_content_before', 'storefront_post_thumbnail', 10 );