2023-12-12 01:55:02 +00:00
|
|
|
@use "sass:math";
|
|
|
|
|
2021-01-27 23:30:42 +00:00
|
|
|
$best-item-width: 520;
|
|
|
|
$best-screenshot-width: 504;
|
|
|
|
$best-count: 6;
|
|
|
|
$best-more-count: 6;
|
|
|
|
$best-total-count: $best-count + (2 * $best-more-count);
|
|
|
|
$best-total-width: $best-item-width * $best-total-count;
|
|
|
|
$best-speed: 100; // px per second
|
2023-12-12 01:55:02 +00:00
|
|
|
$best-duration: math.div($best-total-width, $best-speed) * 1s;
|
2024-03-21 16:11:54 +00:00
|
|
|
$best-padding: 1.5rem;
|
2021-01-27 23:30:42 +00:00
|
|
|
$best-height: 386px;
|
|
|
|
|
|
|
|
.bd-best {
|
2024-03-21 16:11:54 +00:00
|
|
|
background-color: var(--bulma-scheme-main);
|
2021-01-27 23:30:42 +00:00
|
|
|
height: calc(#{$best-height} + #{$best-padding * 2});
|
|
|
|
padding: $best-padding 0;
|
|
|
|
overflow: hidden;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.bd-best-list {
|
|
|
|
align-items: stretch;
|
|
|
|
animation-duration: $best-duration;
|
|
|
|
animation-iteration-count: infinite;
|
|
|
|
animation-timing-function: linear;
|
|
|
|
display: flex;
|
|
|
|
left: 0;
|
|
|
|
position: absolute;
|
|
|
|
top: $best-padding;
|
|
|
|
animation-name: bdBestCarousel;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
animation-play-state: paused;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.bd-best-item {
|
|
|
|
flex-grow: 0;
|
|
|
|
flex-shrink: 0;
|
|
|
|
margin-right: ($best-item-width - $best-screenshot-width) * 1px;
|
2024-03-21 16:11:54 +00:00
|
|
|
transition-duration: var(--bulma-duration);
|
2021-01-27 23:30:42 +00:00
|
|
|
transition-property: box-shadow, transform;
|
|
|
|
width: $best-screenshot-width * 1px;
|
|
|
|
|
|
|
|
&.bd-is-medium {
|
|
|
|
font-size: 1.125em;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.bd-is-large {
|
|
|
|
font-size: 1.25em;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.bd-is-huge {
|
|
|
|
font-size: 1.5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
box-shadow: 0 1em 1em rgba(black, 0.1);
|
|
|
|
transform: translateY(-0.5em);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.bd-screenshot {
|
|
|
|
align-self: flex-start;
|
|
|
|
display: block;
|
2024-03-21 16:11:54 +00:00
|
|
|
transition-duration: var(--bulma-duration);
|
2021-01-27 23:30:42 +00:00
|
|
|
transition-property: box-shadow, transform;
|
|
|
|
|
|
|
|
&,
|
|
|
|
img {
|
2024-03-21 16:11:54 +00:00
|
|
|
border-radius: var(--bulma-radius-large);
|
2021-01-27 23:30:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
img {
|
|
|
|
display: inline-block;
|
|
|
|
height: auto;
|
|
|
|
vertical-align: top;
|
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes bdBestCarousel {
|
|
|
|
100% {
|
|
|
|
transform: translateX(
|
|
|
|
calc(-100% + #{$best-item-width * $best-more-count * 1px})
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|