MediaWiki:Common.css: различия между версиями
Страница интерфейса MediaWiki
Дополнительные действия
Honvert (обсуждение | вклад) Нет описания правки |
Honvert (обсуждение | вклад) Нет описания правки |
||
| Строка 529: | Строка 529: | ||
/* --- videoplayer --- */ | /* --- videoplayer --- */ | ||
. | .video-controls { | ||
position: absolute; | position: absolute; top: 10px; right: calc(1% + 10px); | ||
display: flex; gap: 8px; z-index: 10; | |||
display: flex; | |||
} | } | ||
.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; } | |||
.wiki-bottom-controls { | .wiki-bottom-controls { | ||
position: absolute; | 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%); | |||
background: linear-gradient(to top, rgba(0,0,0,0. | padding: 15px 12px 5px 12px; display: flex; flex-direction: column; | ||
padding: | z-index: 20; opacity: 1; transition: opacity 0.3s ease; | ||
z-index: 20; | |||
} | } | ||
.video-wrapper:not(:hover) .wiki-bottom-controls.is-playing { opacity: 0; } | |||
.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.3); position: relative; transition: height 0.1s ease; } | |||
.wiki-progress-container:hover .wiki-progress-bar { height: 5px; } | |||
.wiki-progress-fill { height: 100%; background: #f00; pointer-events: none; } | |||
.wiki-progress-dot { width: 13px; height: 13px; background: #f00; border-radius: 50%; position: absolute; top: 50%; transform: translate(-50%, -50%) scale(0); transition: transform 0.1s ease; pointer-events: none; } | |||
.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; } | |||
.wiki-icon-btn:hover { opacity: 1; transform: scale(1.1); } | |||
.wiki-icon-btn svg { width: 24px; height: 24px; fill: currentColor; } | |||
. | .modal-content { | ||
position: relative; width: 80%; max-width: 1000px; aspect-ratio: 16/9; | |||
border-radius: 12px; | |||
-webkit-mask-image: -webkit-radial-gradient(white, black); | |||
mask-image: radial-gradient(white, black); | |||
} | } | ||
Версия от 19:59, 10 апреля 2026
: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 {
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-orange);
box-shadow: 0 0 8px var(--wk-orange);
}
.timeline-link:hover .timeline-item {
background: rgba(255, 255, 255, 0.03);
border-color: var(--wk-orange);
border-radius: 0 8px 8px 0;
}
.timeline-content {
flex: 1;
padding-right: 15px;
}
.timeline-date {
font-size: .85rem;
color: var(--wk-orange);
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;
}
/* --- videoplayer --- */
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: #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;
border-radius: 12px;
overflow: hidden;
-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: #f0ad4e;
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: #3b82f6;
border-bottom: 2px solid #3b82f6;
}
.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;
}
}
.link-button:hover {
background: #2a2d36;
}
.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;
}
/* --- videoplayer --- */
.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: #f0ad4e; border-color: #f0ad4e; }
.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:not(:hover) .wiki-bottom-controls.is-playing { opacity: 0; }
.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.3); position: relative; transition: height 0.1s ease; }
.wiki-progress-container:hover .wiki-progress-bar { height: 5px; }
.wiki-progress-fill { height: 100%; background: #f00; pointer-events: none; }
.wiki-progress-dot { width: 13px; height: 13px; background: #f00; border-radius: 50%; position: absolute; top: 50%; transform: translate(-50%, -50%) scale(0); transition: transform 0.1s ease; pointer-events: none; }
.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; }
.wiki-icon-btn:hover { opacity: 1; transform: scale(1.1); }
.wiki-icon-btn svg { width: 24px; height: 24px; fill: currentColor; }
.modal-content {
position: relative; width: 80%; max-width: 1000px; aspect-ratio: 16/9;
border-radius: 12px;
-webkit-mask-image: -webkit-radial-gradient(white, black);
mask-image: radial-gradient(white, black);
}
@media (max-width: 768px) {
.nav-row-3,
.nav-row-2 {
grid-template-columns: 1fr;
}
}
@media (max-width: 768px) {
.layout-row {
grid-template-columns: 1fr;
}
}