1
Fork 0
mirror of https://github.com/Steffo99/steffoweb.git synced 2024-11-25 17:44:30 +00:00
steffoweb/components/ProjectPanel.module.css

89 lines
2.1 KiB
CSS
Raw Normal View History

2022-10-16 23:58:17 +00:00
.projectPanel {
flex-basis: 232px !important;
flex-grow: 0 !important;
padding: 0 !important;
overflow: hidden;
2022-10-17 15:33:45 +00:00
text-decoration: none;
2022-10-16 23:58:17 +00:00
}
.projectImage {
border-radius: var(--b-border-radius);
}
.projectPanel:hover .projectImage, .projectPanel:focus .projectImage {
filter: brightness(80%) blur(16px);
}
.projectDescription {
visibility: hidden;
position: absolute;
width: 232px;
height: 116px;
display: flex;
flex-direction: column;
justify-content: center;
align-content: center;
text-align: center;
text-shadow: 1px 1px 0 hsl(var(--bhsl-background-hue) var(--bhsl-background-saturation) var(--bhsl-background-lightness)) !important;
background-color: hsl(var(--bhsl-current-hue) var(--bhsl-current-saturation) var(--bhsl-current-lightness) / 0.075);
border-width: 2px;
border-radius: var(--b-border-radius);
}
.projectDescription h4 {
text-shadow: 1px 1px 0 hsl(var(--bhsl-background-hue) var(--bhsl-background-saturation) var(--bhsl-background-lightness)) !important;
}
.projectPanel:hover .projectDescription, .projectPanel:focus .projectDescription {
visibility: visible;
2022-10-17 15:33:45 +00:00
}
@media (hover: none) or (any-pointer: coarse) {
.projectPanel {
flex-basis: 100% !important;
flex-direction: row !important;
}
.projectDescription {
position: unset;
visibility: visible;
width: unset;
align-content: flex-start;
text-align: left;
text-shadow: none;
background-color: transparent;
border-width: 0;
}
.projectDescription h4 {
text-shadow: none;
text-align: left !important;
}
.projectImage {
border-radius: var(--b-border-radius) 0 0 var(--b-border-radius) !important;
}
.projectPanel:hover .projectImage, .projectPanel:focus .projectImage {
filter: none;
}
.projectPanel:hover, .projectPanel:focus {
--bhsl-current-lightness: calc(var(--bhsl-link-lightness) + 20%);
}
.projectPanel:active {
--bhsl-current-lightness: calc(var(--bhsl-link-lightness) + 40%);
}
}