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

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

Страница интерфейса MediaWiki
Нет описания правки
Нет описания правки
 
(не показана 141 промежуточная версия этого же участника)
Строка 1: Строка 1:
/* Общий контейнер, если нужно вывести несколько карточек */
@media (max-width: 1280px) {
.recipe-container {
    .chem-heading {
  display: flex;
        display: none;
  flex-wrap: wrap;
    }
  gap: 1em;
  justify-content: center;
}
}
 
@media screen and (min-width: 1120px) {
/* Карточка рецепта */
    body.page-Тест .citizen-body-container {
.recipe-card {
        grid-template-areas: 'void header header' 'sidebar content toc' 'footer footer footer';
  position: relative;
        grid-template-columns: 10% 70% 20%;
  flex: 1 1 300px;
        margin-left: 8vw;
  max-width: 100%;
        max-width: none;
  min-width: 250px;
    }
  box-sizing: border-box;
  background-color: #2a2a2a;
  border: 2px solid #444;
  border-radius: 6px;
  padding: 1em;
  color: #f5f5f5;
  font-size: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
}
 
.chem-cards-container {
/* Название вещества сверху */
    display: grid;
.card-substance {
    grid-template-columns: repeat(3, 1fr);
  font-size: 1.1rem;
    gap: 20px;
  font-weight: bold;
    margin: 20px 0;
  text-align: center;
    width: 100%;
  margin-bottom: 0.5em;
    box-sizing: border-box;
  color: inherit;
}
}
 
.chem-card {
/* Цветная линия под названием */
    background-color: #121212;
.card-substance::after {
    border: 3px solid var(--card-border, #444);
  content: "";
    border-radius: 12px;
  display: block;
    padding: 0;
  height: 4px;
    color: #e0e0e0;
  width: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  margin: 0.3em auto 0;
    overflow: hidden;
  background-color: currentColor;
  border-radius: 2px;
}
}
 
.chem-name-header {
/* Блоки внутри карточки */
    background-color: var(--card-accent);
.collapsible-block {
    color: #ffffff;
  margin-bottom: 1em;
    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;
.collapsible-header {
    align-items: center;
  display: flex;
    justify-content: space-between;
  align-items: center;
    padding: 10px 16px;
  background-color: #444;
    background: rgba(255,255,255,0.06);
  border: none;
    border-top: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
    cursor: pointer;
  cursor: pointer;
  transition: background-color 0.3s;
  padding: 0.6em 1em;
  font-weight: bold;
  text-transform: uppercase;
  color: #81d4fa;
}
}
 
.chem-heading-content {
/* Иконка-спрайт */
    display: flex;
.collapsible-header .sprite {
    width: 100%;
  display: inline-block;
    justify-content: space-between;
  width: 32px;
    align-items: center;
  height: 32px;
  margin-right: 0.6em;
  background-image: url('path_to_beaker_image.png');
  background-size: contain;
  background-repeat: no-repeat;
}
}
 
.heading-text {
/* Мелкая иконка в списке */
    font-size: 15px;
.instruction .sprite.small {
    font-weight: 600;
  width: 20px;
    color: var(--card-accent, #8cf);
  height: 20px;
  margin-right: 0.4em;
}
}
 
.collapse-btn {
/* Ховер */
    border: 2px dotted #ffd700;
.collapsible-header:hover {
    padding: 2px 12px;
  background-color: #555;
    border-radius: 9999px;
  color: #b3e5fc;
    font-size: 13px;
    color: #ffd700;
    background: rgba(0,0,0,0.3);
}
}
 
.collapsible {
/* Линия под заголовком, цвет зависит от data-border */
    overflow: hidden;
.collapsible-header::after {
    transition: max-height 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  content: "";
    max-height: 0;
  display: block;
    padding: 0;
  height: 3px;
  background-color: currentColor;
  margin-top: 0.4em;
  border-radius: 2px;
}
}
 
.collapsible.expanded {
/* Контент */
    max-height: 2000px;
.collapsible-content {
    padding: 12px 16px 16px;
  display: none;
  margin-top: 0.8em;
  padding-left: 1.2em;
  border-left: 3px solid #81d4fa;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
}
 
.chem-recipe-block {
/* Активное состояние */
    text-align: center;
.collapsible-content.show {
  display: block;
  max-height: 500px;
}
}
 
.chem-recipe-steps {
/* Описание */
    display: flex;
.recipe-description {
    flex-direction: column;
  font-size: 0.9rem;
    gap: 32px;
  color: #b0bec5;
  margin-top: 0.5em;
}
}
 
.recipe-variant-header {
/* Список рецепта */
    font-size: 15px;
.recipe-list {
    font-weight: 700;
  list-style: none;
    color: #ffd700;
  padding: 0;
    text-align: center;
  margin: 0;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255,215,0,0.3);
    margin-bottom: 12px;
}
}
 
.chem-recipe {
.recipe-list li {
    width: 100%;
  margin-bottom: 0.4em;
    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%;
    }
}
}

Текущая версия от 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%;
    }
}