Открыть меню
Переключить меню настроек
Открыть персональное меню
Вы не представились системе
Ваш IP-адрес будет виден всем, если вы внесёте какие-либо изменения.

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

Страница интерфейса MediaWiki
Нет описания правки
Нет описания правки
 
(не показаны 133 промежуточные версии этого же участника)
Строка 1: Строка 1:
/* Основной стиль для карточек рецептов */
@media (max-width: 1280px) {
.recipe-card {
    .chem-heading {
  width: 100%;
        display: none;
  max-width: 340px; /* Немного увеличил максимальную ширину */
    }
  box-sizing: border-box;
  padding: 1rem;
  margin: 1em auto;
  background-color: #2a2a2a;
  border: 2px solid;
  border-radius: 8px; /* Увеличил радиус скругления */
  color: #f5f5f5;
  font-size: 15px; /* Увеличил базовый размер шрифта */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Более выраженная тень */
  transition: transform 0.2s ease; /* Добавил анимацию при наведении */
}
}
 
@media screen and (min-width: 1120px) {
.recipe-card:hover {
    body.page-Тест .citizen-body-container {
  transform: translateY(-2px); /* Эффект поднятия при наведении */
        grid-template-areas: 'void header header' 'sidebar content toc' 'footer footer footer';
        grid-template-columns: 10% 70% 20%;
        margin-left: 8vw;
        max-width: none;
    }
}
}
 
.chem-cards-container {
/* Анимация для раскрытия контента */
    display: grid;
@keyframes slideDown {
    grid-template-columns: repeat(3, 1fr);
  from { opacity: 0; transform: translateY(-10px); }
    gap: 20px;
  to { opacity: 1; transform: translateY(0); }
    margin: 20px 0;
    width: 100%;
    box-sizing: border-box;
}
}
 
