docs-v2/assets/styles/layouts/article/_flex.scss

39 lines
1002 B
SCSS

/////////////////////////// Flex Content Blocks ///////////////////////////
.flex-wrapper {
display: flex;
flex-wrap: wrap;
margin: 1.5rem 0;
}
.flex-container {
margin-right: 1.5rem;
&.half { width: calc(50% - 1.5rem); }
&.third { width: calc(33.33% - 1.5rem); }
&.quarter { width: calc(25% - 1.5rem); }
&.two-thirds { width: calc(66% - 2rem);}
&.half, &.third, &.quarter {
table:not(:last-child) {margin-right: 1.5rem;}
}
img { margin-bottom: 0;}
table { display: table; }
p:last-child {margin-bottom: 0.5rem;}
}
////////////////////////////////////////////////////////////////////////////////
///////////////////////////////// MEDIA QUERIES ////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
@include media(small) {
.flex-container {
&.half,
&.third,
&.two-thirds { width: calc(100% - 1rem); }
&.quarter { width: calc(50% - 1rem); }
p:last-child {margin-bottom: 1.5rem;}
}
}