MediaWiki:Common.css: различия между версиями
Материал из AbduloverA.com
Adept (обсуждение | вклад) Нет описания правки |
Adept (обсуждение | вклад) Нет описания правки |
||
| Строка 112: | Строка 112: | ||
box-shadow: 0px 0px 10px 10px rgba(255, 0, 0, 0.5); | box-shadow: 0px 0px 10px 10px rgba(255, 0, 0, 0.5); | ||
} | } | ||
/* - | /* === УНИВЕРСАЛЬНАЯ АБДУЛО-ГАЛЕРЕЯ === */ | ||
.abdul-grid- | |||
/* 1. СТИЛИ ДЛЯ СЕТКИ (GRID) */ | |||
.abdul-grid-wrap { | |||
display: flex; | display: flex; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
gap: 15px; | gap: 15px; | ||
justify-content: center; | justify-content: center; | ||
margin-top: 15px; | |||
} | } | ||
.abdul-grid-item { | .abdul-grid-item { | ||
width: 200px; | width: 200px; | ||
height: 200px; | height: 200px; | ||
border: 2px solid #b71c1c; /* Красная рамка грешника */ | |||
border: 2px solid #b71c1c; | |||
border-radius: 8px; | border-radius: 8px; | ||
background: #000; | background: #000; | ||
overflow: hidden; | |||
position: relative; | |||
box-shadow: 0 5px 15px rgba(0,0,0,0.5); | box-shadow: 0 5px 15px rgba(0,0,0,0.5); | ||
transition: | transition: 0.2s; | ||
} | } | ||
.abdul-grid-item:hover { | .abdul-grid-item:hover { | ||
transform: scale(1.05); | transform: scale(1.05); | ||
border-color: #ffd700; | border-color: #ffd700; /* Золото при наведении */ | ||
z-index: | z-index: 10; | ||
} | } | ||
/* | /* Принудительное масштабирование для сетки (заполнить квадрат) */ | ||
.abdul-grid-item img { | .abdul-grid-item img { | ||
width: 100% !important; | width: 100% !important; | ||
height: 100% !important; | height: 100% !important; | ||
object-fit: cover !important; | object-fit: cover !important; | ||
min-width: 200px; | min-width: 200px; | ||
min-height: 200px; | min-height: 200px; | ||
} | } | ||
/* | /* 2. СТИЛИ ДЛЯ СЛАЙДЕРА (CAROUSEL) */ | ||
.abdul-slider- | .abdul-slider-wrap { | ||
max-width: 600px; | max-width: 600px; | ||
margin: 20px auto; | margin: 20px auto; | ||
| Строка 157: | Строка 158: | ||
border: 2px solid #b71c1c; | border: 2px solid #b71c1c; | ||
border-radius: 12px; | border-radius: 12px; | ||
box-shadow: 0 10px 30px rgba(0,0,0,0. | box-shadow: 0 10px 30px rgba(0,0,0,0.7); | ||
} | } | ||
.abdul-slider-track { | .abdul-slider-track { | ||
display: flex; | display: flex; | ||
overflow-x: | overflow-x: hidden; /* Скрываем скролл, листаем кнопками */ | ||
scroll-behavior: smooth; | scroll-behavior: smooth; | ||
} | } | ||
.abdul-slide { | .abdul-slide { | ||
flex: 0 0 100%; | flex: 0 0 100%; | ||
height: | height: 450px; /* Фиксированная высота слайдера */ | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
position: relative; | |||
background: #000; | background: #000; | ||
} | } | ||
/* | /* ГЛАВНОЕ ИСПРАВЛЕНИЕ МАСШТАБА ДЛЯ СЛАЙДЕРА */ | ||
/* Сбрасываем размеры вики и вписываем картинку целиком */ | |||
.abdul-slide img { | .abdul-slide img { | ||
width: auto !important; | |||
height: auto !important; | |||
max-width: 100% !important; | max-width: 100% !important; | ||
max-height: 100% !important; | max-height: 100% !important; | ||
object-fit: contain !important; /* Картинка видна целиком */ | |||
object-fit: contain !important; | |||
} | } | ||
/* Кнопки | /* Кнопки переключения */ | ||
.abdul- | .abdul-nav-btn { | ||
position: absolute; | position: absolute; | ||
top: 50%; | top: 50%; | ||
transform: translateY(-50%); | transform: translateY(-50%); | ||
width: | width: 50px; | ||
height: | height: 50px; | ||
background: rgba(0,0,0,0. | background: rgba(0,0,0,0.6); | ||
color: #b71c1c; | color: #b71c1c; | ||
border: 2px solid #b71c1c; | border: 2px solid #b71c1c; | ||
border-radius: 50%; | border-radius: 50%; | ||
font-size: | font-size: 30px; | ||
line-height: 44px; /* Центровка стрелки */ | |||
text-align: center; | |||
cursor: pointer; | cursor: pointer; | ||
z-index: | z-index: 20; | ||
user-select: none; | user-select: none; | ||
transition: 0.2s; | transition: 0.2s; | ||
} | } | ||
.abdul-nav-btn:hover { | |||
.abdul- | |||
background: #b71c1c; | background: #b71c1c; | ||
color: #fff; | color: #fff; | ||
scale: 1.1; | scale: 1.1; | ||
} | } | ||
.abdul-nav-btn.prev { left: -25px; } | |||
.abdul- | .abdul-nav-btn.next { right: -25px; } | ||
.abdul- | |||
Версия от 21:08, 23 ноября 2025
form:not(.oo-ui-layout) textarea, form:not(.oo-ui-layout) input {
border: solid 1px #c8ccd1;
border-radius: 2px;
}
element.style {
background: rgba(255, 128, 0, 0.5);
border: solid 2px #000000;
}
form input:not(.mw-widgets-datetime-dateTimeInputWidget-editField):not(.mw-history-compareselectedversions-button) {
margin: 0.5em 0;
padding: 0.35em;
}
form:not(.oo-ui-layout) button, form:not(.oo-ui-layout) input[type='submit'] {
border-radius: 2px;
padding: 0.35em 1em;
background-color: rgb(255, 128, 0);
font-weight: bold;
color: rgb(0, 0, 0);
border: solid 3px rgb(0, 0, 0);
}
form:not(.oo-ui-layout) textarea, form:not(.oo-ui-layout) input {
border: solid 2px #000000;
border-radius: 2px;
background: rgba(255, 128, 0, 0.5);
font-family: Zekton;
}
form:not(.oo-ui-layout) button:not(:disabled):hover, form:not(.oo-ui-layout) input[type='submit']:not(:disabled):hover, form:not(.oo-ui-layout) button:not(:disabled):active, form:not(.oo-ui-layout) input[type='submit']:not(:disabled):active {
background-color: rgb(224, 0, 0);
}
.mw-message-box-error {
background-color: rgba(255, 0, 0, 1.0);
border-color: rgb(255, 0, 0);
/* border: solid 1px rgb(255, 0, 0); */
box-shadow: 0px 0px 17px 7px rgb(255, 0, 0);
font-size: 1.15em;
text-align: center;
font-family: 'ZektonBd';
text-shadow: 0px 0px 5px rgb(255, 255, 0);
}
a:visited {
/* color: #2a4b8d; */
color: #000000;
text-shadow: 0px 0px 4px rgb(255, 255, 0);
}
a:visited:hover {
color: #000000;
text-shadow: 0px 0px 4px rgb(255, 0, 0);
}
select {
padding: 0.35em;
box-sizing: border-box;
height: unset;
background: rgba(255, 128, 0, 0.5);
border: solid 2px #000000;
font-family: ZektonBg;
}
/* Контекст всплывающего окна */
.mw-echo-ui-notificationsListWidget a, #p-personal .mw-echo-ui-notificationsListWidget a.new {
/* color: #54595d; */
background: linear-gradient(0deg, #ff8000, #ffffff);
}
.oo-ui-popupWidget-head {
background: linear-gradient(12deg, black, transparent);
text-shadow: 0px 0px 2px rgba(255,255,0);
color: #FFFFFF;
}
div.mw-warning-with-logexcerpt {
padding: 3px;
margin-bottom: 3px;
color: white;
border: 4px solid rgba(255, 255, 0, 0.75);
background: rgba(64,64,64,0.9);
clear: both;
}
div.embedvideo.ev_left {
margin-right: 20px;
margin-top: 20px;
margin-bottom: 20px;
box-shadow: 0px 0px 10px 10px rgba(255, 0, 0, 0.5);
}
div.embedvideo.ev_right {
margin-left: 20px;
margin-top: 20px;
margin-bottom: 20px;
box-shadow: 0px 0px 10px 10px rgba(255, 0, 0, 0.5);
}
/* === УНИВЕРСАЛЬНАЯ АБДУЛО-ГАЛЕРЕЯ === */
/* 1. СТИЛИ ДЛЯ СЕТКИ (GRID) */
.abdul-grid-wrap {
display: flex;
flex-wrap: wrap;
gap: 15px;
justify-content: center;
margin-top: 15px;
}
.abdul-grid-item {
width: 200px;
height: 200px;
border: 2px solid #b71c1c; /* Красная рамка грешника */
border-radius: 8px;
background: #000;
overflow: hidden;
position: relative;
box-shadow: 0 5px 15px rgba(0,0,0,0.5);
transition: 0.2s;
}
.abdul-grid-item:hover {
transform: scale(1.05);
border-color: #ffd700; /* Золото при наведении */
z-index: 10;
}
/* Принудительное масштабирование для сетки (заполнить квадрат) */
.abdul-grid-item img {
width: 100% !important;
height: 100% !important;
object-fit: cover !important;
min-width: 200px;
min-height: 200px;
}
/* 2. СТИЛИ ДЛЯ СЛАЙДЕРА (CAROUSEL) */
.abdul-slider-wrap {
max-width: 600px;
margin: 20px auto;
position: relative;
background: #000;
border: 2px solid #b71c1c;
border-radius: 12px;
box-shadow: 0 10px 30px rgba(0,0,0,0.7);
}
.abdul-slider-track {
display: flex;
overflow-x: hidden; /* Скрываем скролл, листаем кнопками */
scroll-behavior: smooth;
}
.abdul-slide {
flex: 0 0 100%;
height: 450px; /* Фиксированная высота слайдера */
display: flex;
align-items: center;
justify-content: center;
position: relative;
background: #000;
}
/* ГЛАВНОЕ ИСПРАВЛЕНИЕ МАСШТАБА ДЛЯ СЛАЙДЕРА */
/* Сбрасываем размеры вики и вписываем картинку целиком */
.abdul-slide img {
width: auto !important;
height: auto !important;
max-width: 100% !important;
max-height: 100% !important;
object-fit: contain !important; /* Картинка видна целиком */
}
/* Кнопки переключения */
.abdul-nav-btn {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 50px;
height: 50px;
background: rgba(0,0,0,0.6);
color: #b71c1c;
border: 2px solid #b71c1c;
border-radius: 50%;
font-size: 30px;
line-height: 44px; /* Центровка стрелки */
text-align: center;
cursor: pointer;
z-index: 20;
user-select: none;
transition: 0.2s;
}
.abdul-nav-btn:hover {
background: #b71c1c;
color: #fff;
scale: 1.1;
}
.abdul-nav-btn.prev { left: -25px; }
.abdul-nav-btn.next { right: -25px; }