MediaWiki:Common.css
Страница интерфейса MediaWiki
Дополнительные действия
Замечание: Возможно, после публикации вам придётся очистить кэш своего браузера, чтобы увидеть изменения.
- Firefox / Safari: Удерживая клавишу Shift, нажмите на панели инструментов Обновить либо нажмите Ctrl+F5 или Ctrl+R (⌘+R на Mac)
- Google Chrome: Нажмите Ctrl+Shift+R (⌘+Shift+R на Mac)
- Edge: Удерживая Ctrl, нажмите Обновить либо нажмите Ctrl+F5
- Opera: Нажмите Ctrl+F5.
:root {
--wk-orange: #f0ad4e;
--wk-dark-bg: #0d0e12;
--wk-card-bg: linear-gradient(to right,#101214,#0c0e10);
--wk-border: #2a2d36;
}
.main-container {
max-width: 1200px;
margin: 0 auto;
color: #eee;
}
.fullwidth-banner img {
width: 100%;
border-radius: 8px;
margin-bottom: 20px;
}
.navigation-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
gap: 10px;
margin: 20px 0;
}
.nav-pill {
position: relative;
height: 80px;
background-color: var(--wk-card-bg);
background-size: cover;
background-position: center;
border: 1px solid var(--wk-border);
border-radius: 8px;
overflow: hidden;
display: flex;
align-items: flex-end;
justify-content: center;
padding: 10px 12px;
text-decoration: none !important;
transition: transform .2s, border-color .2s;
}
.nav-pill::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(to top, rgba(0,0,0,.95) 0, rgba(0,0,0,0) 65%);
z-index: 1;
pointer-events: none;
}
.nav-pill:hover {
transform: translateY(-2px);
border-color: var(--wk-orange);
}
.nav-pill span {
font-weight: 700;
color: #fff;
z-index: 2;
font-size: 16px;
text-shadow: 0 2px 4px rgba(0,0,0,.8);
}
.layout-row {
display: grid;
grid-template-columns: 3fr 1fr;
gap: 15px;
}
.content-card {
background: var(--wk-card-bg);
border: 1px solid var(--wk-border);
border-radius: 8px;
padding: 15px;
}
.card-header {
border-bottom: 1px solid var(--wk-border);
padding-bottom: 10px;
margin-bottom: 15px;
font-weight: 700;
display: flex;
justify-content: space-between;
}
.timeline-item {
border-left: 2px solid var(--wk-border);
padding-left: 15px;
margin-bottom: 15px;
position: relative;
}
.timeline-date {
font-size: .85rem;
color: var(--wk-orange);
margin-bottom: 4px;
}
.links-grid {
display: flex;
flex-direction: column;
gap: 8px;
}
.link-button {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 10px;
background: #20232b;
color: #fff;
text-decoration: none !important;
border-radius: 6px;
font-weight: 600;
font-size: .95rem;
transition: background .2s;
}
/* --- new --- */
body.wiki-theme .nav-header.sewikih-active .org-logo,
body.wiki-theme .nav-header.sewikih-active .v-btn,
body.wiki-theme .nav-header.sewikih-active .v-toolbar__title,
body.wiki-theme .nav-header.sewikih-active hr { display: none!important; }
.v-main .contents h1:after { display: none!important; }
.wiki-page-wrapper {
color: #f0efed;
font-family: ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI Variable Display","Segoe UI",Helvetica,Arial,sans-serif;
min-height: 100vh;
margin: -15px;
padding-bottom: 10vh;
}
.wiki-cover {
width: 100%;
height: 30vh;
max-height: 280px;
position: relative;
display: flex;
justify-content: center;
}
.cover-image-layer,
.cover-video-layer {
position: absolute;
top: 0; left: 0; width: 100%; height: 100%;
display: flex; justify-content: center;
}
.cover-image-layer img {
width: 70%; border-radius: 8px; height: 100%;
object-fit: cover; object-position: center 50%; display: block;
}
.play-overlay {
position: absolute; top: 0; left: 50%;
transform: translateX(-50%);
width: 70%; height: 100%; border-radius: 8px;
background: rgba(0,0,0,.4); display: flex;
align-items: center; justify-content: center;
opacity: 0; transition: opacity .3s; cursor: pointer;
}
.cover-image-layer:hover .play-overlay { opacity: 1; }
.play-overlay svg {
width: 64px; height: 64px; fill: #fff;
filter: drop-shadow(0 2px 4px rgba(0,0,0,.5));
}
#inline-video-container {
position: relative; width: 70%; height: 100%;
border-radius: 8px; overflow: hidden;
box-shadow: 0 4px 15px rgba(0,0,0,.5); background: #000;
}
#inline-video-container iframe {
position: absolute; top: 50%; left: 0;
width: 100%; height: 300%;
transform: translateY(-50%); border: none; pointer-events: none;
}
.video-controls {
position: absolute; top: 10px; right: calc(15% + 10px);
display: flex; gap: 8px; z-index: 10;
}
.control-btn {
background: rgba(0,0,0,.7); border: 1px solid rgba(255,255,255,.2);
border-radius: 6px; width: 36px; height: 36px;
display: flex; align-items: center; justify-content: center;
color: #fff; cursor: pointer; transition: .2s; backdrop-filter: blur(4px);
}
.control-btn svg { width: 20px; height: 20px; }
.control-btn:hover { background: rgba(0,0,0,.9); color: #f0ad4e; border-color: #f0ad4e; }
.modal-overlay {
display: none; position: fixed; top: 0; left: 0;
width: 100vw; height: 100vh; background: rgba(0,0,0,.85);
z-index: 10000; align-items: center; justify-content: center; backdrop-filter: blur(4px);
}
.modal-overlay.active { display: flex!important; }
.modal-content { position: relative; width: 80%; max-width: 1000px; aspect-ratio: 16/9; }
.modal-close {
position: absolute; top: -40px; right: 0; color: #fff;
font-size: 36px; cursor: pointer; line-height: 1; transition: color .2s;
}
.modal-close:hover { color: #f0ad4e; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; padding: 3px 9px; border-radius: 4px; line-height: 1.5; vertical-align: middle; white-space: nowrap; }
.tag-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.t-danger { background: #3a1a1a; color: #f08080; border: 1px solid #6b2c2c; } .t-danger .tag-dot { background: #f08080; }
.t-warn { background: #2e2010; color: #e6a040; border: 1px solid #6b4a1a; } .t-warn .tag-dot { background: #e6a040; }
.t-info { background: #0d1e30; color: #6ab0e8; border: 1px solid #1a3d5c; } .t-info .tag-dot { background: #6ab0e8; }
.t-success { background: #0d2218; color: #5ec47a; border: 1px solid #1a5030; } .t-success .tag-dot { background: #5ec47a; }
.t-neutral { background: #1c1e26; color: #9a9caa; border: 1px solid #2a2d36; } .t-neutral .tag-dot { background: #9a9caa; }
.t-purple { background: #1e1530; color: #b09aee; border: 1px solid #3d2a6b; } .t-purple .tag-dot { background: #b09aee; }
.link-button:hover {
background: #2a2d36;
}
@media (max-width: 768px) {
.layout-row {
grid-template-columns: 1fr;
}
}