personal-site/css/overlay.css

38 lines
742 B
CSS
Raw Normal View History

2024-05-16 21:23:54 +00:00
.overlay-container {
position: relative;
2024-10-07 21:42:25 +00:00
text-align: center;
width: 100%;
2024-05-16 21:23:54 +00:00
}
.overlay-container .image {
display: block;
width: 100%;
height: auto;
}
.overlay-container .overlay-mask {
position: absolute;
inset: 0;
2024-05-16 21:23:54 +00:00
height: 100%;
width: 100%;
background-color: rgb(0 0 0 / 0%);
color: rgb(0 0 0 / 0%);
2024-05-16 21:23:54 +00:00
transition-property: color, background-color;
transition-duration: 0.25s, 0.25s;
transition-timing-function: ease-in-out;
}
.overlay-container:hover .overlay-mask {
background-color: rgb(0 0 0 / 70%);
color: rgb(255 255 255 / 100%);
2024-05-16 21:23:54 +00:00
}
.overlay-container .overlay-content {
padding-left: 15%;
padding-right: 15%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
text-decoration: none;
}