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 165: Line 165:
justify-content: center;
justify-content: center;
align-items: center;
align-items: center;
padding: 0 1rem;
padding: 1rem; /* change it to 0 1rem */
background: transparent;
background: transparent;
color: #fff;
color: #fff;
Line 172: Line 172:


.home-card--button .home-card__background a {
.home-card--button .home-card__background a {
padding: 0;
padding: 0.25rem; /* change to 0 */
}
}



Revision as of 09:55, 4 October 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: rgb(68, 83, 121); /* var( --color-surface-1 );*/
	border-radius: 8px;
	border-width: 0.02rem;
	border-style: solid;
	border-color: #ffdf91;
	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: #ffdf91; /*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;
	inset: 0;
}

.home-card__background:after {
	position: absolute;
	pointer-events: none;
	inset: 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: 1rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.25rem;
	color: #fff;
	line-height: 1.25rem;
	border-width: 0.02rem;
	border-style: solid;
	border-color: #ffdf91;
}

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

.home-card--button .home-card__background a {
	padding: 0.25rem; /* change to 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.