MediaWiki:Test.css

Страница интерфейса MediaWiki

Замечание: Возможно, после публикации вам придётся очистить кэш своего браузера, чтобы увидеть изменения.

  • Firefox / Safari: Удерживая клавишу Shift, нажмите на панели инструментов Обновить либо нажмите Ctrl+F5 или Ctrl+R (⌘+R на Mac)
  • Google Chrome: Нажмите Ctrl+Shift+R (⌘+Shift+R на Mac)
  • Internet Explorer / Edge: Удерживая Ctrl, нажмите Обновить либо нажмите Ctrl+F5
  • Opera: Нажмите Ctrl+F5.
.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;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.materials, .action, .result {
  background: #ffffff;
  padding: 10px 14px;
  border-radius: 8px;
  flex: 1 1 30%;
  box-shadow: inset 0 0 4px rgba(0,0,0,0.05);
}

.section-title {
  font-weight: 600;
  margin-bottom: 6px;
  color: #444;
}

.materials ul, .result ul, .section ul {
  margin: 0;
  padding-left: 18px;
}

.action {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1em;
  color: #555;
}

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

.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 колонка */
  }
}