MediaWiki:Common.css
MediaWiki interface page
More actions
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* CSS placed here will be applied to all skins */
.clean-new-articles li {
font-size: 0;
}
.clean-new-articles li a.mw-newpages-pagename {
font-size: 15px;
}
/* Скрытие панели статуса перевода */
.mw-pt-translate-header,
.mw-tpt-sp-top {
display: none !important;
}
/* Делаем список новых статей горизонтальным */
.clean-new-articles ul {
display: flex;
flex-wrap: wrap; /* Позволяет списку переноситься на новую строку, если экран узкий */
gap: 20px; /* Расстояние между статьями */
list-style: none; /* Убираем стандартные точки списка */
padding: 0;
margin: 0;
}
.clean-new-articles li {
margin: 0; /* Убираем стандартные отступы списка MediaWiki */
background: #f0f4f8; /* Легкий фон для каждой статьи (по желанию) */
padding: 5px 15px;
border-radius: 20px; /* Скругляем края, чтобы выглядело как кнопки/теги */
}
.volunteer-grid {
display: flex;
flex-wrap: wrap;
gap: 25px;
justify-content: center;
margin: 40px 0;
}
@keyframes goldPulse {
0% {
box-shadow: 0 4px 15px rgba(218, 165, 32, 0.15), 0 0 10px rgba(255, 215, 0, 0.1);
border-color: rgba(212, 175, 55, 0.3);
}
50% {
box-shadow: 0 12px 25px rgba(218, 165, 32, 0.4), 0 0 25px rgba(255, 215, 0, 0.3);
border-color: rgba(212, 175, 55, 0.8);
}
100% {
box-shadow: 0 4px 15px rgba(218, 165, 32, 0.15), 0 0 10px rgba(255, 215, 0, 0.1);
border-color: rgba(212, 175, 55, 0.3);
}
}
@keyframes shimmerMove {
0% { left: -150%; }
100% { left: 200%; }
200% { left: 200%; }
}
.volunteer-card {
background: #ffffff;
border: 1px solid #e2e8f0;
border-radius: 16px;
padding: 35px 20px 25px 20px;
text-align: center;
width: 280px;
position: relative;
overflow: hidden;
transition: all 1.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
animation: goldPulse 5s infinite ease-in-out;
}
.volunteer-card:hover {
transform: translateY(-10px) perspective(600px) rotateX(3deg) rotateY(-3deg) scale(1.02);
box-shadow: 0 20px 30px -5px rgba(218, 165, 32, 0.5), 0 0 35px rgba(255, 215, 0, 0.5) !important;
border-color: #d4af37 !important;
animation-play-state: paused;
}
.volunteer-card::before {
content: "";
position: absolute;
top: 0; left: -150%;
width: 50%; height: 100%;
background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255, 215, 0, 0.4) 50%, rgba(255,255,255,0) 100%);
transform: skewX(-25deg);
pointer-events: none;
animation: shimmerMove 5s infinite;
}
.volunteer-avatar {
width: 80px;
height: 80px;
margin: 0 auto 15px auto;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
background: #f8fafc;
color: #94a3b8;
transition: all 0.4s ease;
}
.volunteer-card:hover .volunteer-avatar {
background: #fef08a;
color: #ca8a04;
transform: scale(1.1);
}
.volunteer-links {
display: flex;
flex-direction: column;
gap: 8px;
margin-top: 15px;
}
.volunteer-links a {
color: #64748b;
text-decoration: none;
font-weight: 600;
font-size: 14px;
transition: color 0.3s;
}
.volunteer-links a:hover {
color: #d4af37;
}
/* --- СЕТКА КАТЕГОРИЙ НА ГЛАВНОЙ --- */
.category-grid {
display: flex;
flex-wrap: wrap;
gap: 20px;
justify-content: center;
margin: 20px 0;
}
.category-card {
background: #ffffff;
border: 1px solid #e2e8f0;
border-radius: 12px;
padding: 25px 20px;
width: 220px;
text-align: center;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
transition: all 0.3s ease;
}
.category-card:hover {
transform: translateY(-6px);
box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
border-color: #38bdf8;
}
.category-icon {
font-size: 40px;
margin-bottom: 15px;
}
.category-title {
font-size: 18px;
font-weight: 800;
color: #0f172a;
margin-bottom: 10px;
}
.category-link a {
color: #38bdf8;
font-weight: bold;
text-decoration: none;
font-size: 14px;
}
.category-link a:hover {
text-decoration: underline;
}
/* --- ДИЗАЙН ГЛАВНОЙ СТРАНИЦЫ (В СТИЛЕ SC WIKI) --- */
.mp-hero { text-align: center; margin: 40px 0 30px; }
.mp-title { font-size: 2.5em; font-weight: 800; margin-bottom: 10px; color: #0f172a; }
.mp-subtitle { font-size: 1.1em; color: #64748b; margin-bottom: 30px; }
/* 1. Поиск */
.mp-search { max-width: 600px; margin: 0 auto 40px auto; }
/* 2. Категории (Темные кнопки) */
.mp-cat-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
gap: 15px;
margin-bottom: 40px;
}
.mp-cat-btn {
background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
border-radius: 8px;
padding: 15px 20px;
text-align: center;
transition: all 0.2s ease;
border: 1px solid #334155;
box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}
.mp-cat-btn a { color: #f8fafc !important; font-weight: 600; text-decoration: none; display: block; font-size: 15px;}
.mp-cat-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 15px rgba(0,0,0,0.3); border-color: #38bdf8; }
/* 3. Панели информации (Карточки) */
.mp-panels {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
margin-bottom: 40px;
}
.mp-card {
background: #ffffff;
border: 1px solid #e2e8f0;
border-radius: 12px;
padding: 25px;
box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.mp-card-title {
font-size: 1.2em; font-weight: 700; color: #0f172a;
margin-bottom: 15px; border-bottom: 2px solid #f1f5f9; padding-bottom: 10px;
}
.mp-card-links a {
display: block; padding: 12px; background: #f8fafc; border-radius: 6px;
margin-bottom: 8px; color: #334155; text-decoration: none; font-weight: 600;
transition: background 0.2s; text-align: center; border: 1px solid #e2e8f0;
}
.mp-card-links a:hover { background: #e2e8f0; color: #0f172a; }
/* 4. Кнопки сервисов (Стиль Patreon/Discord) */
.mp-services { display: flex; flex-direction: column; gap: 12px; }
.mp-srv-btn {
display: block; text-align: center; padding: 15px; border-radius: 8px;
font-weight: bold; font-size: 1.1em; color: #ffffff !important;
text-decoration: none; transition: opacity 0.2s; box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.mp-srv-btn:hover { text-decoration: none; opacity: 0.85; }
.btn-vero { background: #005eb8; } /* Синий цвет налоговой */
.btn-ytj { background: #2c3e50; } /* Темный цвет реестра */
.btn-migri { background: #007A5E; } /* Зеленый цвет миграционки */
/* 5. Виджет дедлайнов (Deadlines) */
.mp-deadlines { display: flex; flex-direction: column; gap: 10px; }
.deadline-card {
display: flex; align-items: center; background: #f8fafc;
border: 1px solid #e2e8f0; border-left: 4px solid #ef4444;
border-radius: 6px; padding: 10px 15px; transition: transform 0.2s;
}
.deadline-card:hover { transform: translateX(5px); border-left-color: #dc2626; }
.deadline-date { font-weight: 800; color: #ef4444; font-size: 1.2em; min-width: 50px; text-align: center; }
.deadline-card.yel { border-left-color: #f59e0b; }
.deadline-card.yel .deadline-date { color: #f59e0b; font-size: 1em; }
.deadline-desc { margin-left: 15px; font-weight: 600; font-size: 0.95em; color: #334155; line-height: 1.3; }
.deadline-desc span { display: block; font-size: 0.8em; color: #64748b; font-weight: normal; }
/* 6. RSS Ленты */
.mp-rss-feed {
background: #f8fafc; border: 1px solid #e2e8f0;
border-radius: 8px; padding: 15px; font-size: 0.9em;
max-height: 250px; overflow-y: auto;
}
.mp-rss-feed ul { margin: 0; padding-left: 20px; color: #334155; }
.mp-rss-feed li { margin-bottom: 8px; }
.mp-rss-feed a { color: #005eb8; text-decoration: none; font-weight: bold; }
.mp-rss-feed a:hover { text-decoration: underline; }
/* =========================================================
БАЗОВЫЕ НАСТРОЙКИ ВИКИ
========================================================= */
.clean-new-articles li { font-size: 0; }
.clean-new-articles li a.mw-newpages-pagename { font-size: 15px; }
.mw-pt-translate-header, .mw-tpt-sp-top { display: none !important; }
/* =========================================================
2. ЕДИНЫЙ ФИНСКИЙ ДИЗАЙН (ГЛАВНАЯ СТРАНИЦА)
Цвета:
Dark Blue (Suomi.fi): #003b7e
Green (Vero): #007a33
Light Gray (Backgrounds): #f4f5f7
========================================================= */
/* Заголовок и поиск */
.fin-hero { text-align: center; padding: 40px 20px; background: #ffffff; margin-bottom: 30px; border-bottom: 1px solid #e2e8f0; }
.fin-hero-title { font-size: 2.5em; font-weight: 700; color: #003b7e; margin-bottom: 10px; }
.fin-hero-subtitle { font-size: 1.2em; color: #475569; margin-bottom: 30px; }
.fin-searchbox { max-width: 600px; margin: 0 auto; }
/* Сетка для блоков */
.fin-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 40px; }
.fin-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); gap: 20px; margin-bottom: 40px; }
/* Строгие категории (Темно-синие) */
.fin-categories { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 15px; margin-bottom: 40px; }
.fin-cat-btn { background: #003b7e; border-radius: 4px; padding: 16px 20px; text-align: center; transition: background 0.2s; }
.fin-cat-btn a { color: #ffffff !important; font-weight: 600; font-size: 16px; text-decoration: none; display: block; }
.fin-cat-btn:hover { background: #002855; }
/* Белые карточки (Стиль Vero - image_173446) */
.fin-card-vero { background: #ffffff; border: 1px solid #d1d5db; border-radius: 6px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; }
.fin-card-vero h3 { margin: 0 0 15px 0; font-size: 1.4em; font-weight: 700; color: #111827; border: none; padding: 0; }
.fin-card-vero p { color: #374151; font-size: 15px; line-height: 1.6; margin-bottom: 25px; }
.fin-btn-green { display: inline-block; background: #007a33; color: #ffffff !important; padding: 10px 20px; border-radius: 4px; font-weight: 700; font-size: 14px; text-decoration: none; transition: background 0.2s; align-self: flex-start; }
.fin-btn-green:hover { background: #005c26; text-decoration: none; }
/* Темно-синие и розовые карточки (Стиль Suomi.fi - image_173808) */
.fin-card-suomi-blue { background: #003b7e; color: #ffffff; border-radius: 6px; padding: 24px; }
.fin-card-suomi-pink { background: #ffcce6; color: #111827; border-radius: 6px; padding: 24px; }
.fin-card-suomi-blue h3, .fin-card-suomi-pink h3 { margin: 0 0 15px 0; font-size: 1.4em; font-weight: 700; border: none; padding: 0; display: flex; justify-content: space-between; align-items: center; }
.fin-card-suomi-blue h3 { color: #ffffff; }
.fin-card-suomi-pink h3 { color: #111827; }
.fin-rss-feed ul { margin: 0; padding-left: 15px; }
.fin-rss-feed li { margin-bottom: 12px; font-size: 15px; line-height: 1.4; }
.fin-card-suomi-blue .fin-rss-feed a { color: #ffffff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.fin-card-suomi-pink .fin-rss-feed a { color: #111827; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
/* Карточка с изображением (Стиль TE-Palvelut / Join the Crew) */
.fin-card-img { background: #ffffff; border: 1px solid #d1d5db; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.fin-card-img-wrapper { height: 200px; width: 100%; background: #e5e7eb; overflow: hidden; }
.fin-card-img-content { padding: 30px; text-align: center; }
.fin-card-img-content h3 { margin: 0 0 15px 0; font-size: 1.6em; font-weight: 700; color: #111827; border: none; }
.fin-card-img-content p { color: #4b5563; font-size: 16px; line-height: 1.6; max-width: 600px; margin: 0 auto 25px auto; }
.fin-btn-blue { display: inline-block; background: #005eb8; color: #ffffff !important; padding: 12px 28px; border-radius: 4px; font-weight: 700; font-size: 16px; text-decoration: none; transition: background 0.2s; }
.fin-btn-blue:hover { background: #004a94; text-decoration: none; }
/* =========================================================
3. ДОСКА ВОЛОНТЕРОВ (About Page)
========================================================= */
.volunteer-grid { display: flex; flex-wrap: wrap; gap: 25px; justify-content: center; margin: 40px 0; }
@keyframes goldPulse { 0% { box-shadow: 0 4px 15px rgba(218, 165, 32, 0.15), 0 0 10px rgba(255, 215, 0, 0.1); border-color: rgba(212, 175, 55, 0.3); } 50% { box-shadow: 0 12px 25px rgba(218, 165, 32, 0.4), 0 0 25px rgba(255, 215, 0, 0.3); border-color: rgba(212, 175, 55, 0.8); } 100% { box-shadow: 0 4px 15px rgba(218, 165, 32, 0.15), 0 0 10px rgba(255, 215, 0, 0.1); border-color: rgba(212, 175, 55, 0.3); } }
@keyframes shimmerMove { 0% { left: -150%; } 100% { left: 200%; } 200% { left: 200%; } }
.volunteer-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 35px 20px 25px 20px; text-align: center; width: 280px; position: relative; overflow: hidden; transition: all 1.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); animation: goldPulse 5s infinite ease-in-out; }
.volunteer-card:hover { transform: translateY(-10px) perspective(600px) rotateX(3deg) rotateY(-3deg) scale(1.02); box-shadow: 0 20px 30px -5px rgba(218, 165, 32, 0.5), 0 0 35px rgba(255, 215, 0, 0.5) !important; border-color: #d4af37 !important; animation-play-state: paused; }
.volunteer-card::before { content: ""; position: absolute; top: 0; left: -150%; width: 50%; height: 100%; background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255, 215, 0, 0.4) 50%, rgba(255,255,255,0) 100%); transform: skewX(-25deg); pointer-events: none; animation: shimmerMove 5s infinite; }
.volunteer-avatar { width: 80px; height: 80px; margin: 0 auto 15px auto; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #f8fafc; color: #94a3b8; transition: all 0.4s ease; }
.volunteer-card:hover .volunteer-avatar { background: #fef08a; color: #ca8a04; transform: scale(1.1); }
.volunteer-links { display: flex; flex-direction: column; gap: 8px; margin-top: 15px; }
.volunteer-links a { color: #64748b; text-decoration: none; font-weight: 600; font-size: 14px; transition: color 0.3s; }
.volunteer-links a:hover { color: #d4af37; }
/* --- ВЫПАДАЮЩИЙ СПИСОК ЯЗЫКОВ (DROPDOWN) - ИСПРАВЛЕННЫЙ --- */
.mw-pt-languages {
position: relative !important;
display: table !important; /* Не дает блоку растягиваться на весь экран */
width: auto !important;
min-width: 180px !important;
background: #ffffff !important;
border: 1px solid #cbd5e1 !important;
border-radius: 8px !important;
padding: 10px 20px !important;
margin: 0 auto 20px auto !important; /* Центрирует кнопку */
cursor: pointer !important;
box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
overflow: visible !important; /* Убивает системный горизонтальный скроллбар */
text-align: center !important;
}
.mw-pt-languages:hover {
border-color: #94a3b8 !important;
}
.mw-pt-languages-label {
display: inline-block !important;
font-weight: 600 !important;
color: #0f172a !important;
margin-right: 0 !important;
}
.mw-pt-languages-label::after {
content: " ▼";
font-size: 10px;
margin-left: 8px;
color: #64748b;
}
/* Сам выпадающий список */
.mw-pt-languages-list {
display: none !important;
position: absolute !important;
top: 100% !important;
left: 50% !important;
transform: translateX(-50%) !important; /* Центрирует список ровно под кнопкой */
background: #ffffff !important;
border: 1px solid #cbd5e1 !important;
border-radius: 8px !important;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
padding: 8px 0 !important;
margin-top: 5px !important;
z-index: 1000 !important;
min-width: 100% !important;
width: max-content !important;
}
.mw-pt-languages:hover .mw-pt-languages-list {
display: block !important;
}
/* Оформление ссылок в списке */
.mw-pt-languages-list li {
display: block !important;
padding: 0 !important;
margin: 0 !important;
border: none !important;
}
.mw-pt-languages-list li a,
.mw-pt-languages-list li span {
display: block !important;
padding: 10px 25px !important;
color: #334155 !important;
text-decoration: none !important;
font-weight: 500 !important;
text-align: center !important;
white-space: nowrap !important;
}
.mw-pt-languages-list li a:hover {
background: #f1f5f9 !important;
color: #005eb8 !important;
}
/* Скрываем лишние точки и разделители движка */
.mw-pt-languages-list li::after,
.mw-pt-languages-list li::before {
display: none !important;
}