Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Main page/shared/styles.css: Difference between revisions

Template page
Content deleted Content added
No edit summary
No edit summary
Line 3: Line 3:
grid: auto-flow dense/repeat( auto-fit, minmax( 9.375rem, 1fr ) );
grid: auto-flow dense/repeat( auto-fit, minmax( 9.375rem, 1fr ) );
grid-auto-rows: minmax( 3rem, auto );
grid-auto-rows: minmax( 3rem, auto );
grid-gap: 10px;
grid-gap: 0.5rem;
}
}


Line 10: Line 10:
}
}


.home-grid .external {
.home-grid a.external {
background-image: none;
background-image: none;
}
}
Line 16: Line 16:
.home-badge {
.home-badge {
display: flex;
display: flex;
gap: 10px;
gap: 0.25rem;
font-size: 0.75rem;
font-size: 0.75rem;
padding: 10px;
padding: 0.25rem 0.5rem;
background: var(--color-surface-2);
background: var(--color-surface-2);
color: grey;
color: var(--color-base);
border-radius: 20px;
border-radius: 3px;
font-weight: 500;
font-weight: 400;
letter-spacing: 0.025em;
letter-spacing: 0.025em;
line-height: 10px;
line-height: 1.25rem;
}
}


.home-card {
.home-card {
position: relative;
position: relative;
padding: 10px;
padding: 1rem;
background: var( --color-surface-1 );
background: var( --color-surface-1 );
border-radius: 10px;
border-radius: 8px;
font-size: 0.75rem;
font-size: 0.875rem;
}
}


.home-card .timeline {
.home-card table.timeline {
margin-top: 10px;
margin-top: 0.5rem;
}
}


Line 57: Line 57:
.home-card__badge,
.home-card__badge,
.home-card__label {
.home-card__label {
color: grey;
color: var( --color-base--subtle );
font-size: 0.6rem;
font-size: 0.75rem;
letter-spacing: 0.05em;
letter-spacing: 0.05em;
}
}


.home-card__badge {
.home-card__badge {
padding: 10px;
padding: 0.25rem 0.5rem;
border-radius: 5px;
border-radius: 3px;
background: var( --color-surface-2 );
background: var( --color-surface-2 );
}
}


.home-card__header {
.home-card__header {
color: white;
color: var( --color-base--emphasized );
font-size: 1rem;
font-size: 1rem;
font-weight: 600;
font-weight: 600;
line-height: 3px;
line-height: 1.25rem;
}
}


Line 83: Line 83:
.home-card__header a:after {
.home-card__header a:after {
content: '▶';
content: '▶';
font-size: 0.5rem;
font-size: 0.75rem;
}
}


.home-card__background {
.home-card__background {
position: absolute;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
}


.home-card__background:after {
.home-card__background:after {
position: absolute;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
display: block;
display: block;
background: linear-gradient(to right,#000,transparent);
background: linear-gradient(to right,#000,transparent);
Line 123: Line 115:
left: 0;
left: 0;
right: 0;
right: 0;
padding: 10px;
padding: 1rem;
display: flex;
display: flex;
flex-direction: column;
flex-direction: column;
justify-content: center;
justify-content: center;
gap: 10px;
gap: 0.25rem;
color: #fff;
color: #fff;
line-height: 5px;
line-height: 1.25rem;
}
}


Line 149: Line 141:


.home-card p {
.home-card p {
margin-top: 3px;
margin-top: 0.5rem;
font-size: 0.75rem;
font-size: 0.875rem;
}
}


Line 164: Line 156:
justify-content: center;
justify-content: center;
align-items: center;
align-items: center;
padding: 10px;
padding: 0 1rem;
background: transparent;
background: transparent;
color: #fff;
color: #fff;
font-weight: 600;
font-weight: 500;
}
}


Line 184: Line 176:
.home-link {
.home-link {
display: grid;
display: grid;
margin-top: 3px;
margin-top: 0.5rem;
font-size: 0.75rem;
font-size: 0.875rem;
font-weight: 600;
font-weight: 500;
grid-gap: 3px;
grid-gap: 0.5rem;
text-align: center;
text-align: center;
}
}
Line 197: Line 189:
.home-link__button a {
.home-link__button a {
flex-grow: 1;
flex-grow: 1;
padding: 3px;
padding: 0.5rem;
border: 1px solid grey;
border: 1px solid rgba( 0, 0, 0, 0.08 );
background: var( --color-surface-2 );
background: var( --color-surface-2 );
border-radius: 10px;
border-radius: 8px;
color: var( --color-base--emphasized ) !important;
color: white;
line-height: 2px;
line-height: 1.25rem;
text-decoration: none;
text-decoration: none !important;
}
}


Line 215: Line 207:


#home-content {
#home-content {
margin-top: 20px;
margin-top: 1.25rem;
}
}


Line 239: Line 231:


.home-footer {
.home-footer {
font-size: 0.75rem;
font-size: 0.875rem;
font-family: monospace;
font-family: monospace;
text-align: center;
text-align: center;

Revision as of 14:20, 29 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: 0.5rem;
}

.home-grid--col2 {
	grid-template-columns: 1fr 1fr;
}

.home-grid a.external {
	background-image: none;
}

.home-badge {
	display: flex;
    gap: 0.25rem;
	font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: var(--color-surface-2);
    color: var(--color-base);
    border-radius: 3px;
    font-weight: 400;
    letter-spacing: 0.025em;
    line-height: 1.25rem;
}

.home-card {
	position: relative;
	padding: 1rem;
	background: var( --color-surface-1 );
	border-radius: 8px;
	font-size: 0.875rem;
}

.home-card table.timeline {
	margin-top: 0.5rem;
}

.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: var( --color-base--subtle );
	font-size: 0.75rem;
	letter-spacing: 0.05em;
}

.home-card__badge {
	padding: 0.25rem 0.5rem;
	border-radius: 3px;
	background: var( --color-surface-2 );
}

.home-card__header {
	color: var( --color-base--emphasized );
	font-size: 1rem;
    font-weight: 600;
    line-height: 1.25rem;
}

.home-card__header a {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.home-card__header a:after {
	content: '▶';
	font-size: 0.75rem;
}

.home-card__background {
	position: absolute;
}

.home-card__background:after {
	position: absolute;
    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: 1rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.25rem;
	color: #fff;
	line-height: 1.25rem;
}

.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: 0.5rem;
	font-size: 0.875rem;
}

.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: 0 1rem;
	background: transparent;
	color: #fff;
	font-weight: 500;
}

.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: 0.5rem;
	font-size: 0.875rem;
	font-weight: 500;
	grid-gap: 0.5rem;
	text-align: center;
}

.home-link__button {
	display: flex;
}

.home-link__button a {
	flex-grow: 1;
	padding: 0.5rem;
	border: 1px solid rgba( 0, 0, 0, 0.08 );
	background: var( --color-surface-2 );
	border-radius: 8px;
	color: var( --color-base--emphasized ) !important;
    line-height: 1.25rem;
    text-decoration: none !important;
}

.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: 1.25rem;
}

.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.875rem;
	font-family: monospace;
	text-align: center;
}
Cookies help us deliver our services. By using our services, you agree to our use of cookies. We only use cookie to make the site function and save your preferences, nothing else.