1
0
mirror of https://github.com/kremalicious/portfolio.git synced 2024-06-30 05:31:44 +02:00
portfolio/src/pages/index.module.css

45 lines
870 B
CSS
Raw Normal View History

2020-03-07 03:11:52 +01:00
.title {
2020-03-22 00:27:33 +01:00
font-size: var(--font-size-h4);
opacity: 0;
position: absolute;
top: 15%;
left: 0;
margin: 0;
z-index: 2;
padding: calc(var(--spacer) / 3) var(--spacer);
color: #fff !important;
2021-03-13 15:48:58 +01:00
background: var(--link-color);
2020-03-22 00:27:33 +01:00
transform: translate3d(0, -1rem, 0);
transition: transform 0.2s ease-out;
2020-03-07 03:11:52 +01:00
}
.project {
2020-03-22 00:27:33 +01:00
display: block;
position: relative;
2020-03-07 03:11:52 +01:00
}
2021-03-13 15:48:58 +01:00
.project:hover .title,
.project:focus .title,
.project:hover .imageCount,
.project:focus .imageCount {
2020-03-22 00:27:33 +01:00
opacity: 1;
transform: translate3d(0, 0, 0);
2020-03-07 03:11:52 +01:00
}
.imageCount {
2020-03-22 00:27:33 +01:00
position: absolute;
bottom: 5%;
right: 2%;
color: var(--brand-cyan);
font-size: var(--font-size-small);
z-index: 10;
opacity: 0;
transform: translate3d(0, calc(var(--spacer) / 2), 0);
transition: transform 0.25s ease-out;
2020-03-07 03:11:52 +01:00
}
.imageCount svg {
2020-03-22 00:27:33 +01:00
width: var(--font-size-base);
height: var(--font-size-base);
2020-03-07 03:11:52 +01:00
}