Add text variant
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
71
assets/css/main/card.css
Normal file
71
assets/css/main/card.css
Normal file
@@ -0,0 +1,71 @@
|
||||
.gh-card+.gh-card {
|
||||
margin-top: 8rem;
|
||||
}
|
||||
|
||||
.gh-card-link {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.gh-card-link:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.gh-card-title {
|
||||
font-size: 3.4rem;
|
||||
font-weight: 600;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
.gh-card-link:hover .gh-card-title {
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
.gh-card-excerpt {
|
||||
margin-top: 1.2rem;
|
||||
font-size: 1.8rem;
|
||||
line-height: 1.5;
|
||||
letter-spacing: -0.01em;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
.gh-card-meta {
|
||||
display: inline-flex;
|
||||
gap: 6px;
|
||||
align-items: center;
|
||||
margin-top: 2rem;
|
||||
font-size: 1.2rem;
|
||||
font-weight: 500;
|
||||
line-height: 1;
|
||||
color: var(--color-secondary-text);
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.gh-card-date {
|
||||
color: var(--ghost-accent-color);
|
||||
}
|
||||
|
||||
.gh-card-meta svg {
|
||||
position: relative;
|
||||
top: -1px;
|
||||
margin-left: 0.6rem;
|
||||
}
|
||||
|
||||
.gh-card-meta>* {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.gh-card-meta>*+*:not(script)::before {
|
||||
width: 2px;
|
||||
height: 2px;
|
||||
content: "";
|
||||
background-color: var(--color-secondary-text);
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.gh-card+.gh-card {
|
||||
margin-top: 6.4rem;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user