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

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

Материал из Space Station 14 | Время приключений Вики
Torgovec (обсуждение | вклад)
м Не убрали. Перепишем
Torgovec (обсуждение | вклад)
м нашел проблему и вернул прошлую версию
Строка 16: Строка 16:
.home-card {
.home-card {
position: relative;
position: relative;
padding: 0;
padding: 1em;
background: #242a31;
background: white;
border: 0;
border: 1px solid;
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;
}
}


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


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


/* ФОНОВЫЙ БЛОК (Картинка и Затемнение) */
.home-card__background {
.home-card__background {
position: absolute;
position: absolute;
Строка 78: Строка 76:
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;
Строка 87: Строка 83:
bottom: 0;
bottom: 0;
left: 0;
left: 0;
right: 0;
    right: 0;
display: block;
    display: block;
background: linear-gradient(to right, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.4));
    background: linear-gradient(to right,#000,transparent);
content: "";
    content: "";
z-index: 1;
}
}


Строка 103: Строка 98:
object-fit: cover;
object-fit: cover;
object-position: center;
object-position: center;
filter: brightness(0.6);
filter: brightness(0.5);
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.85);
filter: brightness(0.7);
transform: scale(1.1);
transform: scale(1.1);
}
}


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


/* ВЕРХНИЙ СЛОЙ (Ссылка и Текст) */
.home-card__foreground {
.home-card__foreground {
position: absolute;
position: absolute;
Строка 124: Строка 124:
left: 0;
left: 0;
right: 0;
right: 0;
z-index: 2;
padding: 1em;
display: flex;
flex-direction: column;
justify-content: center;
gap: 10%;
color: #fff;
line-height: normal;
z-index: 1;
}
 
.home-card__foreground .home-card__header {
color: #fff;
}
 
.home-card__foreground .home-card__label {
color: #bababa;
}
 
.home-card p {
margin-top: 0;
font-size: 0.875rem;
}
 
.home-card.home-card--button {
overflow: hidden;
padding: 0;
background: #242a31;
border: 0;
}
}


/* Ссылка растягивается на ВСЮ карточку */
.home-card--button a {
.home-card__foreground a {
display: flex;
display: flex;
width: 100%;
height: 100%;
height: 100%;
justify-content: center;
align-items: center;
align-items: center;
justify-content: center;
padding: 0;
padding: 1em;
background: transparent;
box-sizing: border-box;
color: #fff;
color: #fff;
font-weight: 500;
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 {
.home-card--button .home-card__background a {
color: #fff;
padding: 0;
text-decoration: none;
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 p {
.home-card--button:hover img {
margin-top: 0;
transform: scale(1.1);
font-size: 0.875rem;
}
}


Строка 173: Строка 207:
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;
}
}


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

Версия от 10:56, 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: 1em;
	background: white;
	border: 1px solid;
	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;
}

.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;
}

.home-card__background:after {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
    right: 0;
    display: block;
    background: linear-gradient(to right,#000,transparent);
    content: "";
}

.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.5);
	transition: filter 0.2s ease, transform 0.2s ease;
}

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

.home-card__background a {
	display: block;
	width: 100%;
	height: 100%;
	text-decoration: none;
}

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

.home-card__foreground {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 1em;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 10%;
	color: #fff;
	line-height: normal;
	z-index: 1;
}

.home-card__foreground .home-card__header {
	color: #fff;
}

.home-card__foreground .home-card__label {
	color: #bababa;
}

.home-card p {
	margin-top: 0;
	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);
}

.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-link__button a:hover {
	background: green;
}

.home-link__button a:active {
	background: green;
}

#home-content {
	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;
}

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

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

#home-nav .home-card__foreground {
    font-weight: normal;
}