MediaWiki:Common.css: различия между версиями
Страница интерфейса MediaWiki
Дополнительные действия
Honvert (обсуждение | вклад) Нет описания правки |
Honvert (обсуждение | вклад) Нет описания правки |
||
| Строка 660: | Строка 660: | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); | grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); | ||
gap: | gap: 12px; | ||
margin-top: | margin-top: 16px; | ||
} | } | ||
.server-card { | .server-card { | ||
background: | background: transparent; | ||
border: 1px solid | border: 1px solid #333; | ||
border-radius: 8px; | border-radius: 8px; | ||
padding: | padding: 16px; | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
gap: | gap: 10px; | ||
transition: | transition: background 0.2s, border-color 0.2s; | ||
} | } | ||
.server-card:hover { | .server-card:hover { | ||
background: rgba(255, 255, 255, 0.02); | |||
border-color: | border-color: #444; | ||
} | } | ||
.server-header { | .server-header { | ||
| Строка 681: | Строка 681: | ||
justify-content: space-between; | justify-content: space-between; | ||
align-items: center; | align-items: center; | ||
margin-bottom: 4px; | |||
} | } | ||
.server-name { | .server-name { | ||
font-weight: | font-weight: 500; | ||
color: # | color: #e8e8e8; | ||
font-size: | font-size: 0.95rem; | ||
} | } | ||
.server-status { | .server-status { | ||
font-size: 0.75rem; | font-size: 0.75rem; | ||
font-weight: | font-weight: 400; | ||
color: #888; | |||
} | } | ||
.status-online { | .status-online { color: #a3e6b5; } | ||
.status-offline { | .status-offline { color: #e6a3a3; } | ||
.status-loading { | .status-loading { color: #888; } | ||
.server-info-row { | .server-info-row { | ||
display: flex; | display: flex; | ||
justify-content: space-between; | justify-content: space-between; | ||
font-size: 0. | font-size: 0.85rem; | ||
color: # | color: #888; | ||
} | } | ||
.server-players { | .server-players { | ||
color: #e8e8e8; | |||
color: # | |||
} | } | ||
.server-ip { | .server-ip { | ||
font-family: monospace; | font-family: monospace; | ||
color: | color: #a0a0a0; | ||
} | |||
.server-connect-btn { | |||
margin-top: 6px; | |||
padding: 8px 12px; | |||
background: transparent; | |||
border: 1px solid #444; | |||
border-radius: 6px; | |||
color: #e8e8e8; | |||
font-size: 0.85rem; | |||
text-align: center; | |||
text-decoration: none !important; | |||
cursor: pointer; | |||
transition: background 0.2s, border-color 0.2s; | |||
} | |||
.server-connect-btn:hover { | |||
background: rgba(255, 255, 255, 0.05); | |||
border-color: #555; | |||
} | } | ||
Версия от 16:59, 12 апреля 2026
:root {
--wk-accent: #467be3;
--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-accent);
}
.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 {
padding-left: 5px;
padding-top: 5px;
}
.timeline-link {
text-decoration: none !important;
display: block;
}
.timeline-item {
position: relative;
border-left: 2px solid var(--wk-border);
padding: 0 10px 20px 20px;
display: flex;
justify-content: space-between;
align-items: center;
transition: all 0.2s ease;
}
.timeline-marker {
position: absolute;
left: -6px;
top: 5px;
width: 10px;
height: 10px;
border-radius: 50%;
background: var(--wk-border);
transition: all 0.2s ease;
}
.timeline-link:hover .timeline-marker {
background: var(--wk-accent);
box-shadow: 0 0 8px var(--wk-accent);
}
.timeline-link:hover .timeline-item {
background: rgba(255, 255, 255, 0.03);
border-color: var(--wk-accent);
border-radius: 0 8px 8px 0;
}
.timeline-content {
flex: 1;
padding-right: 15px;
}
.timeline-date {
font-size: .85rem;
color: var(--wk-accent);
margin-bottom: 4px;
font-weight: 600;
}
.timeline-desc {
color: #eee;
font-size: 0.95rem;
}
.timeline-image {
width: 90px;
height: 56px;
border-radius: 6px;
overflow: hidden;
flex-shrink: 0;
border: 1px solid var(--wk-border);
}
.timeline-image img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.3s ease;
}
.timeline-link:hover .timeline-image img {
transform: scale(1.1);
}
.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;
}
.link-button:hover {
background: #2a2d36;
}
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: 100%;
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: 100%;
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: 100%;
height: 100%;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 4px 15px rgba(0, 0, 0, .5);
background: #000;
}
#inline-video-container video {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: inherit;
}
.video-controls {
position: absolute;
top: 10px;
right: calc(1% + 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: var(--wk-accent);
border-color: var(--wk-accent);
}
.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;
border-radius: 12px;
background: #000;
-webkit-mask-image: -webkit-radial-gradient(white, black);
mask-image: radial-gradient(white, black);
}
.modal-content video {
width: 100%;
height: 100%;
border-radius: inherit;
}
.modal-close {
position: absolute;
top: 10px;
right: 15px;
color: #fff;
font-size: 36px;
cursor: pointer;
line-height: 1;
transition: color .2s;
z-index: 10001;
background: rgba(0, 0, 0, 0.5);
border-radius: 50%;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
}
.modal-close:hover {
color: var(--wk-accent);
background: rgba(0, 0, 0, 0.8);
}
.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; }
.wk-tabs-wrapper {
margin: 20px 0;
}
.wk-tabs-header {
display: flex;
gap: 20px;
border-bottom: 1px solid #333;
overflow-x: auto;
margin-bottom: 15px;
}
.wk-tab-btn {
background: transparent;
border: none;
color: #a0a0a0;
font-size: 16px;
font-weight: 600;
padding: 10px 5px;
cursor: pointer;
border-bottom: 2px solid transparent;
transition: all 0.2s;
white-space: nowrap;
}
.wk-tab-btn:hover {
color: #fff;
}
.wk-tab-btn.active {
color: var(--wk-accent);
border-bottom: 2px solid var(--wk-accent);
}
.wk-tab-content {
display: none;
color: #eee;
}
.wk-tab-content.active {
display: block;
animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
.nav-row-3 {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 15px;
margin-bottom: 15px;
}
.nav-row-2 {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 15px;
margin-bottom: 15px;
}
@media (max-width: 768px) {
.nav-row-3,
.nav-row-2 { grid-template-columns: 1fr; }
.layout-row { grid-template-columns: 1fr; }
}
.wiki-bottom-controls {
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
padding: 15px 12px 5px 12px;
display: flex;
flex-direction: column;
z-index: 20;
opacity: 1;
transition: opacity 0.3s ease;
}
.video-wrapper.is-idle .wiki-bottom-controls.is-playing {
opacity: 0;
}
.video-wrapper.is-idle {
cursor: none;
}
.wiki-progress-container {
width: 100%;
height: 5px;
position: relative;
margin-bottom: 5px;
cursor: pointer;
display: flex;
align-items: flex-end;
}
.wiki-progress-bar {
width: 100%;
height: 3px;
background: rgba(255, 255, 255, 0.2);
position: relative;
transition: height 0.1s ease;
}
.wiki-progress-container:hover .wiki-progress-bar {
height: 5px;
}
.wiki-progress-loaded {
height: 100%;
background: rgba(255, 255, 255, 0.4);
position: absolute;
top: 0;
left: 0;
pointer-events: none;
transition: width 0.2s;
}
.wiki-progress-fill {
height: 100%;
background: var(--wk-accent);
position: absolute;
top: 0;
left: 0;
pointer-events: none;
z-index: 2;
}
.wiki-progress-dot {
width: 13px;
height: 13px;
background: var(--wk-accent);
border-radius: 50%;
position: absolute;
top: 50%;
transform: translate(-50%, -50%) scale(0);
transition: transform 0.1s ease;
pointer-events: none;
z-index: 3;
}
.wiki-progress-container:hover .wiki-progress-dot {
transform: translate(-50%, -50%) scale(1);
}
.wiki-controls-bar {
display: flex;
justify-content: space-between;
align-items: center;
height: 40px;
}
.wiki-ctrl-left,
.wiki-ctrl-right {
display: flex;
align-items: center;
gap: 8px;
}
.wiki-icon-btn {
background: transparent;
border: none;
padding: 6px;
color: #fff;
cursor: pointer;
opacity: 0.9;
display: flex;
align-items: center;
justify-content: center;
transition: opacity 0.2s, transform 0.1s;
border-radius: 4px;
outline: none;
}
.wiki-icon-btn:hover {
opacity: 1;
transform: scale(1.1);
}
.wiki-icon-btn svg {
width: 24px;
height: 24px;
fill: currentColor;
}
.wiki-volume-container {
display: flex;
align-items: center;
overflow: hidden;
width: 36px;
transition: width 0.3s ease;
}
.wiki-volume-container:hover {
width: 100px;
}
.wiki-volume-slider {
width: 60px;
margin-left: 5px;
cursor: pointer;
accent-color: #fff;
opacity: 0;
transition: opacity 0.3s ease;
}
.wiki-volume-container:hover .wiki-volume-slider {
opacity: 1;
}
.wiki-center-action {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) scale(1.5);
width: 64px;
height: 64px;
background: rgba(0, 0, 0, 0.6);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: white;
opacity: 0;
pointer-events: none;
transition: opacity 0.2s ease, transform 0.2s ease;
z-index: 30;
}
.wiki-center-action.animate {
opacity: 1;
transform: translate(-50%, -50%) scale(1);
}
.wiki-center-action svg {
width: 36px;
height: 36px;
fill: currentColor;
}
.server-monitor-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 12px;
margin-top: 16px;
}
.server-card {
background: transparent;
border: 1px solid #333;
border-radius: 8px;
padding: 16px;
display: flex;
flex-direction: column;
gap: 10px;
transition: background 0.2s, border-color 0.2s;
}
.server-card:hover {
background: rgba(255, 255, 255, 0.02);
border-color: #444;
}
.server-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 4px;
}
.server-name {
font-weight: 500;
color: #e8e8e8;
font-size: 0.95rem;
}
.server-status {
font-size: 0.75rem;
font-weight: 400;
color: #888;
}
.status-online { color: #a3e6b5; }
.status-offline { color: #e6a3a3; }
.status-loading { color: #888; }
.server-info-row {
display: flex;
justify-content: space-between;
font-size: 0.85rem;
color: #888;
}
.server-players {
color: #e8e8e8;
}
.server-ip {
font-family: monospace;
color: #a0a0a0;
}
.server-connect-btn {
margin-top: 6px;
padding: 8px 12px;
background: transparent;
border: 1px solid #444;
border-radius: 6px;
color: #e8e8e8;
font-size: 0.85rem;
text-align: center;
text-decoration: none !important;
cursor: pointer;
transition: background 0.2s, border-color 0.2s;
}
.server-connect-btn:hover {
background: rgba(255, 255, 255, 0.05);
border-color: #555;
}