Skip to content

Instantly share code, notes, and snippets.

@matt-bailey
Created February 7, 2022 15:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matt-bailey/8f17fb22df7991e85c56aed880c60875 to your computer and use it in GitHub Desktop.
Save matt-bailey/8f17fb22df7991e85c56aed880c60875 to your computer and use it in GitHub Desktop.
Blinker App BigCommerce Integration - SCSS
// =============================================================================
// Blinker
// =============================================================================
/* Related posts */
.blinker-related-posts {
clear: both;
}
.blinker-related-posts__container {
padding: 32px 0;
}
.blinker-related-posts__title {
display: block;
margin-top: 0;
margin-bottom: 32px;
text-align: center;
}
.blinker-related-posts__grid {
display: flex;
justify-content: center;
flex-wrap: wrap;
}
.blinker-related-posts__grid-cell {
width: 100%;
padding-bottom: 32px;
@media screen and (min-width: 640px) {
width: 33%;
}
}
.blinker-related-posts__post {
padding: 0 16px;
}
.blinker-related-posts__post-thumbnail {
display: block;
height: 0;
overflow: hidden;
padding-top: 56.25%;
margin-bottom: 32px;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}
.blinker-related-posts__post-title {
display: block;
margin-top: 0;
margin-bottom: 16px;
text-align: center;
a {
text-decoration: none;
}
a:hover,
a:focus {
text-decoration: underline;
}
}
.blinker-related-posts__post-link {
display: block;
text-align: center;
}
.blinker-related-posts__blog-link {
display: block;
text-align: center;
margin-top: 0;
margin-bottom: 0;
}
/* Featured posts */
.blinker-featured-posts {
.heroCarousel {
margin-top: 0;
margin-bottom: 64px;
}
}
.blinker-featured-post__image {
display: block;
height: 0;
overflow: hidden;
padding-top: 50%;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}
/* Related products */
.blinker-related-products__title {
display: block;
margin-top: 32px;
margin-bottom: 32px;
text-align: center;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment