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

Страница интерфейса MediaWiki
Нет описания правки
Нет описания правки
Строка 1: Строка 1:
.recipe-block {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
  align-items: center; /* выравнивание по вертикали */
  margin-bottom: 12px;
}
.materials, .result {
  background: #ffffff;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: inset 0 0 4px rgba(0,0,0,0.05);
  flex: 1 1 40%; /* чуть шире */
}
.action {
  background: #ffffff;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: inset 0 0 4px rgba(0,0,0,0.05);
  flex: 0 0 120px; /* фиксированная ширина */
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  color: #555;
  user-select: none;
  cursor: default;
}
.action span {
  margin-left: 8px;
}
.chem-container {
.chem-container {
   display: flex;
   display: flex;
Строка 79: Строка 43:
   gap: 14px;
   gap: 14px;
}
}


.recipe-block {
.recipe-block {
   display: flex;
   display: flex;
  justify-content: space-between;
   gap: 12px;
   gap: 12px;
   flex-wrap: wrap;
   flex-wrap: nowrap;
  align-items: center; /* выравнивание по вертикали */
  margin-bottom: 12px;
}
}


.materials, .action, .result {
.materials, .result {
   background: #ffffff;
   background: #ffffff;
   padding: 10px 14px;
   padding: 12px 16px;
   border-radius: 8px;
   border-radius: 8px;
  flex: 1 1 30%;
   box-shadow: inset 0 0 4px rgba(0,0,0,0.05);
   box-shadow: inset 0 0 4px rgba(0,0,0,0.05);
}
   flex: 1 1 40%; /* чуть шире */
 
.section-title {
   font-weight: 600;
  margin-bottom: 6px;
  color: #444;
}
 
.materials ul, .result ul, .section ul {
  margin: 0;
  padding-left: 18px;
}
}


.action {
.action {
  background: #ffffff;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: inset 0 0 4px rgba(0,0,0,0.05);
  flex: 0 0 120px; /* фиксированная ширина */
   display: flex;
   display: flex;
  justify-content: center;
   align-items: center;
   align-items: center;
  justify-content: center;
   font-weight: 600;
   font-weight: 600;
  font-size: 1em;
   color: #555;
   color: #555;
  user-select: none;
  cursor: default;
}
}


.action span {
.action span {
   margin-left: 6px;
   margin-left: 8px;
  user-select: none;
}
}


.section {
.section {

Версия от 13:00, 3 июля 2025

.chem-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}

.infoblock {
  background: #f5f5f7;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 16px;
  width: calc((100% - 40px) / 3); /* 3 колонки с отступом */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #222;
  transition: box-shadow 0.3s ease;
}

.infoblock:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 1.2em;
  font-weight: 700;
}

.title {
  user-select: none;
}

.content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}


.recipe-block {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
  align-items: center; /* выравнивание по вертикали */
  margin-bottom: 12px;
}

.materials, .result {
  background: #ffffff;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: inset 0 0 4px rgba(0,0,0,0.05);
  flex: 1 1 40%; /* чуть шире */
}

.action {
  background: #ffffff;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: inset 0 0 4px rgba(0,0,0,0.05);
  flex: 0 0 120px; /* фиксированная ширина */
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  color: #555;
  user-select: none;
  cursor: default;
}

.action span {
  margin-left: 8px;
}


.section {
  background: #ffffff;
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: inset 0 0 4px rgba(0,0,0,0.05);
}

.section ul li {
  margin-bottom: 4px;
}

/* Мобильная адаптация */

@media (max-width: 960px) {
  .infoblock {
    width: calc((100% - 20px) / 2); /* 2 колонки */
  }
}

@media (max-width: 600px) {
  .infoblock {
    width: 100%; /* 1 колонка */
  }
}