Дополнительные действия
Gardolir (обсуждение | вклад) Новая страница: «→Размещённый здесь CSS будет применяться ко всем темам оформления: →--- ОБЩИЕ НАСТРОЙКИ ДЛЯ ТЕМНОЙ ТЕМЫ ---: body { background-color: #101318 !important; →Основной фон всей страницы: } →Контентная область должна быть прозрачной или иметь тот же фон: #content, .mw-body, #mw-content-text {...» |
Gardolir (обсуждение | вклад) Нет описания правки |
||
| Строка 1: | Строка 1: | ||
/* Размещённый здесь CSS будет применяться ко всем темам оформления */ | /* Размещённый здесь CSS будет применяться ко всем темам оформления */ | ||
/* | /* Заглавная страница */ | ||
/* --- Заголовок с логотипом --- */ | |||
/* --- | |||
.main-page-header-container { | .main-page-header-container { | ||
display: flex; | display: flex; | ||
| Строка 84: | Строка 75: | ||
} | } | ||
/* --- | /* --- Компактное меню --- */ | ||
.compact-menu-container { | .compact-menu-container { | ||
text-align: center; | text-align: center; | ||
| Строка 109: | Строка 100: | ||
ul.compact-menu li a { | ul.compact-menu li a { | ||
text-decoration: none; | text-decoration: none; | ||
color: # | color: #00acc1; /* Новый цвет ссылок */ | ||
font-size: 1.1em; | font-size: 1.1em; | ||
font-weight: 500; | font-weight: 500; | ||
| Строка 120: | Строка 111: | ||
ul.compact-menu li a:hover, | ul.compact-menu li a:hover, | ||
ul.compact-menu li.active a { | ul.compact-menu li.active a { | ||
color: # | color: #29d8ef; /* Новый цвет ссылок при наведении */ | ||
background-color: #2E343D; | background-color: #2E343D; | ||
text-decoration: none; | text-decoration: none; | ||
| Строка 128: | Строка 119: | ||
/* --- Общие стили для колонок и виджетов --- */ | /* --- Общие стили для колонок и виджетов --- */ | ||
.main-page-content-wrapper { | .main-page-content-wrapper { | ||
/* max-width: 1200px; | /* max-width: 1200px; */ | ||
/* margin-left: auto; */ | /* margin-left: auto; */ | ||
/* margin-right: auto; */ | /* margin-right: auto; */ | ||
/* padding: 0 15px; | /* padding: 0 15px; */ | ||
} | } | ||
| Строка 151: | Строка 142: | ||
flex: 1.5; | flex: 1.5; | ||
min-width: 280px; | min-width: 280px; | ||
} | |||
.main-page-right-column .widget:not(:last-child) { | |||
margin-bottom: 25px; | |||
} | } | ||
| Строка 160: | Строка 154: | ||
color: #b0b0b0; | color: #b0b0b0; | ||
box-shadow: 0 3px 8px rgba(0,0,0,0.25); | box-shadow: 0 3px 8px rgba(0,0,0,0.25); | ||
} | } | ||
| Строка 177: | Строка 168: | ||
/* Стилизация DPL3 для "Новых страниц" */ | /* Стилизация DPL3 для "Новых страниц" */ | ||
.new-pages-list ul { | .new-pages-list ul { | ||
padding-left: 0; | padding-left: 0; | ||
list-style: none; | list-style: none; | ||
| Строка 187: | Строка 178: | ||
} | } | ||
.new-pages-list ul li a { | .new-pages-list ul li a { | ||
color: # | color: #00acc1; /* Новый цвет ссылок */ | ||
text-decoration: none; | text-decoration: none; | ||
display: block; | display: block; | ||
| Строка 199: | Строка 190: | ||
.new-pages-list ul li a:hover { | .new-pages-list ul li a:hover { | ||
background-color: #20242A; | background-color: #20242A; | ||
color: # | color: #29d8ef; /* Новый цвет ссылок при наведении */ | ||
text-decoration: none; | text-decoration: none; | ||
} | } | ||
| Строка 223: | Строка 214: | ||
} | } | ||
.recent-changes-list ul.dpl-recent-updates-list li a { | .recent-changes-list ul.dpl-recent-updates-list li a { | ||
color: # | color: #00acc1; /* Новый цвет ссылок */ | ||
text-decoration: none; | text-decoration: none; | ||
font-weight: bold; | font-weight: bold; | ||
| Строка 229: | Строка 220: | ||
} | } | ||
.recent-changes-list ul.dpl-recent-updates-list li a:hover { | .recent-changes-list ul.dpl-recent-updates-list li a:hover { | ||
color: #29d8ef; /* Новый цвет ссылок при наведении */ | |||
text-decoration: underline; | text-decoration: underline; | ||
} | } | ||
.recent-changes-list ul.dpl-recent-updates-list li span.dpl-update-meta { | .recent-changes-list ul.dpl-recent-updates-list li span.dpl-update-meta { | ||
color: #777; | color: #777; /* Цвет для мета-текста (не ссылка) */ | ||
font-weight: normal; | font-weight: normal; | ||
font-size: 0.9em; | font-size: 0.9em; | ||
white-space: nowrap; | white-space: nowrap; | ||
} | } | ||
/* Если имена пользователей в .dpl-update-meta являются ссылками, | |||
глобальные стили для 'a' должны их покрыть. При необходимости можно уточнить: | |||
.recent-changes-list ul.dpl-recent-updates-list li span.dpl-update-meta a { color: #00acc1; } | |||
.recent-changes-list ul.dpl-recent-updates-list li span.dpl-update-meta a:hover { color: #29d8ef; } | |||
*/ | |||
/* --- Стили для графического меню --- */ | /* --- Стили для графического меню --- */ | ||
.graphical-menu-widget { | .graphical-menu-widget { | ||
/* | /* Стили виджета графического меню, если нужны особые */ | ||
} | } | ||
| Строка 253: | Строка 248: | ||
} | } | ||
.graphical-menu .menu-item { | .graphical-menu .menu-item { /* .menu-item это тег <a> */ | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
| Строка 262: | Строка 257: | ||
border-radius: 10px; | border-radius: 10px; | ||
text-decoration: none; | text-decoration: none; | ||
color: # | color: #00acc1; /* Новый цвет для текста (внутри span) ссылки */ | ||
background-color: #1E2228; | background-color: #1E2228; | ||
transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), | transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), | ||
box-shadow 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), | box-shadow 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), | ||
background-color 0.2s ease, | background-color 0.2s ease, | ||
border-color 0.2s ease; | border-color 0.2s ease, | ||
color 0.2s ease; /* Добавлен color в transition */ | |||
min-height: 135px; | min-height: 135px; | ||
box-shadow: 0 2px 4px rgba(0,0,0,0.2); | box-shadow: 0 2px 4px rgba(0,0,0,0.2); | ||
| Строка 277: | Строка 273: | ||
background-color: #282D35; | background-color: #282D35; | ||
border-color: #58A6FF; | border-color: #58A6FF; | ||
color: # | color: #29d8ef; /* Новый цвет для текста (внутри span) ссылки при наведении */ | ||
} | } | ||
| Строка 291: | Строка 287: | ||
font-weight: 600; | font-weight: 600; | ||
line-height: 1.3; | line-height: 1.3; | ||
/* Цвет для span будет унаследован от .menu-item (<a>) */ | |||
} | } | ||
Версия от 10:16, 28 мая 2025
/* Размещённый здесь CSS будет применяться ко всем темам оформления */
/* Заглавная страница */
/* --- Заголовок с логотипом --- */
.main-page-header-container {
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
margin-bottom: 35px;
padding: 25px 10px;
text-align: center;
}
.main-page-logo img {
height: 70px;
width: auto;
margin-right: 25px;
/* filter: drop-shadow(0 0 12px rgba(0, 180, 255, 0.6)); */
}
.main-page-title-container {
display: flex;
flex-direction: column;
align-items: flex-start;
}
.main-page-title {
font-family: 'Arial Black', 'Impact', sans-serif;
font-size: 4.0em;
font-weight: bold;
color: #E8E8E8;
margin: 0;
line-height: 1.0;
letter-spacing: 1px;
text-transform: uppercase;
/* text-shadow: 0 0 5px #8ab4f8, 0 0 10px #8ab4f8, 0 0 15px #8ab4f8, 0 0 20px #00A9FF, 0 0 25px #00A9FF; */
}
.main-page-subtitle {
font-family: 'Arial', sans-serif;
font-size: 1.6em;
color: #909090;
margin: 0;
font-weight: normal;
margin-top: 5px;
letter-spacing: 0.5px;
}
@media (max-width: 768px) {
.main-page-header-container {
flex-direction: column;
}
.main-page-logo img {
margin-right: 0;
margin-bottom: 20px;
height: 60px;
}
.main-page-title-container {
align-items: center;
}
.main-page-title {
font-size: 3.0em;
}
.main-page-subtitle {
font-size: 1.3em;
}
}
@media (max-width: 480px) {
.main-page-title {
font-size: 2.4em;
}
.main-page-subtitle {
font-size: 1.1em;
}
}
/* --- Компактное меню --- */
.compact-menu-container {
text-align: center;
margin-bottom: 40px;
padding: 10px 0;
background-color: rgba(26, 29, 35, 0.5);
border-top: 1px solid #2A2E35;
border-bottom: 1px solid #2A2E35;
box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
ul.compact-menu {
list-style: none;
padding: 0;
margin: 0;
display: inline-block;
}
ul.compact-menu li {
display: inline-block;
margin: 0 8px;
}
ul.compact-menu li a {
text-decoration: none;
color: #00acc1; /* Новый цвет ссылок */
font-size: 1.1em;
font-weight: 500;
padding: 8px 15px;
border-radius: 4px;
transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
display: block;
}
ul.compact-menu li a:hover,
ul.compact-menu li.active a {
color: #29d8ef; /* Новый цвет ссылок при наведении */
background-color: #2E343D;
text-decoration: none;
transform: translateY(-1px);
}
/* --- Общие стили для колонок и виджетов --- */
.main-page-content-wrapper {
/* max-width: 1200px; */
/* margin-left: auto; */
/* margin-right: auto; */
/* padding: 0 15px; */
}
.main-page-columns {
display: flex;
flex-wrap: wrap;
gap: 25px;
}
.main-page-left-column {
flex: 2.5;
min-width: 320px;
display: flex;
flex-direction: column;
gap: 25px;
}
.main-page-right-column {
flex: 1.5;
min-width: 280px;
}
.main-page-right-column .widget:not(:last-child) {
margin-bottom: 25px;
}
.widget {
background-color: #171B20;
border: 1px solid #2A2E35;
border-radius: 8px;
padding: 20px;
color: #b0b0b0;
box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}
.widget h2 {
margin-top: 0;
margin-bottom: 20px;
font-size: 1.6em;
color: #E0E0E0;
border-bottom: 1px solid #333842;
padding-bottom: 12px;
font-weight: 600;
letter-spacing: 0.5px;
}
/* Стилизация DPL3 для "Новых страниц" */
.new-pages-list ul {
padding-left: 0;
list-style: none;
margin:0;
}
.new-pages-list ul li {
margin-bottom: 0;
font-size: 1em;
}
.new-pages-list ul li a {
color: #00acc1; /* Новый цвет ссылок */
text-decoration: none;
display: block;
padding: 8px 5px;
border-bottom: 1px dashed #2A2E35;
transition: background-color 0.2s ease, color 0.2s ease;
}
.new-pages-list ul li:last-child a {
border-bottom: none;
}
.new-pages-list ul li a:hover {
background-color: #20242A;
color: #29d8ef; /* Новый цвет ссылок при наведении */
text-decoration: none;
}
/* Стилизация DPL3 для "Обновлений Wiki" */
.recent-changes-list ul.dpl-recent-updates-list {
padding-left: 0;
list-style: none;
margin:0;
}
.recent-changes-list ul.dpl-recent-updates-list li {
padding: 9px 5px;
font-size: 0.95em;
border-bottom: 1px dashed #2A2E35;
line-height: 1.45;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: baseline;
}
.recent-changes-list ul.dpl-recent-updates-list li:last-child {
border-bottom: none;
}
.recent-changes-list ul.dpl-recent-updates-list li a {
color: #00acc1; /* Новый цвет ссылок */
text-decoration: none;
font-weight: bold;
margin-right: 10px;
}
.recent-changes-list ul.dpl-recent-updates-list li a:hover {
color: #29d8ef; /* Новый цвет ссылок при наведении */
text-decoration: underline;
}
.recent-changes-list ul.dpl-recent-updates-list li span.dpl-update-meta {
color: #777; /* Цвет для мета-текста (не ссылка) */
font-weight: normal;
font-size: 0.9em;
white-space: nowrap;
}
/* Если имена пользователей в .dpl-update-meta являются ссылками,
глобальные стили для 'a' должны их покрыть. При необходимости можно уточнить:
.recent-changes-list ul.dpl-recent-updates-list li span.dpl-update-meta a { color: #00acc1; }
.recent-changes-list ul.dpl-recent-updates-list li span.dpl-update-meta a:hover { color: #29d8ef; }
*/
/* --- Стили для графического меню --- */
.graphical-menu-widget {
/* Стили виджета графического меню, если нужны особые */
}
.graphical-menu {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
gap: 20px;
text-align: center;
}
.graphical-menu .menu-item { /* .menu-item это тег <a> */
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 18px 10px;
border: 1px solid #333842;
border-radius: 10px;
text-decoration: none;
color: #00acc1; /* Новый цвет для текста (внутри span) ссылки */
background-color: #1E2228;
transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1),
box-shadow 0.2s cubic-bezier(0.25, 0.8, 0.25, 1),
background-color 0.2s ease,
border-color 0.2s ease,
color 0.2s ease; /* Добавлен color в transition */
min-height: 135px;
box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.graphical-menu .menu-item:hover {
transform: translateY(-5px) scale(1.03);
box-shadow: 0 8px 16px rgba(0,0,0,0.35);
background-color: #282D35;
border-color: #58A6FF;
color: #29d8ef; /* Новый цвет для текста (внутри span) ссылки при наведении */
}
.graphical-menu .menu-item img {
width: 60px;
height: 60px;
margin-bottom: 12px;
object-fit: contain;
}
.graphical-menu .menu-item span {
font-size: 0.9em;
font-weight: 600;
line-height: 1.3;
/* Цвет для span будет унаследован от .menu-item (<a>) */
}
/* --- Адаптивность --- */
@media (max-width: 768px) {
.main-page-columns {
flex-direction: column;
}
.main-page-left-column, .main-page-right-column {
flex: 1 1 100%;
min-width: unset;
}
.graphical-menu {
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}
.graphical-menu .menu-item {
min-height: 120px;
padding: 15px 8px;
}
.graphical-menu .menu-item img {
width: 50px;
height: 50px;
}
}
@media (max-width: 480px) {
ul.compact-menu li {
margin: 0 3px;
}
ul.compact-menu li a {
font-size: 0.95em;
padding: 6px 10px;
}
.widget h2 {
font-size: 1.4em;
}
.graphical-menu {
grid-template-columns: repeat(2, 1fr);
gap: 15px;
}
.graphical-menu .menu-item {
min-height: 100px;
}
.graphical-menu .menu-item img {
width: 40px;
height: 40px;
margin-bottom: 8px;
}
.graphical-menu .menu-item span {
font-size: 0.85em;
}
}