Открыть меню
Переключить меню настроек
Открыть персональное меню
Вы не представились системе
Ваш IP-адрес будет виден всем, если вы внесёте какие-либо изменения.

Шаблон:Навигация/styles.css: различия между версиями

Материал из Space Station 14 | Время приключений Вики
Torgovec (обсуждение | вклад)
м Убрали подчеркивание для ссылки
Torgovec (обсуждение | вклад)
м Не убрали. Перепишем
Строка 16: Строка 16:
.home-card {
.home-card {
position: relative;
position: relative;
padding: 1em;
padding: 0;
background: white;
background: #242a31;
border: 1px solid;
border: 0;
border-radius: 8px;
border-radius: 8px;
box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.04 ), 0 3px 6px rgba( 0, 0, 0, 0.0575 );
box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.04 ), 0 3px 6px rgba( 0, 0, 0, 0.0575 );
font-size: 0.875rem;
font-size: 0.875rem;
overflow: hidden;
}
}


Строка 53: Строка 54:
color: silver;
color: silver;
font-size: 1rem;
font-size: 1rem;
    font-weight: normal;
font-weight: normal;
    line-height: normal;
line-height: normal;
}
}


Строка 68: Строка 69:
}
}


/* ФОНОВЫЙ БЛОК (Картинка и Затемнение) */
.home-card__background {
.home-card__background {
position: absolute;
position: absolute;
Строка 76: Строка 78:
background: #242a31;
background: #242a31;
border-radius: 8px;
border-radius: 8px;
z-index: 0;
}
}


/* Затемняющий градиент поверх картинки */
.home-card__background:after {
.home-card__background:after {
position: absolute;
position: absolute;
Строка 83: Строка 87:
bottom: 0;
bottom: 0;
left: 0;
left: 0;
    right: 0;
right: 0;
    display: block;
display: block;
    background: linear-gradient(to right,#000,transparent);
background: linear-gradient(to right, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.4));
    content: "";
content: "";
z-index: 1;
}
}


Строка 98: Строка 103:
object-fit: cover;
object-fit: cover;
object-position: center;
object-position: center;
filter: brightness(0.5);
filter: brightness(0.6);
transition: filter 0.2s ease, transform 0.2s ease;
transition: filter 0.2s ease, transform 0.2s ease;
}
}


.home-card--button:hover img {
.home-card--button:hover img {
filter: brightness(0.7);
filter: brightness(0.85);
transform: scale(1.1);
transform: scale(1.1);
}
}


.home-card__background a {
/* Скрытие служебных ссылок отсутствующих файлов */
display: block;
.home-card__background a.new {
width: 100%;
display: none;
height: 100%;
}
}


/* ВЕРХНИЙ СЛОЙ (Ссылка и Текст) */
.home-card__foreground {
.home-card__foreground {
position: absolute;
position: absolute;
Строка 119: Строка 124:
left: 0;
left: 0;
right: 0;
right: 0;
padding: 1em;
z-index: 2;
}
 
/* Ссылка растягивается на ВСЮ карточку */
.home-card__foreground a {
display: flex;
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
align-items: center;
justify-content: center;
justify-content: center;
gap: 10%;
padding: 1em;
box-sizing: border-box;
color: #fff;
color: #fff;
line-height: normal;
font-weight: 500;
z-index: 1;
text-decoration: none;
text-decoration: none;
text-align: center;
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}
}


.home-card__foreground .home-card__header {
.home-card__foreground a:hover {
color: #fff;
color: #fff;
}
text-decoration: none;
 
.home-card__foreground .home-card__label {
color: #bababa;
}
}


Строка 141: Строка 151:
margin-top: 0;
margin-top: 0;
font-size: 0.875rem;
font-size: 0.875rem;
}
.home-card.home-card--button {
overflow: hidden;
padding: 0;
background: #242a31;
border: 0;
}
.home-card--button a {
display: flex;
height: 100%;
justify-content: center;
align-items: center;
padding: 0;
background: transparent;
color: #fff;
font-weight: 500;
}
.home-card--button .home-card__background a {
padding: 0;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 2;
}
.home-card__background {
z-index: 0;
}
.home-card--button img {
transition: transform 0.2s ease;
}
.home-card--button:hover img {
transform: scale(1.1);
}
}


Строка 203: Строка 173:
border-radius: 30px;
border-radius: 30px;
color: green;
color: green;
    line-height: normal;
line-height: normal;
    text-decoration: none;
text-decoration: none;
}
 
.home-link__button a:hover {
background: green;
}
 
.home-link__button a:active {
background: green;
}
}


#home-content {
#home-content {
margin-top: 0;
margin-top: 0;
}
.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;
}
}


Строка 247: Строка 189:
#home-nav {
#home-nav {
margin-top: 1rem;
margin-top: 1rem;
}
#home-nav .home-card__foreground {
    font-weight: normal;
}
}

Версия от 10:50, 6 октября 2026

.home-grid {
	display: grid;
	grid: auto-flow dense/repeat( auto-fit, minmax( 9.375rem, 1fr ) );
	grid-auto-rows: minmax( 4rem, auto );
	grid-gap: calc(35px + 10%);
}

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

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

.home-card {
	position: relative;
	padding: 0;
	background: #242a31;
	border: 0;
	border-radius: 8px;
	box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.04 ), 0 3px 6px rgba( 0, 0, 0, 0.0575 );
	font-size: 0.875rem;
	overflow: hidden;
}

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

.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__label {
	color: silver;
	font-size: 0.8125rem;
	letter-spacing: 0.75px;
}

.home-card__header {
	color: silver;
	font-size: 1rem;
	font-weight: normal;
	line-height: normal;
}

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

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

/* ФОНОВЫЙ БЛОК (Картинка и Затемнение) */
.home-card__background {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: #242a31;
	border-radius: 8px;
	z-index: 0;
}

/* Затемняющий градиент поверх картинки */
.home-card__background:after {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	display: block;
	background: linear-gradient(to right, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.4));
	content: "";
	z-index: 1;
}

.home-card__background picture,
.home-card__background img {
	width: 100%;
	height: 100%;
}

.home-card__background img {
	object-fit: cover;
	object-position: center;
	filter: brightness(0.6);
	transition: filter 0.2s ease, transform 0.2s ease;
}

.home-card--button:hover img {
	filter: brightness(0.85);
	transform: scale(1.1);
}

/* Скрытие служебных ссылок отсутствующих файлов */
.home-card__background a.new {
	display: none;
}

/* ВЕРХНИЙ СЛОЙ (Ссылка и Текст) */
.home-card__foreground {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 2;
}

/* Ссылка растягивается на ВСЮ карточку */
.home-card__foreground a {
	display: flex;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
	padding: 1em;
	box-sizing: border-box;
	color: #fff;
	font-weight: 500;
	text-decoration: none;
	text-align: center;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.home-card__foreground a:hover {
	color: #fff;
	text-decoration: none;
}

.home-card p {
	margin-top: 0;
	font-size: 0.875rem;
}

.home-link {
	display: grid;
	margin-top: 0;
	font-size: 0.875rem;
	font-weight: 500;
	grid-gap: 0;
	text-align: center;
}

.home-link__button {
	display: flex;
}

.home-link__button a {
	flex-grow: 1;
	padding: 1em;
	border: 1px solid;
	background: green;
	border-radius: 30px;
	color: green;
	line-height: normal;
	text-decoration: none;
}

#home-content {
	margin-top: 0;
}

.home-footer {
	font-size: 0.8125rem;
	font-family: monospace;
	text-align: center;
}

#home-nav {
	margin-top: 1rem;
}