2019-09-13 08:44:21 +00:00
|
|
|
@import '_variables';
|
|
|
|
|
|
|
|
@mixin panel($width, $max-width) {
|
|
|
|
max-width: $max-width;
|
|
|
|
margin: 0 auto;
|
|
|
|
float: none;
|
|
|
|
border-radius: 0;
|
|
|
|
position: relative;
|
|
|
|
width: $width;
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin play-button {
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
z-index: 1;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
.overlay-circle {
|
|
|
|
border-color: $accent;
|
|
|
|
}
|
|
|
|
|
|
|
|
.overlay-triangle {
|
|
|
|
border-color: transparent transparent transparent $accent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin breakable {
|
|
|
|
overflow: hidden;
|
|
|
|
overflow-wrap: break-word;
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin ellipsis {
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin center-panel($bg) {
|
|
|
|
padding: 12px;
|
|
|
|
border-radius: 4px;
|
|
|
|
display: flex;
|
|
|
|
background: $bg;
|
|
|
|
box-shadow: 0 0 15px $shadow_dark;
|
|
|
|
margin: auto;
|
|
|
|
margin-top: -50px;
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin input-colors {
|
|
|
|
&:hover {
|
|
|
|
border-color: $accent;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
border-color: $accent_light;
|
|
|
|
}
|
|
|
|
}
|
2019-09-18 23:01:47 +00:00
|
|
|
|
2019-09-19 21:36:21 +00:00
|
|
|
@mixin search-resize($width, $rows) {
|
2019-09-18 23:01:47 +00:00
|
|
|
@media(max-width: $width) {
|
|
|
|
.search-toggles {
|
|
|
|
grid-template-columns: repeat($rows, auto);
|
|
|
|
}
|
|
|
|
|
|
|
|
#search-panel-toggle:checked ~ .search-panel {
|
2019-09-19 21:36:21 +00:00
|
|
|
@if $rows == 6 {
|
|
|
|
max-height: 200px !important;
|
|
|
|
}
|
|
|
|
@if $rows == 5 {
|
|
|
|
max-height: 300px !important;
|
|
|
|
}
|
|
|
|
@if $rows == 4 {
|
|
|
|
max-height: 300px !important;
|
|
|
|
}
|
|
|
|
@if $rows == 3 {
|
|
|
|
max-height: 365px !important;
|
|
|
|
}
|
2019-09-18 23:01:47 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin create-toggle($elem, $height) {
|
|
|
|
##{$elem}-toggle {
|
|
|
|
display: none;
|
|
|
|
|
|
|
|
&:checked ~ .#{$elem} {
|
|
|
|
max-height: $height;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:checked ~ label .icon-down:before {
|
|
|
|
transform: rotate(180deg) translateY(-1px);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|