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