253 lines
9.2 KiB
CSS
253 lines
9.2 KiB
CSS
/* ==========================================
|
||
DESKTOP GRID FIX
|
||
Исправление проблемы с колонками на компьютерах
|
||
Применяется на экранах 992px и больше
|
||
========================================== */
|
||
|
||
/* === КРИТИЧЕСКОЕ ИСПРАВЛЕНИЕ BOOTSTRAP GRID === */
|
||
|
||
/* Принудительно включаем flex для строк на десктопе */
|
||
@media (min-width: 992px) {
|
||
.row {
|
||
display: flex !important;
|
||
flex-wrap: wrap !important;
|
||
margin-right: -15px !important;
|
||
margin-left: -15px !important;
|
||
}
|
||
|
||
/* Все колонки должны быть flex-элементами */
|
||
[class*="col-"] {
|
||
position: relative !important;
|
||
width: 100% !important;
|
||
padding-right: 15px !important;
|
||
padding-left: 15px !important;
|
||
display: block !important;
|
||
}
|
||
|
||
/* Колонки на больших экранах (lg) */
|
||
.col-lg-1 { flex: 0 0 8.333333% !important; max-width: 8.333333% !important; }
|
||
.col-lg-2 { flex: 0 0 16.666667% !important; max-width: 16.666667% !important; }
|
||
.col-lg-3 { flex: 0 0 25% !important; max-width: 25% !important; }
|
||
.col-lg-4 { flex: 0 0 33.333333% !important; max-width: 33.333333% !important; }
|
||
.col-lg-5 { flex: 0 0 41.666667% !important; max-width: 41.666667% !important; }
|
||
.col-lg-6 { flex: 0 0 50% !important; max-width: 50% !important; }
|
||
.col-lg-7 { flex: 0 0 58.333333% !important; max-width: 58.333333% !important; }
|
||
.col-lg-8 { flex: 0 0 66.666667% !important; max-width: 66.666667% !important; }
|
||
.col-lg-9 { flex: 0 0 75% !important; max-width: 75% !important; }
|
||
.col-lg-10 { flex: 0 0 83.333333% !important; max-width: 83.333333% !important; }
|
||
.col-lg-11 { flex: 0 0 91.666667% !important; max-width: 91.666667% !important; }
|
||
.col-lg-12 { flex: 0 0 100% !important; max-width: 100% !important; }
|
||
|
||
/* Колонки на средних экранах (md) - для совместимости */
|
||
.col-md-1 { flex: 0 0 8.333333% !important; max-width: 8.333333% !important; }
|
||
.col-md-2 { flex: 0 0 16.666667% !important; max-width: 16.666667% !important; }
|
||
.col-md-3 { flex: 0 0 25% !important; max-width: 25% !important; }
|
||
.col-md-4 { flex: 0 0 33.333333% !important; max-width: 33.333333% !important; }
|
||
.col-md-5 { flex: 0 0 41.666667% !important; max-width: 41.666667% !important; }
|
||
.col-md-6 { flex: 0 0 50% !important; max-width: 50% !important; }
|
||
.col-md-7 { flex: 0 0 58.333333% !important; max-width: 58.333333% !important; }
|
||
.col-md-8 { flex: 0 0 66.666667% !important; max-width: 66.666667% !important; }
|
||
.col-md-9 { flex: 0 0 75% !important; max-width: 75% !important; }
|
||
.col-md-10 { flex: 0 0 83.333333% !important; max-width: 83.333333% !important; }
|
||
.col-md-11 { flex: 0 0 91.666667% !important; max-width: 91.666667% !important; }
|
||
.col-md-12 { flex: 0 0 100% !important; max-width: 100% !important; }
|
||
|
||
/* Автоматические колонки */
|
||
.col,
|
||
.col-auto {
|
||
flex: 1 1 0 !important;
|
||
max-width: 100% !important;
|
||
}
|
||
|
||
.col-auto {
|
||
flex: 0 0 auto !important;
|
||
width: auto !important;
|
||
max-width: none !important;
|
||
}
|
||
}
|
||
|
||
/* === ДОПОЛНИТЕЛЬНО ДЛЯ ОЧЕНЬ БОЛЬШИХ ЭКРАНОВ === */
|
||
@media (min-width: 1200px) {
|
||
.col-xl-1 { flex: 0 0 8.333333% !important; max-width: 8.333333% !important; }
|
||
.col-xl-2 { flex: 0 0 16.666667% !important; max-width: 16.666667% !important; }
|
||
.col-xl-3 { flex: 0 0 25% !important; max-width: 25% !important; }
|
||
.col-xl-4 { flex: 0 0 33.333333% !important; max-width: 33.333333% !important; }
|
||
.col-xl-5 { flex: 0 0 41.666667% !important; max-width: 41.666667% !important; }
|
||
.col-xl-6 { flex: 0 0 50% !important; max-width: 50% !important; }
|
||
.col-xl-7 { flex: 0 0 58.333333% !important; max-width: 58.333333% !important; }
|
||
.col-xl-8 { flex: 0 0 66.666667% !important; max-width: 66.666667% !important; }
|
||
.col-xl-9 { flex: 0 0 75% !important; max-width: 75% !important; }
|
||
.col-xl-10 { flex: 0 0 83.333333% !important; max-width: 83.333333% !important; }
|
||
.col-xl-11 { flex: 0 0 91.666667% !important; max-width: 91.666667% !important; }
|
||
.col-xl-12 { flex: 0 0 100% !important; max-width: 100% !important; }
|
||
}
|
||
|
||
/* === ИСПРАВЛЕНИЕ КОНТЕЙНЕРОВ === */
|
||
@media (min-width: 992px) {
|
||
.container {
|
||
max-width: 960px !important;
|
||
}
|
||
}
|
||
|
||
@media (min-width: 1200px) {
|
||
.container {
|
||
max-width: 1140px !important;
|
||
}
|
||
}
|
||
|
||
@media (min-width: 1400px) {
|
||
.container {
|
||
max-width: 1320px !important;
|
||
}
|
||
}
|
||
|
||
/* === FLEX UTILITIES === */
|
||
@media (min-width: 992px) {
|
||
.d-lg-flex { display: flex !important; }
|
||
.d-lg-block { display: block !important; }
|
||
.d-lg-none { display: none !important; }
|
||
|
||
.flex-lg-row { flex-direction: row !important; }
|
||
.flex-lg-column { flex-direction: column !important; }
|
||
|
||
.justify-content-lg-start { justify-content: flex-start !important; }
|
||
.justify-content-lg-end { justify-content: flex-end !important; }
|
||
.justify-content-lg-center { justify-content: center !important; }
|
||
.justify-content-lg-between { justify-content: space-between !important; }
|
||
.justify-content-lg-around { justify-content: space-around !important; }
|
||
|
||
.align-items-lg-start { align-items: flex-start !important; }
|
||
.align-items-lg-end { align-items: flex-end !important; }
|
||
.align-items-lg-center { align-items: center !important; }
|
||
.align-items-lg-baseline { align-items: baseline !important; }
|
||
.align-items-lg-stretch { align-items: stretch !important; }
|
||
}
|
||
|
||
/* === MARGIN & PADDING UTILITIES === */
|
||
@media (min-width: 992px) {
|
||
.m-lg-0 { margin: 0 !important; }
|
||
.m-lg-1 { margin: 0.25rem !important; }
|
||
.m-lg-2 { margin: 0.5rem !important; }
|
||
.m-lg-3 { margin: 1rem !important; }
|
||
.m-lg-4 { margin: 1.5rem !important; }
|
||
.m-lg-5 { margin: 3rem !important; }
|
||
|
||
.mt-lg-0 { margin-top: 0 !important; }
|
||
.mt-lg-1 { margin-top: 0.25rem !important; }
|
||
.mt-lg-2 { margin-top: 0.5rem !important; }
|
||
.mt-lg-3 { margin-top: 1rem !important; }
|
||
.mt-lg-4 { margin-top: 1.5rem !important; }
|
||
.mt-lg-5 { margin-top: 3rem !important; }
|
||
|
||
.mb-lg-0 { margin-bottom: 0 !important; }
|
||
.mb-lg-1 { margin-bottom: 0.25rem !important; }
|
||
.mb-lg-2 { margin-bottom: 0.5rem !important; }
|
||
.mb-lg-3 { margin-bottom: 1rem !important; }
|
||
.mb-lg-4 { margin-bottom: 1.5rem !important; }
|
||
.mb-lg-5 { margin-bottom: 3rem !important; }
|
||
|
||
.p-lg-0 { padding: 0 !important; }
|
||
.p-lg-1 { padding: 0.25rem !important; }
|
||
.p-lg-2 { padding: 0.5rem !important; }
|
||
.p-lg-3 { padding: 1rem !important; }
|
||
.p-lg-4 { padding: 1.5rem !important; }
|
||
.p-lg-5 { padding: 3rem !important; }
|
||
}
|
||
|
||
/* === TEXT UTILITIES === */
|
||
@media (min-width: 992px) {
|
||
.text-lg-left { text-align: left !important; }
|
||
.text-lg-right { text-align: right !important; }
|
||
.text-lg-center { text-align: center !important; }
|
||
}
|
||
|
||
/* === СПЕЦИАЛЬНЫЕ ИСПРАВЛЕНИЯ ДЛЯ PHANTOM PROTOCOL === */
|
||
|
||
/* Hero Section - должна быть в две колонки на десктопе */
|
||
@media (min-width: 992px) {
|
||
.hero-section .row {
|
||
display: flex !important;
|
||
align-items: center !important;
|
||
}
|
||
|
||
.hero-section .col-lg-6,
|
||
.hero-section .col-md-6 {
|
||
flex: 0 0 50% !important;
|
||
max-width: 50% !important;
|
||
}
|
||
}
|
||
|
||
/* Feature cards - должны быть в 3 колонки */
|
||
@media (min-width: 992px) {
|
||
.features-grid .col-lg-4,
|
||
.features-grid .col-md-4 {
|
||
flex: 0 0 33.333333% !important;
|
||
max-width: 33.333333% !important;
|
||
}
|
||
|
||
.features-grid .col-lg-6,
|
||
.features-grid .col-md-6 {
|
||
flex: 0 0 50% !important;
|
||
max-width: 50% !important;
|
||
}
|
||
}
|
||
|
||
/* Comparison table - должна быть во всю ширину */
|
||
@media (min-width: 992px) {
|
||
.comparison-section .col-lg-12 {
|
||
flex: 0 0 100% !important;
|
||
max-width: 100% !important;
|
||
}
|
||
}
|
||
|
||
/* Stats - должны быть в ряд */
|
||
@media (min-width: 992px) {
|
||
.hero-stats .row {
|
||
display: flex !important;
|
||
justify-content: space-around !important;
|
||
}
|
||
|
||
.hero-stats .col-md-4,
|
||
.hero-stats .col-lg-4 {
|
||
flex: 0 0 33.333333% !important;
|
||
max-width: 33.333333% !important;
|
||
}
|
||
}
|
||
|
||
/* Footer columns */
|
||
@media (min-width: 992px) {
|
||
.footer .col-lg-4 {
|
||
flex: 0 0 33.333333% !important;
|
||
max-width: 33.333333% !important;
|
||
}
|
||
|
||
.footer .col-lg-2 {
|
||
flex: 0 0 16.666667% !important;
|
||
max-width: 16.666667% !important;
|
||
}
|
||
|
||
.footer .col-lg-3 {
|
||
flex: 0 0 25% !important;
|
||
max-width: 25% !important;
|
||
}
|
||
|
||
.footer .col-lg-6 {
|
||
flex: 0 0 50% !important;
|
||
max-width: 50% !important;
|
||
}
|
||
}
|
||
|
||
/* === ОТЛАДКА (временно отключено) === */
|
||
/* Раскомментируйте если нужно проверить границы колонок
|
||
@media (min-width: 992px) {
|
||
.row {
|
||
border: 1px solid rgba(0, 240, 255, 0.1) !important;
|
||
}
|
||
|
||
[class*="col-"] {
|
||
border: 1px solid rgba(122, 62, 255, 0.1) !important;
|
||
min-height: 50px;
|
||
}
|
||
}
|
||
*/
|