Portfolio/pages/AllProjects.css

71 lines
1,010 B
CSS
Raw Normal View History

2023-01-07 14:21:27 +00:00
h1{
font-size: 2rem;
2021-09-17 23:22:11 +01:00
}
2021-09-17 23:30:49 +01:00
h2{
margin-bottom: 10vh;
}
2021-09-17 23:22:11 +01:00
.item{
display: flex;
margin-top: 4vh;
}
.itemText{
padding: 10px;
2021-09-25 12:10:45 +01:00
}
2023-01-07 14:21:27 +00:00
.galleryLinkContainer{
text-decoration: none;
transition: background-color 0.5s;
color: var(--secondary);
}
.galleryLinkContainer:hover{
background-color: var(--highlight);
color: var(--base);
}
.galleryLinkContainer:hover, .galleryLinkContainer:hover a{
color: var(--base);
}
.galleryImage{
min-width: 100%;
margin-bottom: 20px;
overflow: clip;
visibility: hidden;
max-height: 0px;
transition: max-height 1s;
-moz-transition: max-height 1s;
}
.galleryImage img{
width: 100%;
max-height: 100%;
object-fit: cover;
object-position: center center;
}
.galleryLinkContainer:hover .galleryImage{
visibility: visible;
max-height: 20vh;
}
.galleryImage:hover{
visibility: visible;
max-height: 20vh;
}
/* overwriting <a> effects */
a.galleryLink{
text-decoration: none;
}