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

Страница интерфейса MediaWiki
Нет описания правки
Метка: ручная отмена
Нет описания правки
Строка 1: Строка 1:
.recipe-card {
/* ==================================================
  width: 100%;
  Begin стиль для выпадающего списка (ПК)
  max-width: 340px;
  ================================================== */
  margin: 1em auto;
  padding: 1rem;
  box-sizing: border-box;
  background-color: #2a2a2a;
  border: 2px solid #4fc3f7;
  border-radius: 8px;
  color: #f5f5f5;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}
 
.recipe-card:hover {
  transform: translateY(-2px);
}
 
.collapsible-block {
  margin-bottom: 1.2rem;
}
 
.collapsible-header {
  background-color: #37474f;
  color: #81d4fa;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 6px;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.3s ease;
}
 
.collapsible-header:hover {
  background-color: #455a64;
  color: #b3e5fc;
}
 
.sprite {
  width: 28px;
  height: 28px;
  background-image: url('Beaker.png');
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.2s ease;
}
 
.collapsible-header:hover .sprite {
  transform: scale(1.1);
}
 
.collapsible-content {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  transition: max-height 0.35s ease-out, opacity 0.3s ease-out;
  border-left: 3px solid #4fc3f7;
  padding-left: 1.8rem;
}


.collapsible-content.active {
/* === Общие стили === */
  max-height: 500px;
.dropdown-container {
  opacity: 1;
    position: relative;
  margin-top: 1rem;
    margin-left: 10px;
}
}


.recipe-list, .effect-list {
.dropdown {
  list-style: none;
    border: 2px solid #000;
  margin: 0;
    border-radius: 10px;
  padding: 0;
    background-color: #28303e;
  display: grid;
    width: auto;
  gap: 8px;
    padding: 5px;
    transition: background-color 0.3s ease;
}
}


.recipe-list li, .effect-list li {
.dropdown-item {
  display: flex;
    color: white;
  align-items: center;
    font-size: 16px;
  gap: 6px;
    background: #232323;
  padding: 6px 0;
    padding: 8px 12px;
  border-bottom: 1px solid #37474f;
    display: block;
  position: relative;
    text-decoration: none;
  padding-left: 24px;
    border: 2px solid #000;
    margin-bottom: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
}


.effect-list li::before {
.dropdown-item:hover {
  content: '•';
    background: #3b3b3b;
  position: absolute;
    transform: scale(1.05); /* Эффект увеличения при наведении */
  left: 0;
  color: #4fc3f7;
  font-size: 1.4em;
  line-height: 0.8;
}
}


.chem-icon {
/* Скрытие и отображение выпадающего списка */
  width: 20px;
.dropdown-list {
  height: 20px;
    display: none;
  object-fit: contain;
    list-style-type: none;
  filter: drop-shadow(0 0 2px #4fc3f7);
    margin: 0;
    padding: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: opacity 0.5s ease, max-height 0.5s ease;
}
}


.instruction {
.dropdown-container:hover .dropdown-list {
  color: #81d4fa;
    display: block;
  font-weight: 600;
    max-height: 500px;
  font-size: 15px;
    opacity: 1;
  background: rgba(129, 212, 250, 0.1);
    transition-delay: 0.2s;
  border-radius: 4px;
  padding: 8px 12px;
}
}


.instruction::before {
/* Анимация при открытии */
  content: '➤';
.dropdown-container.open .dropdown-list {
  margin-right: 8px;
    display: block;
  color: #4fc3f7;
    max-height: 500px;
    opacity: 1;
    transition: opacity 0.5s ease, max-height 0.5s ease;
}
}


.recipe-description {
/* ПК стили */
  margin-top: 1.2rem;
@media screen and (min-width: 1120px) {
  padding: 1rem;
    .dropdown-container {
  background: rgba(255, 255, 255, 0.05);
        margin-left: 20px;
  border-radius: 6px;
    }
  font-size: 14px;
  line-height: 1.5;
  color: #cfd8dc;
  border-left: 3px solid #4fc3f7;
}
}


@media (max-width: 480px) {
/* ==================================================
  .recipe-card {
  End стиль для выпадающего списка (ПК)
    font-size: 14px;
  ================================================== */
    padding: 0.8rem;
  }
  .collapsible-header {
    padding: 0.6rem 1rem;
  }
  .instruction {
    font-size: 14px;
  }
}

Версия от 08:25, 8 мая 2025

/* ==================================================
   Begin стиль для выпадающего списка (ПК)
   ================================================== */

/* === Общие стили === */
.dropdown-container {
    position: relative;
    margin-left: 10px;
}

.dropdown {
    border: 2px solid #000;
    border-radius: 10px;
    background-color: #28303e;
    width: auto;
    padding: 5px;
    transition: background-color 0.3s ease;
}

.dropdown-item {
    color: white;
    font-size: 16px;
    background: #232323;
    padding: 8px 12px;
    display: block;
    text-decoration: none;
    border: 2px solid #000;
    margin-bottom: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dropdown-item:hover {
    background: #3b3b3b;
    transform: scale(1.05); /* Эффект увеличения при наведении */
}

/* Скрытие и отображение выпадающего списка */
.dropdown-list {
    display: none;
    list-style-type: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: opacity 0.5s ease, max-height 0.5s ease;
}

.dropdown-container:hover .dropdown-list {
    display: block;
    max-height: 500px;
    opacity: 1;
    transition-delay: 0.2s;
}

/* Анимация при открытии */
.dropdown-container.open .dropdown-list {
    display: block;
    max-height: 500px;
    opacity: 1;
    transition: opacity 0.5s ease, max-height 0.5s ease;
}

/* ПК стили */
@media screen and (min-width: 1120px) {
    .dropdown-container {
        margin-left: 20px;
    }
}

/* ==================================================
   End стиль для выпадающего списка (ПК)
   ================================================== */