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 205: Line 205:
padding: 0.5rem;
padding: 0.5rem;
border: 1px solid rgba( 0, 0, 0, 0.08 );
border: 1px solid rgba( 0, 0, 0, 0.08 );
background: #19053C; /*rgb(31 17 63); /*var( --color-surface-2 ); */
background: #476cc2; /*rgb(31 17 63); /*var( --color-surface-2 ); */
border-radius: 8px;
border-radius: 8px;
border-color: rgba(232,133,16,0.35);
border-color: rgba(232,133,16,0.35);
color: #fa8803 !important; /* var( --color-base--emphasized ) !important; */
color: #fff !important; /* var( --color-base--emphasized ) !important; */
line-height: 1.25rem;
line-height: 1.25rem;
text-decoration: none !important;
text-decoration: none !important;
Line 214: Line 214:


.home-link__button a:hover {
.home-link__button a:hover {
background: #321b65;
background: #476cc2;
color: #ffdf91 !important;
color: #fa8803 !important;
}
}



Revision as of 02:42, 14 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: #303f6f; /*rgb(12, 15, 43);  var( --color-surface-1 );*/
	border-radius: 8px;
	border-width: 0.02rem;
	border-style: solid;
	border-color: #f8d688;
	font-size: 0.875rem;
}

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

.home-card--col2 {
	grid-column: span 2;
}

.home-card--col4 {   /* addition */
	grid-column: span 4;
}

.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: 10px;
	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-radius: 8px;
	border-width: 0.02rem;
	border-style: solid;
	border-color: #f8d688;
}

.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: #476cc2; /*rgb(31 17 63); /*var( --color-surface-2 ); */
	border-radius: 8px;
	border-color: rgba(232,133,16,0.35);
	color: #fff !important; /* var( --color-base--emphasized ) !important; */
    line-height: 1.25rem;
    text-decoration: none !important;
}

.home-link__button a:hover {
	background: #476cc2;
	color: #fa8803 !important;
}

.home-link__button a:active {
	background: #fa8803;
}

#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.