MediaWiki:Common.css: различия между версиями
Материал из OPSNARK - энциклопедия преступностей
Перейти к навигацииПерейти к поиску
Perelman (обсуждение | вклад) Нет описания правки |
Perelman (обсуждение | вклад) Нет описания правки |
||
| Строка 1: | Строка 1: | ||
/* Адаптивный | /* Адаптивный контейнер */ | ||
.ops-container { | .ops-adaptive-container { | ||
width: 100%; | width: 100%; | ||
} | } | ||
/* | /* Адаптивный инфобокс */ | ||
.infobox-ops- | .infobox-ops-adaptive { | ||
font-size: 90%; | font-size: 90%; | ||
border: 1px solid #aaa; | border: 1px solid #aaa; | ||
| Строка 16: | Строка 14: | ||
} | } | ||
/* | /* Текст статьи */ | ||
.ops- | .ops-text-content { | ||
width: 100%; | |||
line-height: 1.6; | |||
} | } | ||
/* | /* Мобильная версия */ | ||
@media (max-width: 768px) { | @media (max-width: 768px) { | ||
.infobox-ops- | .infobox-ops-adaptive { | ||
width: 100%; | |||
float: none; | |||
margin: 0 0 1.5em 0; | |||
} | } | ||
.ops- | .infobox-ops-adaptive table { | ||
width: 100%; | |||
} | } | ||
.infobox-ops- | .infobox-ops-adaptive th, | ||
.infobox-ops-adaptive td { | |||
display: block; | |||
width: 100%; | width: 100%; | ||
border- | padding: 10px 8px; | ||
border-bottom: 1px solid #e0e0e0; | |||
} | } | ||
.infobox-ops- | .infobox-ops-adaptive th { | ||
background-color: #f0f0f0; | |||
font-weight: bold; | |||
border-bottom: | border-bottom: none; | ||
} | } | ||
.infobox-ops- | .infobox-ops-adaptive tr:last-child th, | ||
.infobox-ops-adaptive tr:last-child td { | |||
border-bottom: none; | |||
} | } | ||
} | } | ||
/* | /* Десктопная версия */ | ||
@media (min-width: 769px) { | @media (min-width: 769px) { | ||
.infobox-ops- | .infobox-ops-adaptive { | ||
width: 300px; | |||
float: right; | |||
margin: 0 0 1em 1em; | |||
} | } | ||
} | } | ||
/* Дополнительные улучшения для | /* Дополнительные улучшения для читаемости */ | ||
.ops-text-content h2 { | |||
border-bottom: 2px solid #B0C4DE; | |||
padding-bottom: 5px; | |||
margin-top: 1.5em; | |||
} | |||
.ops-text-content ul { | |||
padding-left: 1.5em; | |||
} | |||
/* Адаптивная галерея */ | |||
@media (max-width: 768px) { | @media (max-width: 768px) { | ||
.gallery { | |||
display: grid !important; | display: grid !important; | ||
grid-template-columns: repeat(2, 1fr) !important; | grid-template-columns: repeat(2, 1fr) !important; | ||
| Строка 73: | Строка 80: | ||
} | } | ||
.gallerybox { | |||
width: 100% !important; | width: 100% !important; | ||
margin: 0 !important; | margin: 0 !important; | ||
} | } | ||
.gallerybox img { | |||
max-width: 100% !important; | max-width: 100% !important; | ||
height: auto !important; | height: auto !important; | ||
| Строка 85: | Строка 91: | ||
} | } | ||
.gallerytext { | |||
font-size: 12px; | font-size: 12px; | ||
padding: 5px; | padding: 5px; | ||
text-align: center; | |||
} | } | ||
} | } | ||
Версия от 16:34, 14 октября 2025
/* Адаптивный контейнер */
.ops-adaptive-container {
width: 100%;
}
/* Адаптивный инфобокс */
.infobox-ops-adaptive {
font-size: 90%;
border: 1px solid #aaa;
background-color: #f9f9f9;
border-radius: 6px;
overflow: hidden;
margin-bottom: 1em;
}
/* Текст статьи */
.ops-text-content {
width: 100%;
line-height: 1.6;
}
/* Мобильная версия */
@media (max-width: 768px) {
.infobox-ops-adaptive {
width: 100%;
float: none;
margin: 0 0 1.5em 0;
}
.infobox-ops-adaptive table {
width: 100%;
}
.infobox-ops-adaptive th,
.infobox-ops-adaptive td {
display: block;
width: 100%;
padding: 10px 8px;
border-bottom: 1px solid #e0e0e0;
}
.infobox-ops-adaptive th {
background-color: #f0f0f0;
font-weight: bold;
border-bottom: none;
}
.infobox-ops-adaptive tr:last-child th,
.infobox-ops-adaptive tr:last-child td {
border-bottom: none;
}
}
/* Десктопная версия */
@media (min-width: 769px) {
.infobox-ops-adaptive {
width: 300px;
float: right;
margin: 0 0 1em 1em;
}
}
/* Дополнительные улучшения для читаемости */
.ops-text-content h2 {
border-bottom: 2px solid #B0C4DE;
padding-bottom: 5px;
margin-top: 1.5em;
}
.ops-text-content ul {
padding-left: 1.5em;
}
/* Адаптивная галерея */
@media (max-width: 768px) {
.gallery {
display: grid !important;
grid-template-columns: repeat(2, 1fr) !important;
gap: 10px !important;
}
.gallerybox {
width: 100% !important;
margin: 0 !important;
}
.gallerybox img {
max-width: 100% !important;
height: auto !important;
border-radius: 4px;
}
.gallerytext {
font-size: 12px;
padding: 5px;
text-align: center;
}
}