Шаблон:ModernButton: различия между версиями
Материал из SS14 Backmen
Danonchek (обсуждение | вклад) (Новая страница: «<div class="modern-button noExternal" style="position: relative;display: flex;min-width: 45%;background: #31313b;border-radius: 8px;min-height: 64px;width: 100%;overflow: hidden;box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.2);">{{#if: {{{external|}}}|[{{{external|https://discord.gg/corvax}}} <span class="StupidButton"></span>]|[[{{{link|Шаблон:ModernButton}}}|<span class="StupidButton"></span>]]}} <div class="modern-button__image" style="display: flex;a...») |
Danonchek (обсуждение | вклад) Нет описания правки Метка: отменено |
||
Строка 1: | Строка 1: | ||
<div class="modern-button noExternal | <div class="modern-button noExternal">{{#if: {{{external|}}}|[{{{external|https://discord.gg/corvax}}} <span class="StupidButton"></span>]|[[{{{link|Шаблон:ModernButton}}}|<span class="StupidButton"></span>]]}} | ||
<div class="modern-button__image | <div class="modern-button__image">[[File:{{{img|mousegif.gif}}}|{{{pixel|64x64px}}}]]</div> | ||
<div class="modern-button__content | <div class="modern-button__content"><span class="modern-button__title">{{{text|Мышь-Пышь}}}</span>{{#if:{{{subtext|Самая прожорливая мышь на вики}}}|<em class="modern-button__subtext">{{{subtext|Самая прожорливая мышь на вики}}}</em>}} | ||
</div></div> | </div></div> | ||
<!-- Не изменяемый CSS --> | |||
<div class="customCSS" style="display:none"> | |||
.modern-button { | |||
position: relative; | |||
display: flex; | |||
min-width: 45%; | |||
background: #31313b; | |||
border-radius: 8px; | |||
min-height: 64px; | |||
width: 100%; | |||
overflow: hidden; | |||
box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.2); | |||
} | |||
.modern-button__image { | |||
display: flex; | |||
align-items: center; | |||
background: #40404d; | |||
padding: 4px; | |||
box-shadow: inset 20px 0px 20px 0px rgba(0, 0, 0, 0.05); | |||
} | |||
.modern-button__content { | |||
display: flex; | |||
flex-direction: column; | |||
justify-content: center; | |||
gap: 2px; | |||
width: 100%; | |||
padding: 8px 10px; | |||
} | |||
.modern-button__title { | |||
font-size: 1.8em; | |||
line-height: 1; | |||
font-family: "Oswald"; | |||
} | |||
.modern-button__subtext { | |||
font-size: 0.8em; | |||
} | |||
}}<!-- | |||
--><div class="customCSS" style="display:none"> | |||
.modern-button:hover { | |||
filter: brightness(108%); | |||
} | |||
</div> | |||
</div> |