More actions
Content deleted Content added
Created page with "#home-editing { display: flex; flex-direction: column; justify-content: space-between; } .home-editing__stats { display: flex; }" |
No edit summary |
||
Line 1: | Line 1: | ||
.home-grid { |
|||
display: grid; |
|||
grid: auto-flow dense/repeat( auto-fit, minmax( 9.375rem, 1fr ) ); |
|||
grid-auto-rows: minmax( 3rem, auto ); |
|||
grid-gap: 3px; |
|||
} |
|||
.home-grid--col2 { |
|||
grid-template-columns: 1fr 1fr; |
|||
} |
|||
.home-grid .external { |
|||
background-image: none; |
|||
} |
|||
.home-badge { |
|||
display: flex; |
display: flex; |
||
gap: 2px; |
|||
flex-direction: column; |
|||
font-size: 0.75rem; |
|||
padding: 2px; |
|||
background: var(--color-surface-2); |
|||
color: grey; |
|||
border-radius: 20px; |
|||
font-weight: 500; |
|||
letter-spacing: 0.025em; |
|||
line-height: 2px; |
|||
} |
|||
.home-card { |
|||
position: relative; |
|||
padding: 10px; |
|||
background: var( --color-surface-1 ); |
|||
border-radius: 10px; |
|||
font-size: 0.75rem; |
|||
} |
|||
.home-card .timeline { |
|||
margin-top: 3px; |
|||
} |
|||
.home-card--col2 { |
|||
grid-column: span 2; |
|||
} |
|||
.home-card--row3 { |
|||
grid-row: span 3; |
|||
} |
|||
.home-card--row4 { |
|||
grid-row: span 4; |
|||
} |
|||
.home-card--row8 { |
|||
grid-row: span 8 / auto; |
|||
} |
|||
.home-card__badge, |
|||
.home-card__label { |
|||
color: grey; |
|||
font-size: 0.6rem; |
|||
letter-spacing: 0.05em; |
|||
} |
|||
.home-card__badge { |
|||
padding: 2px; |
|||
border-radius: 5px; |
|||
background: var( --color-surface-2 ); |
|||
} |
|||
.home-card__header { |
|||
color: white; |
|||
font-size: 1rem; |
|||
font-weight: 600; |
|||
line-height: 3px; |
|||
} |
|||
.home-card__header a { |
|||
display: flex; |
|||
align-items: center; |
|||
justify-content: space-between; |
justify-content: space-between; |
||
} |
} |
||
.home- |
.home-card__header a:after { |
||
content: '▶'; |
|||
font-size: 0.5rem; |
|||
} |
|||
.home-card__background { |
|||
position: absolute; |
|||
top: 0; |
|||
bottom: 0; |
|||
left: 0; |
|||
right: 0; |
|||
} |
|||
.home-card__background:after { |
|||
position: absolute; |
|||
top: 0; |
|||
bottom: 0; |
|||
left: 0; |
|||
right: 0; |
|||
display: block; |
|||
background: linear-gradient(to right,#000,transparent); |
|||
content: ""; |
|||
transition: transform 250ms ease; |
|||
} |
|||
.home-card__background picture, |
|||
.home-card__background img { |
|||
width: 100%; |
|||
height: 100%; |
|||
} |
|||
.home-card__background img { |
|||
object-fit: cover; |
|||
object-position: center; |
|||
} |
|||
.home-card__foreground { |
|||
position: absolute; |
|||
top: 0; |
|||
bottom: 0; |
|||
left: 0; |
|||
right: 0; |
|||
padding: 10px; |
|||
display: flex; |
display: flex; |
||
flex-direction: column; |
|||
justify-content: center; |
|||
gap: 2px; |
|||
color: #fff; |
|||
line-height: 2px; |
|||
} |
|||
.home-card__foreground .home-card__badge { |
|||
position: absolute; |
|||
top: 0; |
|||
right: 0; |
|||
border-top-left-radius: 0; |
|||
border-bottom-right-radius: 0; |
|||
} |
|||
.home-card__foreground .home-card__header { |
|||
color: #fff; |
|||
} |
|||
.home-card__foreground .home-card__label { |
|||
color: #bababa; |
|||
} |
|||
.home-card p { |
|||
margin-top: 3px; |
|||
font-size: 0.75rem; |
|||
} |
|||
.home-card.home-card--button { |
|||
overflow: hidden; |
|||
padding: 0; |
|||
border: 0; |
|||
} |
|||
.home-card--button a { |
|||
display: flex; |
|||
height: 100%; |
|||
justify-content: center; |
|||
align-items: center; |
|||
padding: 10px; |
|||
background: transparent; |
|||
color: #fff; |
|||
font-weight: 600; |
|||
} |
|||
.home-card--button .home-card__background a { |
|||
padding: 0; |
|||
} |
|||
.home-card--button img { |
|||
transition: transform 250ms ease; |
|||
} |
|||
.home-card--button:hover img { |
|||
transform: scale( 1.1 ); |
|||
} |
|||
.home-link { |
|||
display: grid; |
|||
margin-top: 3px; |
|||
font-size: 0.75rem; |
|||
font-weight: 600; |
|||
grid-gap: 3px; |
|||
text-align: center; |
|||
} |
|||
.home-link__button { |
|||
display: flex; |
|||
} |
|||
.home-link__button a { |
|||
flex-grow: 1; |
|||
padding: 3px; |
|||
border: 1px solid grey; |
|||
background: var( --color-surface-2 ); |
|||
border-radius: 10px; |
|||
color: white; |
|||
line-height: 2px; |
|||
text-decoration: none; |
|||
} |
|||
.home-link__button a:hover { |
|||
background: var( --color-surface-2--hover ); |
|||
} |
|||
.home-link__button a:active { |
|||
background: var( --color-surface-2--active ); |
|||
} |
|||
#home-content { |
|||
margin-top: 20px; |
|||
} |
|||
.home-card .template-statsbar { |
|||
margin: 0; |
|||
} |
|||
#home-card-discord { |
|||
background: #5865f2; |
|||
} |
|||
#home-card-patreon { |
|||
background: #ff424d; |
|||
} |
|||
#home-card-kofi { |
|||
background: #ff5e5b; |
|||
} |
|||
#home-card-reddit { |
|||
background: #ff4500; |
|||
} |
|||
.home-footer { |
|||
font-size: 0.75rem; |
|||
font-family: monospace; |
|||
text-align: center; |
|||
} |
} |
Revision as of 07:43, 28 September 2024
.home-grid {
display: grid;
grid: auto-flow dense/repeat( auto-fit, minmax( 9.375rem, 1fr ) );
grid-auto-rows: minmax( 3rem, auto );
grid-gap: 3px;
}
.home-grid--col2 {
grid-template-columns: 1fr 1fr;
}
.home-grid .external {
background-image: none;
}
.home-badge {
display: flex;
gap: 2px;
font-size: 0.75rem;
padding: 2px;
background: var(--color-surface-2);
color: grey;
border-radius: 20px;
font-weight: 500;
letter-spacing: 0.025em;
line-height: 2px;
}
.home-card {
position: relative;
padding: 10px;
background: var( --color-surface-1 );
border-radius: 10px;
font-size: 0.75rem;
}
.home-card .timeline {
margin-top: 3px;
}
.home-card--col2 {
grid-column: span 2;
}
.home-card--row3 {
grid-row: span 3;
}
.home-card--row4 {
grid-row: span 4;
}
.home-card--row8 {
grid-row: span 8 / auto;
}
.home-card__badge,
.home-card__label {
color: grey;
font-size: 0.6rem;
letter-spacing: 0.05em;
}
.home-card__badge {
padding: 2px;
border-radius: 5px;
background: var( --color-surface-2 );
}
.home-card__header {
color: white;
font-size: 1rem;
font-weight: 600;
line-height: 3px;
}
.home-card__header a {
display: flex;
align-items: center;
justify-content: space-between;
}
.home-card__header a:after {
content: '▶';
font-size: 0.5rem;
}
.home-card__background {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
.home-card__background:after {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
display: block;
background: linear-gradient(to right,#000,transparent);
content: "";
transition: transform 250ms ease;
}
.home-card__background picture,
.home-card__background img {
width: 100%;
height: 100%;
}
.home-card__background img {
object-fit: cover;
object-position: center;
}
.home-card__foreground {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
padding: 10px;
display: flex;
flex-direction: column;
justify-content: center;
gap: 2px;
color: #fff;
line-height: 2px;
}
.home-card__foreground .home-card__badge {
position: absolute;
top: 0;
right: 0;
border-top-left-radius: 0;
border-bottom-right-radius: 0;
}
.home-card__foreground .home-card__header {
color: #fff;
}
.home-card__foreground .home-card__label {
color: #bababa;
}
.home-card p {
margin-top: 3px;
font-size: 0.75rem;
}
.home-card.home-card--button {
overflow: hidden;
padding: 0;
border: 0;
}
.home-card--button a {
display: flex;
height: 100%;
justify-content: center;
align-items: center;
padding: 10px;
background: transparent;
color: #fff;
font-weight: 600;
}
.home-card--button .home-card__background a {
padding: 0;
}
.home-card--button img {
transition: transform 250ms ease;
}
.home-card--button:hover img {
transform: scale( 1.1 );
}
.home-link {
display: grid;
margin-top: 3px;
font-size: 0.75rem;
font-weight: 600;
grid-gap: 3px;
text-align: center;
}
.home-link__button {
display: flex;
}
.home-link__button a {
flex-grow: 1;
padding: 3px;
border: 1px solid grey;
background: var( --color-surface-2 );
border-radius: 10px;
color: white;
line-height: 2px;
text-decoration: none;
}
.home-link__button a:hover {
background: var( --color-surface-2--hover );
}
.home-link__button a:active {
background: var( --color-surface-2--active );
}
#home-content {
margin-top: 20px;
}
.home-card .template-statsbar {
margin: 0;
}
#home-card-discord {
background: #5865f2;
}
#home-card-patreon {
background: #ff424d;
}
#home-card-kofi {
background: #ff5e5b;
}
#home-card-reddit {
background: #ff4500;
}
.home-footer {
font-size: 0.75rem;
font-family: monospace;
text-align: center;
}