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

Страница интерфейса MediaWiki
Нет описания правки
Нет описания правки
Строка 1: Строка 1:
  :root {
:root {
     --width-layout: 100vw;
     --width-layout: 100vw;
     --card-bg: #2b2b2b;
     --card-bg: #2b2b2b;
Строка 12: Строка 12:


   .infoblocks {
   .infoblocks {
     display: flex;
     display: grid;
     flex-wrap: wrap;
     grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
     gap: 1.5em;
     gap: 1.5em;
    justify-content: flex-start;
     padding: 2em;
     padding: 2em;
     max-width: var(--width-layout);
     max-width: var(--width-layout);
Строка 24: Строка 23:
     background: var(--card-bg);
     background: var(--card-bg);
     color: var(--text-color);
     color: var(--text-color);
    flex: 1 1 calc(25% - 1.5em);
    min-width: 300px;
     border: 1px solid var(--border-color);
     border: 1px solid var(--border-color);
     border-radius: 8px;
     border-radius: 8px;
Строка 49: Строка 46:
   }
   }


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


   .action {
   .action {
Строка 81: Строка 81:
     display: flex;
     display: flex;
     flex-direction: column;
     flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .action img {
    width: 24px;
    margin-bottom: 0.2em;
   }
   }
  .action img { width: 24px; margin-bottom: 0.2em; }


  /* Секции эффектов и описания */
   .section {
   .section {
     margin-bottom: 1em;
     margin-bottom: 1em;

Версия от 12:50, 3 июля 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: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5em;
    padding: 2em;
    max-width: var(--width-layout);
    margin: 0 auto;
  }

  .infoblock {
    background: var(--card-bg);
    color: var(--text-color);
    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: 1fr auto 1fr;
    align-items: start;
    gap: 0.75em;
    padding: 0.75em;
    background: var(--recipe-bg);
    border-radius: 6px;
    margin-bottom: 1em;
  }

  .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;
    justify-content: center;
    align-items: center;
  }
  .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; }