Шаблон:Recipe: различия между версиями

Материал из МК14 | Space Station 14 Wiki
Нет описания правки
Нет описания правки
 
(не показано 9 промежуточных версий этого же участника)
Строка 2: Строка 2:
<div style="
<div style="
     display:inline-flex;
     display:inline-flex;
    vertical-align:top;
     flex-direction:column;
     flex-direction:column;
     background:#171B22;
     background:#171B22;
Строка 9: Строка 10:
     color:#FFFFFF;
     color:#FFFFFF;
     font-family:Arial,sans-serif;
     font-family:Arial,sans-serif;
    margin:4px;
    width:auto;
    max-width:350px;
">
">


Строка 37: Строка 41:
     align-items:center;
     align-items:center;
     justify-content:center;
     justify-content:center;
     gap:20px;
     gap:15px;
     padding:12px;
     padding:12px;
     box-sizing:border-box;
     box-sizing:border-box;
    flex-wrap:nowrap;
">
">


Строка 49: Строка 54:
     gap:8px;
     gap:8px;
     flex-wrap:wrap;
     flex-wrap:wrap;
    min-width:0;
    max-width:200px;
">
">


Строка 200: Строка 207:
     justify-content:center;
     justify-content:center;
     flex-shrink:0;
     flex-shrink:0;
     min-width:80px;
     min-width:70px;
     border-left:1px solid #FFFFFF;
     border-left:1px solid #FFFFFF;
     padding-left:15px;
     padding-left:10px;
">
">
    <div style="
        width:60px;
        height:60px;
        display:flex;
        align-items:center;
        justify-content:center;
        overflow:hidden;
    ">[[File:{{{method_img|Microwave.gif}}}|60px]]
    </div>


     <div style="
<!-- АВТОМАТИЧЕСКАЯ КАРТИНКА МЕТОДА (с fallback) -->
        font-size:13px;
<div style="
        font-weight:bold;
     width:60px;
        line-height:17px;
    height:60px;
        text-align:center;
    display:flex;
        color:#FFFFFF;
    align-items:center;
        margin-top:4px;
    justify-content:center;
    ">{{{method_name|Приготовление}}}{{#if:{{{method_time|}}}|<br>{{{method_time}}}|}}
    overflow:hidden;
    </div>
">{{#switch:{{{method_name|}}}
|Микроволновка={{#ifexist:File:Microwave.gif|[[File:Microwave.gif|60px]]|[[File:Microwave.png|60px]]}}
|Смешивание={{#ifexist:File:Beaker.png|[[File:Beaker.png|60px]]|[[File:Beaker.gif|60px]]}}
|Нож={{#ifexist:File:Knife.png|[[File:Knife.png|60px]]|[[File:Knife.gif|60px]]}}
|Скалка={{#ifexist:File:RollingPin.png|[[File:RollingPin.png|60px]]|[[File:RollingPin.gif|60px]]}}
|#default=[[File:Microwave.gif|60px]]
}}
</div>
 
<div style="
    font-size:13px;
    font-weight:bold;
    line-height:17px;
    text-align:center;
    color:#FFFFFF;
    margin-top:4px;
">{{{method_name|Приготовление}}}{{#if:{{{method_time|}}}|<br>{{{method_time}}}|}}
</div>
 
</div>
</div>


Строка 231: Строка 247:
     justify-content:center;
     justify-content:center;
     border-left:1px solid #FFFFFF;
     border-left:1px solid #FFFFFF;
     padding-left:15px;
     padding-left:10px;
">
">
     <div style="
     <div style="

Текущая версия от 02:46, 14 августа 2026