/////////////////////////// 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;} // Addition flex content container classes &.operator-example { .highlight:first-child .codeblock pre { margin-top: 0; margin-bottom: 1.5rem; } table:first-child { margin-top: 0; margin-bottom: 1.5rem; th {font-size: 1.05rem;} th,td {padding: .65rem 1.15rem;} } } } //////////////////////////////////////////////////////////////////////////////// ///////////////////////////////// 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;} } }