feat: add card shortcodes

This commit is contained in:
Xin
2023-07-28 22:10:48 +01:00
parent 50b1b7db68
commit ba1257a188
5 changed files with 54 additions and 9 deletions

29
assets/css/cards.css Normal file
View File

@ -0,0 +1,29 @@
.hextra-cards {
grid-template-columns: repeat(auto-fill, minmax(max(250px, calc((100% - 1rem * 2) / var(--rows))), 1fr));
}
.hextra-card img {
user-select: none;
}
.hextra-card:hover svg {
color: currentColor;
}
.hextra-card svg {
width: 1.5rem;
color: #00000033;
transition: color 0.3s ease;
}
.hextra-card p {
margin-top: 0.5rem;
}
.dark .hextra-card svg {
color: #ffffff66;
}
.dark .hextra-card:hover svg {
color: currentColor;
}

View File

@ -3,7 +3,7 @@
@tailwind utilities;
@import "typography.css";
@import "cards.css";
html {
@apply text-base antialiased;