.chem-card {
/* Стиль для блоков с контентом */
    background-color: #121212;
.collapsible-block {
    border: 3px solid var(--card-border, #444);
  margin-bottom: 1.2rem;
    border-radius: 12px;
  position: relative;
    padding: 0;
    color: #e0e0e0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    overflow: hidden;
}
}
 
.chem-name-header {
/* Заголовок карточки */
    background-color: var(--card-accent);
.collapsible-header {
    color: #ffffff;
  background-color: #37474f; /* Изменил цвет фона */
    font-size: 22px;
  border: none;
    font-weight: 700;
  font-weight: 600; /* Более умеренное начертание */
    padding: 14px 20px;
  color: #81d4fa;
    text-align: center;
  text-transform: uppercase;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
  cursor: pointer;
    margin: 0;
  border-radius: 6px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 12px; /* Современный способ отступов между элементами */
}
}
 
.chem-heading {
/* Иконка спрайта */
    display: flex;
.collapsible-header .sprite {
    align-items: center;
  width: 28px;
    justify-content: space-between;
  height: 28px;
    padding: 10px 16px;
  background-image: url('path_to_beaker_image.png');
    background: rgba(255,255,255,0.06);
  background-size: contain;
    border-top: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.2s ease;
    cursor: pointer;
}
}
 
.chem-heading-content {
/* Ховер-эффекты */
    display: flex;
.collapsible-header:hover {
    width: 100%;
  background-color: #455a64;
    justify-content: space-between;
  color: #b3e5fc;
    align-items: center;
}
}
 
.heading-text {
.collapsible-header:hover .sprite {
    font-size: 15px;
  transform: scale(1.1); /* Анимация иконки при наведении */
    font-weight: 600;
    color: var(--card-accent, #8cf);
}
}
 
.collapse-btn {
/* Контент карточки */
    border: 2px dotted #ffd700;
.collapsible-content {
    padding: 2px 12px;
  margin-top: 1rem;
    border-radius: 9999px;
  padding-left: 1.8rem;
    font-size: 13px;
  border-left: 3px solid; /* Более толстая линия */
    color: #ffd700;
  overflow: hidden;
    background: rgba(0,0,0,0.3);
  max-height: 0;
  opacity: 0;
  transition:
    max-height 0.35s ease-out,
    opacity 0.3s ease-out,
    padding 0.3s ease-out;
}
}
 
.collapsible {
/* Активное состояние */
    overflow: hidden;
.collapsible-content.active {
    transition: max-height 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  max-height: 500px;
    max-height: 0;
  opacity: 1;
    padding: 0;
  padding: 0.8rem 0 0.8rem 1.8rem;
  animation: slideDown 0.4s ease-out;
}
}
 
.collapsible.expanded {
/* Списки */
    max-height: 2000px;
.recipe-list, .collapsible-content ul {
    padding: 12px 16px 16px;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px; /* Управление отступами между элементами */
}
}
 
.chem-recipe-block {
.recipe-list li {
    text-align: center;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border-bottom: 1px solid #37474f; /* Разделители между элементами */
}
}
 
.chem-recipe-steps {
/* Элемент инструкции */
    display: flex;
.instruction {
    flex-direction: column;
  color: #81d4fa; /* Соответствует основной цветовой схеме */
    gap: 32px;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 12px;
  background: rgba(129, 212, 250, 0.1); /* Подсветка фона */
  border-radius: 4px;
  margin: 12px 0;
  display: inline-flex;
  align-items: center;
}
}
 
.recipe-variant-header {
.instruction::before {
    font-size: 15px;
  content: '➤';
    font-weight: 700;
  margin-right: 8px;
    color: #ffd700;
  color: #4fc3f7;
    text-align: center;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255,215,0,0.3);
    margin-bottom: 12px;
}
}
 
.chem-recipe {
/* Описание рецепта */
    width: 100%;
.recipe-description {
    max-width: 800px;
  margin-top: 1.2rem;
    margin: 0 auto;
  padding: 1rem;
    display: flex;
  background: rgba(255, 255, 255, 0.05);
    flex-direction: row;
  border-radius: 6px;
    gap: 24px;
  font-size: 14px;
    align-items: flex-start;
  line-height: 1.5;
    justify-content: center;
  color: #cfd8dc; /* Более светлый цвет текста */
  border-left: 3px solid #4fc3f7; /* Акцентная полоса */
}
}
 
.recipe-inputs {
/* Эффекты */
    flex: 1;
.collapsible-content ul li {
    min-width: 240px;
  position: relative;
    display: flex;
  padding-left: 24px;
    flex-direction: column;
    gap: 10px;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 14px;
}
}
 
.recipe-outputs {
.collapsible-content ul li::before {
    flex: 1;
  content: '•';
    min-width: 240px;
  position: absolute;
    display: flex;
  left: 0;
    flex-direction: column;
  color: #4fc3f7;
    gap: 10px;
  font-size: 1.4em;
    background: rgba(255,255,255,0.06);
  line-height: 0.8;
    border-radius: 10px;
    padding: 14px;
}
}
 
.recipe-item {
/* Адаптивность */
    display: flex;
@media (max-width: 480px) {
    align-items: center;
  .recipe-card {
    gap: 12px;
    background: rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 8px 14px;
    border-left: 4px solid var(--card-accent, #8cf);
    white-space: nowrap;
}
.chem-beaker {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}
.recipe-action {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 130px;
    align-self: center;
}
.recipe-action-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}
.action-sprite .chem-beaker {
    width: 46px;
    height: 46px;
}
.action-text {
    font-weight: 700;
    color: #ffd700;
    font-style: italic;
    font-size: 16px;
    line-height: 1.3;
}
.chem-effects .chem-effect-line {
    margin-bottom: 10px;
     font-size: 14px;
     font-size: 14px;
     padding: 0.8rem;
    line-height: 1.45;
  }
     padding-left: 4px;
 
}
  .collapsible-header {
.chem-desc {
     padding: 0.6rem 1rem;
    margin: 12px 16px;
  }
     padding: 12px;
 
    background: rgba(255,255,255,0.03);
  .instruction {
    border-radius: 6px;
    border-left: 4px solid var(--card-accent, #8cf);
     font-size: 14px;
     font-size: 14px;
  }
    color: #aaa;
}
}
.collapsible-content {
@media (max-width: 1024px) {
  overflow-anchor: none;
    .chem-cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
}
 
@media (max-width: 768px) {
.chem-icon {
    .chem-cards-container {
  width: 20px;
        grid-template-columns: 1fr;
  height: 20px;
    }
  object-fit: contain;
    .chem-recipe {
  filter: drop-shadow(0 0 2px #4fc3f7);  
        flex-direction: column;
        gap: 18px;
        max-width: 100%;
    }
    .chem-beaker {
        width: 32px;
        height: 32px;
    }
    .action-sprite .chem-beaker {
        width: 38px;
        height: 38px;
    }
    .recipe-inputs,
    .recipe-outputs {
        min-width: 100%;
    }
}
}

Текущая версия от 13:10, 4 апреля 2026

@media (max-width: 1280px) {
    .chem-heading {
        display: none;
    }
}
@media screen and (min-width: 1120px) {
    body.page-Тест .citizen-body-container {
        grid-template-areas: 'void header header' 'sidebar content toc' 'footer footer footer';
        grid-template-columns: 10% 70% 20%;
        margin-left: 8vw;
        max-width: none;
    }
}
.chem-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
    width: 100%;
    box-sizing: border-box;
}
.chem-card {
    background-color: #121212;
    border: 3px solid var(--card-border, #444);
    border-radius: 12px;
    padding: 0;
    color: #e0e0e0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    overflow: hidden;
}
.chem-name-header {
    background-color: var(--card-accent);
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    padding: 14px 20px;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    margin: 0;
}
.chem-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(255,255,255,0.06);
    border-top: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
}
.chem-heading-content {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}
.heading-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--card-accent, #8cf);
}
.collapse-btn {
    border: 2px dotted #ffd700;
    padding: 2px 12px;
    border-radius: 9999px;
    font-size: 13px;
    color: #ffd700;
    background: rgba(0,0,0,0.3);
}
.collapsible {
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    max-height: 0;
    padding: 0;
}
.collapsible.expanded {
    max-height: 2000px;
    padding: 12px 16px 16px;
}
.chem-recipe-block {
    text-align: center;
}
.chem-recipe-steps {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.recipe-variant-header {
    font-size: 15px;
    font-weight: 700;
    color: #ffd700;
    text-align: center;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255,215,0,0.3);
    margin-bottom: 12px;
}
.chem-recipe {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: flex-start;
    justify-content: center;
}
.recipe-inputs {
    flex: 1;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 14px;
}
.recipe-outputs {
    flex: 1;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 14px;
}
.recipe-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 8px 14px;
    border-left: 4px solid var(--card-accent, #8cf);
    white-space: nowrap;
}
.chem-beaker {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}
.recipe-action {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 130px;
    align-self: center;
}
.recipe-action-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}
.action-sprite .chem-beaker {
    width: 46px;
    height: 46px;
}
.action-text {
    font-weight: 700;
    color: #ffd700;
    font-style: italic;
    font-size: 16px;
    line-height: 1.3;
}
.chem-effects .chem-effect-line {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.45;
    padding-left: 4px;
}
.chem-desc {
    margin: 12px 16px;
    padding: 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
    border-left: 4px solid var(--card-accent, #8cf);
    font-size: 14px;
    color: #aaa;
}
@media (max-width: 1024px) {
    .chem-cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .chem-cards-container {
        grid-template-columns: 1fr;
    }
    .chem-recipe {
        flex-direction: column;
        gap: 18px;
        max-width: 100%;
    }
    .chem-beaker {
        width: 32px;
        height: 32px;
    }
    .action-sprite .chem-beaker {
        width: 38px;
        height: 38px;
    }
    .recipe-inputs,
    .recipe-outputs {
        min-width: 100%;
    }
}