1
Fork 0
mirror of https://github.com/Steffo99/steffoweb.git synced 2024-11-21 23:54:30 +00:00
steffoweb/components/LinkPanel.module.css
2023-05-28 04:37:00 +02:00

50 lines
No EOL
922 B
CSS

.linkPanel {
display: grid;
grid-template-areas:
"icon text"
"desc desc"
;
grid-template-columns: auto 1fr;
grid-template-rows: auto 1fr;
grid-row-gap: 0;
white-space: nowrap;
text-decoration: none;
flex-basis: calc(50% - 4px);
flex-grow: 1;
}
@media (max-width: 492px) {
.linkPanel {
width: 100%;
}
}
.linkPanel[href]:hover, .linkPanel[href]:focus {
--bhsl-current-lightness: calc(var(--bhsl-link-lightness) + 20%);
}
.linkPanel[href]:active {
--bhsl-current-lightness: calc(var(--bhsl-link-lightness) + 40%);
}
.linkPanelIcon {
grid-area: icon;
justify-self: center;
align-self: center;
width: 20px;
}
.linkPanelText {
grid-area: text;
align-self: center;
text-decoration: 1px solid underline currentColor;
}
.linkPanelDescription {
grid-area: desc;
white-space: normal;
align-self: start;
}