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/gallery.scss

200 lines
3.7 KiB
SCSS

@import "variables";
@import "compass";
.filter-options {
margin-top: 20px;
margin-bottom: 40px;
}
.filter-group {
.filter-group__label {
margin: 0 0 5px;
}
button {
width: 40px;
height: 40px;
padding: 0;
}
}
.shape {
margin-left: 0;
margin-top: 10px;
.shape__inner {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
.shape__space {
width: 100%;
height: 100%;
background-color: black;
border-style: solid;
border-width: 0;
border-color: transparent;
}
}
.shape--blue .shape__space {
background-color: $river;
border-bottom-color: $river;
}
.shape--red .shape__space {
background-color: $alizarin;
border-bottom-color: $alizarin;
}
.shape--orange .shape__space {
background-color: $orange;
border-bottom-color: $orange;
}
.shape--green .shape__space {
background-color: $emerald;
border-bottom-color: $emerald;
}
.shape--circle .shape__space {
border-radius: 50%;
}
.shape--square .shape__space {
// Nothing to see here
}
// 166 / sqrt(166^2 + 166^2) = scale
.shape--diamond .shape__space {
-webkit-transform: rotate(45deg) scale(0.707106781);
transform: rotate(45deg) scale(0.707106781);
}
$triangleSize: 220px;
$halfSize: $triangleSize / 2;
$fullSideWidth: round(sqrt(3) * $halfSize);
$leftOver: $triangleSize - $fullSideWidth;
.shape--triangle .shape__space {
padding-top: $leftOver / 2;
height: 0;
width: 0;
border-width: 0 $halfSize $fullSideWidth $halfSize;
background-color: transparent;
}
@media (min-width: 1200px) {
$triangleSize: 270px;
$halfSize: $triangleSize / 2;
$fullSideWidth: round(sqrt(3) * $halfSize);
$leftOver: $triangleSize - $fullSideWidth;
.shape--triangle .shape__space {
padding-top: $leftOver / 2;
border-width: 0 $halfSize $fullSideWidth $halfSize;
}
}
@media (min-width: 768px) and (max-width: 979px) {
$triangleSize: 166px;
$halfSize: $triangleSize / 2;
$fullSideWidth: round(sqrt(3) * $halfSize);
$leftOver: $triangleSize - $fullSideWidth;
.shape--triangle .shape__space {
padding-top: $leftOver / 2;
border-width: 0 $halfSize $fullSideWidth $halfSize;
}
}
@media (max-width: 767px) {
$triangleSize: 200px;
$halfSize: $triangleSize / 2;
$fullSideWidth: round(sqrt(3) * $halfSize);
$leftOver: $triangleSize - $fullSideWidth;
.shape--triangle .shape__space {
padding-top: $leftOver / 2;
border-width: 0 $halfSize $fullSideWidth $halfSize;
}
}
@media (max-width: 480px) {
$triangleSize: 100px;
$halfSize: $triangleSize / 2;
$fullSideWidth: round(sqrt(3) * $halfSize);
$leftOver: $triangleSize - $fullSideWidth;
.shape--triangle .shape__space {
padding-top: $leftOver / 2;
border-width: 0 $halfSize $fullSideWidth $halfSize;
}
}
body::before {
content: 'Default - 940px';
position: fixed;
z-index: 5;
bottom: 0;
left: 0;
width: 100%;
height: 25px;
background-color: hsla(110, 50%, 60%, .6);
-webkit-transition: background .2s ease;
-o-transition: background .2s ease;
transition: background .2s ease;
}
@media (min-width: 1200px) {
body::before {
content: 'Large Desktop - 1200px+';
background-color: hsla(10, 50%, 60%, .6);
}
}
@media (min-width: 768px) and (max-width: 979px) {
body::before {
content: 'Portrait tablet to landscape and desktop - > 768px && < 979px';
background-color: hsla(50, 50%, 60%, .6);
}
}
@media (max-width: 767px) {
body::before {
content: 'Phones to Tablets - < 767px';
background-color: hsla(210, 50%, 60%, .6);
}
}
@media (max-width: 480px) {
body::before {
content: 'Phones - < 480px';
background-color: hsla(300, 50%, 60%, .6);
}
}