html,
body {
height: 100%;
background: #f2f2f2;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: antialiased;
}
*,
*:before,
*:after {
box-sizing: border-box;
}
/* Controls
---------------------------------------------------------------------- */
.controls {
padding: 1rem;
background: #333;
font-size: 0.1px;
}
.control {
position: relative;
display: inline-block;
padding: .5rem;
background: #444;
cursor: pointer;
font-size: .9rem;
font-weight: 800;
color: white;
transition: background 150ms;
}
.control:hover {
background: #3f3f3f;
}
.mixitup-control-active {
background: #393939;
}
.control:first-of-type {
border-radius: 3px 0 0 3px;
}
.control:last-of-type {
border-radius: 0 3px 3px 0;
}
/* Container
---------------------------------------------------------------------- */
.container {
padding: 1rem;
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-content: flex-start;
justify-content: space-between;
}
/* Target Elements
---------------------------------------------------------------------- */
.mix,
.gap {
display: inline-flex;
vertical-align: top;
}
.mix {
background: #fff;
border-top: .5rem solid currentColor;
border-radius: 2px;
margin-bottom: 1rem;
position: relative;
color: transparent;
font-family: 'helvetica-neue', arial, sans-serif;
}
.mix:before {
content: '';
display: inline-block;
padding-top: 56.25%;
}
.mix.green {
color: #91e6c7;
}
.mix.pink {
color: #d595aa;
}
.mix.blue {
color: #5ecdde;
}
.mix p {
padding: 1rem;
display: inline-block;
font-size: calc(1vw + .5rem);
color: #333;
line-height: 1.4;
font-weight: 300;
}
/* Grid Breakpoints
---------------------------------------------------------------------- */
/* 2 Columns */
.mix,
.gap {
width: calc(100%/2 - (((2 - 1) * 1rem) / 2));
}
/* 3 Columns */
@media screen and (min-width: 541px) {
.mix,
.gap {
width: calc(100%/3 - (((3 - 1) * 1rem) / 3));
}
}
/* 4 Columns */
@media screen and (min-width: 961px) {
.mix,
.gap {
width: calc(100%/4 - (((4 - 1) * 1rem) / 4));
}
}
/* 5 Columns */
@media screen and (min-width: 1281px) {
.mix,
.gap {
width: calc(100%/5 - (((5 - 1) * 1rem) / 5));
}
}