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

Материал из Space Station 14 Вики
Нет описания правки
мНет описания правки
 
(не показано 8 промежуточных версий этого же участника)
Строка 1: Строка 1:
<div class="rules__block" style="margin: {{{margin|20px 5px}}};border-left: {{{border-size|5px}}} solid {{{border-color|#2B30BD}}};padding: {{{padding|12px}}};>
<div class="rules__block" style="margin:{{{margin|20px 5px}}};border-left:{{{border-size|5px}}} solid {{{border-color|#404053}}};padding:{{{padding|12px}}};color:{{{color|lightgrey}}};>
<div class="rules__container">
<div class="rules__container">
{{#if: {{{title|}}} |  
{{#if: {{{title|}}} |  
Строка 5: Строка 5:
}}
}}
{{#if: {{{content|}}} |  
{{#if: {{{content|}}} |  
<div class="rules__content" style="margin-top: {{{margin-top-content|10px}}};>{{{content}}}</div>
<div class="rules__content" style="margin-top:{{{margin-top-content|10px}}};>{{{content}}}</div>
}}
}}
</div>
</div>
Строка 15: Строка 15:
}}
}}
</div>
</div>
<!-- Не изменяемый CSS -->
{{#css:
<div class="customCSS" style="display:none">
.rules__block {
.rules__block {
position: relative;
position: relative;
Строка 22: Строка 21:
justify-content: space-between;
justify-content: space-between;
text-align: left;
text-align: left;
background-color: #27272f;
background-color: #282831;
border-radius: 0.3em;
border-radius: 0.3em;
box-shadow: 0 4px 2px rgba(0, 0, 0, 0.3);
box-shadow: 0 4px 2px rgba(0, 0, 0, 0.3);
Строка 28: Строка 27:
}
}
.rules__block:hover {
.rules__block:hover {
background: #282831;
background: #2b2b35;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
}
.rules__block li {
.rules__block li {
margin-top: 12px;
margin-top: {{{margin-li|8px}}};
}
}
.rules__container {
.rules__container {
Строка 41: Строка 40:
}
}
.rules__content {
.rules__content {
 
}
}
.rules__title--addition {
.rules__title--addition {
Строка 62: Строка 61:
box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
transition: background 0.3s ease;
transition: background 0.3s ease;
}
.rules__container--addition:hover {
background: #393945;
}
}
.rules__content--addition {
.rules__content--addition {
Строка 104: Строка 100:
}
}
}
}
 
}}
</div>

Текущая версия от 18:05, 19 сентября 2024