You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Vestride_Shuffle/_scss/_compound-filters.scss

137 lines
2.3 KiB
SCSS

@import "variables";
11 years ago
8 years ago
.compound-filter-options {
margin-top: 20px;
margin-bottom: 40px;
}
8 years ago
.filter-group--compound {
button {
width: 40px;
height: 40px;
padding: 0;
}
label {
cursor: pointer;
}
8 years ago
.ib + .ib {
margin-left: 8px;
}
}
.filter-group__label--compound {
margin: 0 0 5px;
}
8 years ago
.shape-shuffle-container {
position: relative;
11 years ago
overflow: hidden;
}
11 years ago
.shape {
11 years ago
position: relative;
margin-left: 0;
margin-top: 10px;
11 years ago
.shape__space {
width: 100%;
height: 100%;
background-color: black;
border-style: solid;
border-width: 0;
border-color: transparent;
11 years ago
}
}
.shape--blue .shape__space {
background-color: $river;
border-bottom-color: $river;
11 years ago
}
.shape--red .shape__space {
background-color: $alizarin;
border-bottom-color: $alizarin;
11 years ago
}
.shape--orange .shape__space {
background-color: $orange;
border-bottom-color: $orange;
11 years ago
}
.shape--green .shape__space {
background-color: $emerald;
border-bottom-color: $emerald;
11 years ago
}
.shape--circle .shape__space {
border-radius: 50%;
11 years ago
}
.shape--square .shape__space {
// Nothing to see here
11 years ago
}
// 166 / sqrt(166^2 + 166^2) = scale
.shape--diamond .shape__space {
transform: rotate(45deg) scale(0.707106781);
11 years ago
}
10 years ago
@mixin equilateralTriangle($size) {
$sqrt3: 1.73205080757;
$halfSize: $size / 2;
$fullSideWidth: round($sqrt3 * $halfSize);
$leftOver: $size - $fullSideWidth;
padding-top: $leftOver / 2;
height: 0;
width: 0;
border-width: 0 $halfSize $fullSideWidth $halfSize;
10 years ago
}
.shape--triangle .shape__space {
8 years ago
@include equilateralTriangle(132px);
background-color: transparent;
8 years ago
margin: auto;
11 years ago
}
8 years ago
@media (min-width: 425px) {
.shape--triangle .shape__space {
8 years ago
@include equilateralTriangle(180px);
11 years ago
}
}
11 years ago
8 years ago
@media (min-width: 600px) {
.shape--triangle .shape__space {
8 years ago
@include equilateralTriangle(262px);
}
}
8 years ago
@media (min-width: 768px) {
.shape--triangle .shape__space {
8 years ago
@include equilateralTriangle(148px);
}
}
8 years ago
@media (min-width: 1024px) {
10 years ago
.shape--triangle .shape__space {
8 years ago
@include equilateralTriangle(204px);
10 years ago
}
}
8 years ago
@media (min-width: 1200px) {
.shape--triangle .shape__space {
8 years ago
@include equilateralTriangle(270px);
}
}
8 years ago
@media (min-width: 1392px) {
.shape--triangle .shape__space {
8 years ago
@include equilateralTriangle(284px);
}
}