MediaWiki:Common.css: различия между версиями
Страница интерфейса MediaWiki
Дополнительные действия
Remove background hero star |
Remove unused card icon CSS Метка: ручная отмена |
||
| (не показано 14 промежуточных версий этого же участника) | |||
| Строка 1: | Строка 1: | ||
/* Красная Звезда — clean Citizen theme | /* Красная Звезда — clean Citizen theme */ | ||
:root { | :root { | ||
| Строка 53: | Строка 53: | ||
.page-Заглавная_страница .mw-parser-output { | .page-Заглавная_страница .mw-parser-output { | ||
width: min(100%, 1320px); | width: min(100%, 1320px) !important; | ||
max-width: 1320px; | max-width: 1320px !important; | ||
margin-inline: auto !important; | margin-inline: auto !important; | ||
} | } | ||
| Строка 77: | Строка 61: | ||
position: relative; | position: relative; | ||
overflow: hidden; | overflow: hidden; | ||
min-height: | min-height: 250px; | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
padding: | padding: 1.8rem 2rem; | ||
margin-bottom: 1.4rem; | margin-bottom: 1.4rem; | ||
border: 1px solid rgba(215, 38, 38, 0.48); | border: 1px solid rgba(215, 38, 38, 0.48); | ||
| Строка 93: | Строка 77: | ||
.redstar-hero::before { | .redstar-hero::before { | ||
content: | content: none !important; | ||
display: none !important; | |||
} | } | ||
| Строка 106: | Строка 85: | ||
z-index: 1; | z-index: 1; | ||
text-align: center; | text-align: center; | ||
} | } | ||
| Строка 141: | Строка 112: | ||
.redstar-hero-subtitle { | .redstar-hero-subtitle { | ||
max-width: 760px; | max-width: 760px; | ||
margin: | margin: 0.8rem auto 1.1rem; | ||
color: #d1d7e5; | color: #d1d7e5; | ||
font-size: 1.08rem; | font-size: 1.08rem; | ||
| Строка 154: | Строка 125: | ||
} | } | ||
.redstar-actions a { | .page-Заглавная_страница .redstar-actions a, | ||
.page-Заглавная_страница .redstar-actions a.external { | |||
display: inline-block; | display: inline-block; | ||
min-width: 190px; | min-width: 190px; | ||
padding: 0.85rem 1.25rem; | padding: 0.85rem 1.25rem; | ||
border: 1px solid rgba(255,69,69,.75); | border: 1px solid rgba(255, 69, 69, 0.75) !important; | ||
border-radius: 10px; | border-radius: 10px; | ||
background: linear-gradient(180deg,#b51d1d,#751111); | background: linear-gradient(180deg, #b51d1d, #751111) !important; | ||
color: #fff !important; | color: #fff !important; | ||
font-weight: 800; | font-weight: 800; | ||
text-decoration: none !important; | text-decoration: none !important; | ||
text-transform: uppercase; | text-transform: uppercase; | ||
box-shadow: none !important; | |||
} | } | ||
.redstar-grid { | .redstar-grid { | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat( | grid-template-columns: repeat(3, minmax(0, 1fr)); | ||
gap: 1rem; | gap: 1rem; | ||
margin: 1.2rem auto; | margin: 1.2rem auto; | ||
| Строка 203: | Строка 172: | ||
.redstar-card-icon { | .redstar-card-icon { | ||
color: # | color: #ff3030 !important; | ||
font-family: system-ui, sans-serif !important; | |||
font-size: 2rem; | font-size: 2rem; | ||
line-height: 1; | line-height: 1; | ||
| Строка 219: | Строка 189: | ||
margin-top: 0.35rem; | margin-top: 0.35rem; | ||
color: #b7bfce; | color: #b7bfce; | ||
} | } | ||
| Строка 256: | Строка 205: | ||
font-size: 2.6rem !important; | font-size: 2.6rem !important; | ||
} | } | ||
} | |||
.redstar-card { | |||
cursor: pointer; | |||
transition: | |||
transform 180ms ease, | |||
box-shadow 180ms ease, | |||
border-color 180ms ease, | |||
background 180ms ease; | |||
} | |||
.redstar-card:hover { | |||
transform: translateY(-6px); | |||
border-color: #ff3333; | |||
background: | |||
radial-gradient(circle at 20% 0%, rgba(255,45,45,.22), transparent 38%), | |||
linear-gradient(145deg, rgba(22,26,34,.98), rgba(10,12,17,.98)); | |||
box-shadow: | |||
0 18px 45px rgba(0,0,0,.45), | |||
0 0 28px rgba(255,35,35,.22); | |||
} | |||
.redstar-card:active { | |||
transform: translateY(-2px); | |||
} | |||
.redstar-card::before { | |||
content: ""; | |||
position: absolute; | |||
inset: 0; | |||
opacity: 0; | |||
background: linear-gradient( | |||
135deg, | |||
rgba(255,255,255,.08), | |||
transparent 42% | |||
); | |||
transition: opacity 180ms ease; | |||
pointer-events: none; | |||
} | |||
.redstar-card:hover::before { | |||
opacity: 1; | |||
} | } | ||
.redstar-card::after { | |||
transition: | |||
transform 180ms ease, | |||
opacity 180ms ease; | |||
} | |||
. | .redstar-card:hover::after { | ||
transform: translateX(4px); | |||
} | |||
/* RedStar cards: floating hover + full-card click */ | |||
.redstar-card { | |||
position: relative; | |||
cursor: pointer; | |||
transition: | |||
transform 180ms ease, | |||
box-shadow 180ms ease, | |||
border-color 180ms ease, | |||
background 180ms ease; | |||
} | } | ||
.redstar- | .redstar-card:hover { | ||
transform: translateY(-6px); | |||
border-color: #ff3333; | |||
background: | |||
radial-gradient(circle at 20% 0%, rgba(255,45,45,.22), transparent 38%), | |||
linear-gradient(145deg, rgba(22,26,34,.98), rgba(10,12,17,.98)); | |||
box-shadow: | |||
0 18px 45px rgba(0,0,0,.45), | |||
0 0 28px rgba(255,35,35,.22); | |||
} | } | ||
.redstar- | .redstar-card:active { | ||
transform: translateY(-2px); | |||
} | } | ||
.redstar- | .redstar-card::before { | ||
content: ""; | |||
position: absolute; | |||
inset: 0; | |||
opacity: 0; | |||
background: rgba( | background: linear-gradient( | ||
135deg, | |||
rgba(255,255,255,.08), | |||
transparent 42% | |||
); | |||
transition: opacity 180ms ease; | |||
pointer-events: none; | |||
z-index: 1; | |||
} | } | ||
.redstar- | .redstar-card:hover::before { | ||
opacity: 1; | |||
} | } | ||
.redstar- | .redstar-card::after { | ||
z-index: 2; | |||
transition: | |||
transform 180ms ease, | |||
opacity 180ms ease; | |||
} | } | ||
.redstar- | .redstar-card:hover::after { | ||
transform: translateX(4px); | |||
opacity: 1; | |||
} | } | ||
.redstar- | .redstar-card-icon, | ||
.redstar-card-title, | |||
.redstar-card-text { | |||
position: relative; | |||
z-index: 3; | |||
} | } | ||
.redstar-card- | /* Главное: растягивает ссылку из названия на всю карточку */ | ||
.redstar-card-title a::after { | |||
content: ""; | |||
position: absolute; | |||
inset: 0; | |||
z-index: 20; | |||
} | } | ||
/* RedStar improvements */ | |||
.page-Заглавная_страница .redstar-actions a, | |||
.page-Заглавная_страница .redstar-actions a.external { | |||
transition: | |||
transform 180ms ease, | |||
box-shadow 180ms ease, | |||
background 180ms ease; | |||
} | } | ||
.page-Заглавная_страница .redstar-actions a:hover, | |||
.page-Заглавная_страница .redstar-actions a.external:hover { | |||
transform: translateY(-3px); | |||
box-shadow: | |||
0 12px 30px rgba(255,40,40,.35) !important; | |||
} | } | ||
.redstar-card-icon { | |||
transition: | |||
transform 180ms ease, | |||
text-shadow 180ms ease; | |||
} | } | ||
.redstar-card:hover .redstar-card-icon { | |||
.redstar- | transform: scale(1.15); | ||
text-shadow: 0 0 15px rgba(255,40,40,.7); | |||
} | } | ||
Текущая версия от 02:18, 4 июня 2026
/* Красная Звезда — clean Citizen theme */
:root {
--color-primary: #d72626;
--color-progressive: #d72626;
--color-link: #ff4545;
--color-link--visited: #d73636;
--background-color-base: #080a0e;
--background-color-neutral: #10131a;
--background-color-interactive: #171b24;
--border-color-base: #2b303a;
--color-base: #eef1f7;
--color-subtle: #aeb7c8;
}
html,
body {
background:
radial-gradient(circle at 50% 0%, rgba(215, 38, 38, 0.20), transparent 34rem),
radial-gradient(circle at 92% 18%, rgba(90, 0, 0, 0.25), transparent 30rem),
linear-gradient(180deg, #06070a 0%, #0b0d12 48%, #07080b 100%) !important;
}
a {
color: #ff4545;
}
a:hover {
color: #ff6b6b;
}
.citizen-header,
.citizen-sidebar,
.citizen-drawer {
background: rgba(8, 10, 14, 0.96) !important;
border-color: rgba(215, 38, 38, 0.22) !important;
}
.page-Заглавная_страница .citizen-toc,
.page-Заглавная_страница .citizen-toc-container,
.page-Заглавная_страница .citizen-page-sidebar,
.page-Заглавная_страница .citizen-page-header__toc,
.page-Заглавная_страница .citizen-sticky-header-toc,
.page-Заглавная_страница .toc {
display: none !important;
}
.page-Заглавная_страница .citizen-body,
.page-Заглавная_страница .mw-body {
max-width: 1500px !important;
margin-inline: auto !important;
}
.page-Заглавная_страница .mw-parser-output {
width: min(100%, 1320px) !important;
max-width: 1320px !important;
margin-inline: auto !important;
}
.redstar-hero {
position: relative;
overflow: hidden;
min-height: 250px;
display: flex;
align-items: center;
justify-content: center;
padding: 1.8rem 2rem;
margin-bottom: 1.4rem;
border: 1px solid rgba(215, 38, 38, 0.48);
border-radius: 18px;
background:
radial-gradient(circle at 28% 36%, rgba(255, 45, 45, 0.24), transparent 20rem),
radial-gradient(circle at 82% 34%, rgba(180, 0, 0, 0.22), transparent 22rem),
linear-gradient(135deg, rgba(90, 10, 12, 0.82), rgba(7, 9, 13, 0.96) 58%);
box-shadow: 0 0 60px rgba(215, 38, 38, 0.18);
}
.redstar-hero::before {
content: none !important;
display: none !important;
}
.redstar-hero-content {
position: relative;
z-index: 1;
text-align: center;
}
.redstar-hero-title {
display: flex !important;
align-items: center;
justify-content: center;
gap: 0.35em;
flex-wrap: wrap;
margin: 0.55rem 0 0;
color: #fff;
font-size: clamp(3rem, 5vw, 5.2rem) !important;
font-weight: 900;
line-height: 0.95;
letter-spacing: 0.08em;
text-transform: uppercase;
text-shadow: 0 0 26px rgba(215, 38, 38, 0.32);
}
.redstar-title-star {
color: #ff3030;
font-size: 0.82em;
line-height: 1;
text-shadow: 0 0 30px rgba(255, 48, 48, 0.55);
}
.redstar-hero-subtitle {
max-width: 760px;
margin: 0.8rem auto 1.1rem;
color: #d1d7e5;
font-size: 1.08rem;
text-transform: uppercase;
}
.redstar-actions {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 0.8rem;
}
.page-Заглавная_страница .redstar-actions a,
.page-Заглавная_страница .redstar-actions a.external {
display: inline-block;
min-width: 190px;
padding: 0.85rem 1.25rem;
border: 1px solid rgba(255, 69, 69, 0.75) !important;
border-radius: 10px;
background: linear-gradient(180deg, #b51d1d, #751111) !important;
color: #fff !important;
font-weight: 800;
text-decoration: none !important;
text-transform: uppercase;
box-shadow: none !important;
}
.redstar-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 1rem;
margin: 1.2rem auto;
}
.redstar-card {
position: relative;
overflow: hidden;
min-height: 130px;
padding: 1.25rem;
border: 1px solid rgba(215, 38, 38, 0.35);
border-radius: 14px;
background: linear-gradient(145deg, rgba(22, 26, 34, 0.95), rgba(10, 12, 17, 0.95));
}
.redstar-card::after {
content: "→";
position: absolute;
right: 1rem;
bottom: 0.8rem;
color: #ff3838;
font-size: 1.35rem;
}
.redstar-card a {
color: #ff4545 !important;
text-decoration: none !important;
}
.redstar-card-icon {
color: #ff3030 !important;
font-family: system-ui, sans-serif !important;
font-size: 2rem;
line-height: 1;
}
.redstar-card-title {
margin-top: 0.8rem;
color: #ff4545;
font-size: 1.25rem;
font-weight: 800;
text-transform: uppercase;
}
.redstar-card-text {
margin-top: 0.35rem;
color: #b7bfce;
}
@media (max-width: 900px) {
.redstar-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 700px) {
.redstar-grid {
grid-template-columns: 1fr;
}
.redstar-hero-title {
font-size: 2.6rem !important;
}
}
.redstar-card {
cursor: pointer;
transition:
transform 180ms ease,
box-shadow 180ms ease,
border-color 180ms ease,
background 180ms ease;
}
.redstar-card:hover {
transform: translateY(-6px);
border-color: #ff3333;
background:
radial-gradient(circle at 20% 0%, rgba(255,45,45,.22), transparent 38%),
linear-gradient(145deg, rgba(22,26,34,.98), rgba(10,12,17,.98));
box-shadow:
0 18px 45px rgba(0,0,0,.45),
0 0 28px rgba(255,35,35,.22);
}
.redstar-card:active {
transform: translateY(-2px);
}
.redstar-card::before {
content: "";
position: absolute;
inset: 0;
opacity: 0;
background: linear-gradient(
135deg,
rgba(255,255,255,.08),
transparent 42%
);
transition: opacity 180ms ease;
pointer-events: none;
}
.redstar-card:hover::before {
opacity: 1;
}
.redstar-card::after {
transition:
transform 180ms ease,
opacity 180ms ease;
}
.redstar-card:hover::after {
transform: translateX(4px);
}
/* RedStar cards: floating hover + full-card click */
.redstar-card {
position: relative;
cursor: pointer;
transition:
transform 180ms ease,
box-shadow 180ms ease,
border-color 180ms ease,
background 180ms ease;
}
.redstar-card:hover {
transform: translateY(-6px);
border-color: #ff3333;
background:
radial-gradient(circle at 20% 0%, rgba(255,45,45,.22), transparent 38%),
linear-gradient(145deg, rgba(22,26,34,.98), rgba(10,12,17,.98));
box-shadow:
0 18px 45px rgba(0,0,0,.45),
0 0 28px rgba(255,35,35,.22);
}
.redstar-card:active {
transform: translateY(-2px);
}
.redstar-card::before {
content: "";
position: absolute;
inset: 0;
opacity: 0;
background: linear-gradient(
135deg,
rgba(255,255,255,.08),
transparent 42%
);
transition: opacity 180ms ease;
pointer-events: none;
z-index: 1;
}
.redstar-card:hover::before {
opacity: 1;
}
.redstar-card::after {
z-index: 2;
transition:
transform 180ms ease,
opacity 180ms ease;
}
.redstar-card:hover::after {
transform: translateX(4px);
opacity: 1;
}
.redstar-card-icon,
.redstar-card-title,
.redstar-card-text {
position: relative;
z-index: 3;
}
/* Главное: растягивает ссылку из названия на всю карточку */
.redstar-card-title a::after {
content: "";
position: absolute;
inset: 0;
z-index: 20;
}
/* RedStar improvements */
.page-Заглавная_страница .redstar-actions a,
.page-Заглавная_страница .redstar-actions a.external {
transition:
transform 180ms ease,
box-shadow 180ms ease,
background 180ms ease;
}
.page-Заглавная_страница .redstar-actions a:hover,
.page-Заглавная_страница .redstar-actions a.external:hover {
transform: translateY(-3px);
box-shadow:
0 12px 30px rgba(255,40,40,.35) !important;
}
.redstar-card-icon {
transition:
transform 180ms ease,
text-shadow 180ms ease;
}
.redstar-card:hover .redstar-card-icon {
transform: scale(1.15);
text-shadow: 0 0 15px rgba(255,40,40,.7);
}