mirror of https://github.com/requarks/wiki
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
696 B
39 lines
696 B
.ty-image-wrapper {
|
|
@include elevation(2);
|
|
display: block;
|
|
overflow: hidden;
|
|
margin: 12px 0;
|
|
border-radius: 4px;
|
|
position: relative;
|
|
text-decoration: none;
|
|
color: currentColor;
|
|
}
|
|
|
|
.ty-image-overlay {
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
transition-property: opacity, visibility;
|
|
transition-timing-function: ease;
|
|
transition-duration: .3s;
|
|
color: #fff;
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
padding: 1rem;
|
|
pointer-events: none;
|
|
|
|
a, button {
|
|
pointer-events: all;
|
|
color: currentColor !important;
|
|
}
|
|
}
|
|
|
|
.ty-image-wrapper:hover .ty-image-overlay {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
}
|