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

28 lines
440 B
SCSS
Raw Normal View History

@mixin placeholder {
2019-01-08 11:58:05 -05:00
animation: pulse 2s infinite ease-in-out;
2019-06-27 02:18:45 -04:00
background-color: $lbry-gray-1;
border-radius: var(--card-radius);
2019-06-28 18:21:21 -04:00
[data-mode='dark'] & {
2019-07-01 13:42:32 -05:00
background-color: var(--dm-color-04);
2019-06-28 18:21:21 -04:00
}
}
@mixin mediaThumbHoverZoom {
2019-07-21 17:31:22 -04:00
.media__thumb,
img {
transition: all 0.2s ease;
}
&:hover {
2019-07-21 17:31:22 -04:00
.media__thumb,
img {
transform: scale(1.05);
}
}
}
2019-06-27 16:27:38 -04:00
@mixin focus {
box-shadow: 0 0 0 2px $lbry-blue-1;
}