lbry-desktop/ui/scss/init/_mixins.scss

50 lines
927 B
SCSS
Raw Normal View History

@mixin placeholder {
2019-01-08 17:58:05 +01:00
animation: pulse 2s infinite ease-in-out;
2019-11-22 22:13:00 +01:00
background-color: var(--color-placeholder-background);
border-radius: var(--card-radius);
}
@mixin mediaThumbHoverZoom {
2019-07-21 23:31:22 +02:00
.media__thumb,
img {
transition: all 0.2s ease;
}
&:hover {
2019-07-21 23:31:22 +02:00
.media__thumb,
img {
transform: scale(1.05);
}
}
}
2020-05-28 19:07:04 +02:00
@mixin handleClaimTileGifThumbnail($width) {
.ff-canvas,
.freezeframe-img {
height: calc(#{$width} * (9 / 16)) !important;
width: $width;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
}
@mixin handleClaimListGifThumbnail($width) {
2020-05-28 19:07:04 +02:00
.ff-canvas,
.freezeframe-img {
height: calc(#{$width} * (9 / 16)) !important;
width: $width;
}
}
@mixin handleChannelGif($size) {
height: $size;
width: $size;
.ff-canvas,
.freezeframe-img {
border-radius: var(--border-radius);
height: $size !important;
width: $size !important;
}
}