style: add zoom effect on card hover

This commit is contained in:
Oliver Booth 2023-12-26 20:34:21 +00:00
parent f35bcd3a24
commit de41078365
Signed by: oliverbooth
GPG Key ID: E60B570D1B7557B5

View File

@ -183,13 +183,38 @@ article {
background: #000; background: #000;
box-shadow: 0 0 15px rgba(0, 0, 0, .1); box-shadow: 0 0 15px rgba(0, 0, 0, .1);
.project-image a { &:hover {
.project-image {
img {
transform: scale(110%);
}
p.project-title {
font-size: 1.2em;
margin: calc(-35px - .2em) 0 0;
}
}
}
.project-image {
overflow: hidden;
img {
z-index: -2;
transform: scale(100%);
transition: transform 500ms;
}
a {
&:link, &:visited, &:hover &:active { &:link, &:visited, &:hover &:active {
color: #fff; color: #fff;
} }
} }
.project-image p.project-title { p.project-title {
font-size: 1em;
transition: font-size 500ms, margin 500ms;
position: relative; position: relative;
bottom: 0; bottom: 0;
width: 100%; width: 100%;
@ -197,6 +222,7 @@ article {
padding: 5px; padding: 5px;
background-color: rgba(#000, 50%); background-color: rgba(#000, 50%);
} }
}
} }
.blog-card { .blog-card {
@ -320,7 +346,7 @@ a.brand-linkedin {
} }
table.reading-list { table.reading-list {
th,td { th, td {
vertical-align: middle; vertical-align: middle;
} }
} }