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

Новая страница: «<div class="modern-button"> {{#if: {{{external|}}} | <a href="{{{external}}}" style="display: flex; align-items: center; text-decoration: none; color: #FFFFFF; width: 100%;"> | [[{{{link|}}}| <div style="display: flex; align-items: center; text-decoration: none; color: #FFFFFF; width: 100%;"> }} {{#if: {{{img|}}} | [[File:{{{img}}}|{{{pixel|60px}}}|link=]] }} <div> <div c...»
 
Нет описания правки
 
(не показаны 4 промежуточные версии этого же участника)
Строка 1: Строка 1:
<div class="modern-button">
<div class="modern-button noExternal brightness-overlay {{{class}}}" style="
    {{#if: {{{external|}}} |
--background-color: {{{background-color|var(--theme-bg-color-300)}}};
        <a href="{{{external}}}" style="display: flex; align-items: center; text-decoration: none; color: #FFFFFF; width: 100%;">
">{{#if:{{{external|}}} | [{{{external|}}} <span class="StupidButton"></span>] | {{#if:{{{link|}}} | [[{{{link|}}}|<span class="StupidButton"></span>]] }} }}
    |
<div class="modern-button__image">[[File:{{{img|mousegif.gif}}}|{{{pixel|64x64px}}}]]</div>
        [[{{{link|}}}|
<div class="modern-button__content"><span class="modern-button__title">{{{text|Мышь-Пышь}}}</span>{{#if:{{{subtext|Самая прожорливая мышь на вики}}}|<em class="modern-button__subtext">{{{subtext|Самая прожорливая мышь на вики}}}</em>}}
            <div style="display: flex; align-items: center; text-decoration: none; color: #FFFFFF; width: 100%;">
</div></div><!--
    }}
 
        {{#if: {{{img|}}} |
--><templatestyles src="ModernButton/styles.css" />
            [[File:{{{img}}}|{{{pixel|60px}}}|link=]]
        }}
        <div>
            <div class="text" style="font-weight: 500;">{{{text|}}}</div>
            <div class="subtext" style="color: #D3D3D3; font-size: 12px;">{{{subtext|}}}</div>
        </div>
    {{#if: {{{external|}}} |
        </a>
    |
        </div>]]
    }}
</div>