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

Страница интерфейса MediaWiki
Нет описания правки
Нет описания правки
Строка 1: Строка 1:
   :root {
   :root {
     --width-layout: 100vw;
     --width-layout: 100vw;
    --card-bg: #2b2b2b;
    --header-bg: #333;
    --recipe-bg: #3a3a3a;
    --section-bg: transparent;
    --border-color: #555;
    --accent-color: #ffd;
    --text-color: #e0e0e0;
    --subtext-color: #ccc;
   }
   }
   .infoblocks {
   .infoblocks {
     display: flex;
     display: flex;
     flex-wrap: wrap;
     flex-wrap: wrap;
     gap: 1.2em;
     gap: 1.5em;
     justify-content: flex-start;
     justify-content: flex-start;
     padding: 2em;
     padding: 2em;
Строка 11: Строка 20:
     margin: 0 auto;
     margin: 0 auto;
   }
   }
   .infoblock {
   .infoblock {
     background: #2b2b2b;
     background: var(--card-bg);
     color: #e0e0e0;
     color: var(--text-color);
     flex: 1 1 calc(25% - 1.2em);
     flex: 1 1 calc(25% - 1.5em);
     min-width: 280px;
     min-width: 300px;
     border: 1px solid #555;
     border: 1px solid var(--border-color);
     border-radius: 8px;
     border-radius: 8px;
     display: flex;
     display: flex;
     flex-direction: column;
     flex-direction: column;
    overflow: hidden;
   }
   }
   .infoblock .header {
   .infoblock .header {
     display: flex;
     display: flex;
     align-items: center;
     align-items: center;
     padding: 0.75em 1em;
     padding: 0.75em 1em;
    gap: 0.6em;
     background: var(--header-bg);
     background: #333;
     border-bottom: 1px solid var(--border-color);
     border-bottom: 1px solid #555;
   }
   }
   .infoblock .header img { width: 22px; }
   .infoblock .header img { width: 24px; margin-right: 0.5em; }
   .infoblock .header .title { font-weight: bold; font-size: 1.15em; }
   .infoblock .header .title { font-weight: bold; font-size: 1.2em; }


   .infoblock .content {
   .infoblock .content {
     padding: 1em;
     padding: 1em;
    flex: 1;
     display: flex;
     display: flex;
     flex-direction: column;
     flex-direction: column;
    line-height: 1.5;
    flex: 1;
   }
   }
   /* Блок рецептов: сетка материалов, действия, результата */
 
   /* Блок рецептов: сетка материалов, стрелка и результата */
   .recipe-block {
   .recipe-block {
     display: grid;
     display: grid;
     grid-template-columns: 1fr auto 1fr;
     grid-template-columns: auto 1fr auto;
     align-items: center;
     align-items: center;
     gap: 0.5em;
     gap: 0.5em;
    border: 1px dashed #666;
     padding: 0.75em;
     padding: 0.75em;
    background: var(--recipe-bg);
    border-radius: 6px;
     margin-bottom: 1em;
     margin-bottom: 1em;
    background: #2f2f2f;
   }
   }
   .materials, .result {
   .materials, .result {
     display: flex;
     background: var(--recipe-bg);
    flex-direction: column;
    gap: 0.3em;
   }
   }
   .materials .section-title, .result .section-title {
   .materials .section-title, .result .section-title {
     font-weight: bold;
     font-weight: bold;
     font-size: 1em;
     font-size: 1em;
     color: #fff;
     color: var(--accent-color);
     margin-bottom: 0.4em;
     margin-bottom: 0.4em;
   }
   }
   .materials ul, .result ul {
   .materials ul, .result ul {
     margin: 0;
     margin: 0;
     padding: 0;
     padding: 0 0 0 1.2em;
    list-style: none;
   }
   }
   .materials li, .result li { font-size: 0.95em; }
   .materials li, .result li { font-size: 0.95em; line-height: 1.4; }
 
   .action {
   .action {
     text-align: center;
     text-align: center;
    color: var(--subtext-color);
    font-size: 0.95em;
    display: flex;
    flex-direction: column;
   }
   }
   .action img {
   .action img { width: 24px; margin-bottom: 0.2em; }
     width: 20px;
 
     display: block;
  /* Секции эффектов и описания */
     margin: 0 auto 0.2em;
  .section {
    margin-bottom: 1em;
     background: var(--section-bg);
  }
  .section-title {
    font-weight: bold;
    font-size: 1.05em;
     color: var(--subtext-color);
     margin-bottom: 0.6em;
  }
  .section ul {
    margin: 0;
    padding-left: 1.4em;
   }
   }
  .action span { color: #ccc; font-size: 0.95em; }
  .section { margin-bottom: 1em; }
  .section:last-child { margin-bottom: 0; }
  .section-title { font-weight: bold; font-size: 1.05em; color: #ccc; margin-bottom: 0.6em; }
  .section ul { margin: 0; padding-left: 1.4em; }
   .section ul li { margin-bottom: 0.4em; }
   .section ul li { margin-bottom: 0.4em; }

Версия от 15:35, 2 июля 2025

  :root {
    --width-layout: 100vw;
    --card-bg: #2b2b2b;
    --header-bg: #333;
    --recipe-bg: #3a3a3a;
    --section-bg: transparent;
    --border-color: #555;
    --accent-color: #ffd;
    --text-color: #e0e0e0;
    --subtext-color: #ccc;
  }

  .infoblocks {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5em;
    justify-content: flex-start;
    padding: 2em;
    max-width: var(--width-layout);
    margin: 0 auto;
  }

  .infoblock {
    background: var(--card-bg);
    color: var(--text-color);
    flex: 1 1 calc(25% - 1.5em);
    min-width: 300px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
  }

  .infoblock .header {
    display: flex;
    align-items: center;
    padding: 0.75em 1em;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
  }
  .infoblock .header img { width: 24px; margin-right: 0.5em; }
  .infoblock .header .title { font-weight: bold; font-size: 1.2em; }

  .infoblock .content {
    padding: 1em;
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  /* Блок рецептов: сетка материалов, стрелка и результата */
  .recipe-block {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.5em;
    padding: 0.75em;
    background: var(--recipe-bg);
    border-radius: 6px;
    margin-bottom: 1em;
  }
  .materials, .result {
    background: var(--recipe-bg);
  }
  .materials .section-title, .result .section-title {
    font-weight: bold;
    font-size: 1em;
    color: var(--accent-color);
    margin-bottom: 0.4em;
  }
  .materials ul, .result ul {
    margin: 0;
    padding: 0 0 0 1.2em;
  }
  .materials li, .result li { font-size: 0.95em; line-height: 1.4; }

  .action {
    text-align: center;
    color: var(--subtext-color);
    font-size: 0.95em;
    display: flex;
    flex-direction: column;
  }
  .action img { width: 24px; margin-bottom: 0.2em; }

  /* Секции эффектов и описания */
  .section {
    margin-bottom: 1em;
    background: var(--section-bg);
  }
  .section-title {
    font-weight: bold;
    font-size: 1.05em;
    color: var(--subtext-color);
    margin-bottom: 0.6em;
  }
  .section ul {
    margin: 0;
    padding-left: 1.4em;
  }
  .section ul li { margin-bottom: 0.4em; }