MediaWiki:Common.css: различия между версиями

Материал из OPSNARK - энциклопедия преступностей
Перейти к навигацииПерейти к поиску
Нет описания правки
Нет описания правки
Строка 1: Строка 1:
/* Адаптивный дизайн для ОПС шаблона */
/* Адаптивный контейнер */
.ops-container {
.ops-adaptive-container {
   width: 100%;
   width: 100%;
}
}


/* Мобильная версия инфобокса */
/* Адаптивный инфобокс */
.infobox-ops-mobile {
.infobox-ops-adaptive {
  display: none;
  width: 100%;
   font-size: 90%;
   font-size: 90%;
   border: 1px solid #aaa;
   border: 1px solid #aaa;
Строка 16: Строка 14:
}
}


/* Десктопная версия */
/* Текст статьи */
.ops-desktop-layout {
.ops-text-content {
   display: flex;
   width: 100%;
  line-height: 1.6;
}
}


/* Мобильные стили */
/* Мобильная версия */
@media (max-width: 768px) {
@media (max-width: 768px) {
   .infobox-ops-mobile {
   .infobox-ops-adaptive {
     display: block;
     width: 100%;
    float: none;
    margin: 0 0 1.5em 0;
   }
   }
    
    
   .ops-desktop-layout {
   .infobox-ops-adaptive table {
     display: none;
     width: 100%;
   }
   }
    
    
   .infobox-ops-mobile table {
   .infobox-ops-adaptive th,
  .infobox-ops-adaptive td {
    display: block;
     width: 100%;
     width: 100%;
     border-collapse: collapse;
    padding: 10px 8px;
     border-bottom: 1px solid #e0e0e0;
   }
   }
    
    
   .infobox-ops-mobile th,
   .infobox-ops-adaptive th {
  .infobox-ops-mobile td {
    background-color: #f0f0f0;
     padding: 8px;
     font-weight: bold;
     border-bottom: 1px solid #ddd;
     border-bottom: none;
   }
   }
    
    
   .infobox-ops-mobile th {
   .infobox-ops-adaptive tr:last-child th,
    text-align: left;
  .infobox-ops-adaptive tr:last-child td {
     background-color: #f0f0f0;
     border-bottom: none;
    width: 40%;
   }
   }
}
}


/* Десктопные стили */
/* Десктопная версия */
@media (min-width: 769px) {
@media (min-width: 769px) {
   .infobox-ops-mobile {
   .infobox-ops-adaptive {
     display: none;
     width: 300px;
  }
    float: right;
 
     margin: 0 0 1em 1em;
  .ops-desktop-layout {
     display: flex;
   }
   }
}
}


/* Дополнительные улучшения для мобильных */
/* Дополнительные улучшения для читаемости */
.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) {
   .article-content {
   .gallery {
    width: 100% !important;
    float: none !important;
  }
 
  .gallery-container .gallery {
     display: grid !important;
     display: grid !important;
     grid-template-columns: repeat(2, 1fr) !important;
     grid-template-columns: repeat(2, 1fr) !important;
Строка 73: Строка 80:
   }
   }
    
    
   .gallery-container .gallerybox {
   .gallerybox {
     width: 100% !important;
     width: 100% !important;
     margin: 0 !important;
     margin: 0 !important;
    text-align: center;
   }
   }
    
    
   .gallery-container .gallerybox img {
   .gallerybox img {
     max-width: 100% !important;
     max-width: 100% !important;
     height: auto !important;
     height: auto !important;
Строка 85: Строка 91:
   }
   }
    
    
   .gallery-container .gallerytext {
   .gallerytext {
     font-size: 12px;
     font-size: 12px;
     padding: 5px;
     padding: 5px;
    text-align: center;
   }
   }
}
/* Базовые стили для читаемости */
.article-content {
  line-height: 1.6;
  text-align: justify;
}
.article-content h2 {
  border-bottom: 2px solid #B0C4DE;
  padding-bottom: 5px;
  margin-top: 1.5em;
}
.article-content ul {
  padding-left: 1.5em;
}
.gallery-container {
  margin-top: 2em;
  clear: both;
}
}

Версия от 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;
  }
}