|
|
| (не показаны 54 промежуточные версии этого же участника) |
| Строка 1: |
Строка 1: |
| <div class="link-card noExternal mobile-image" style="--background-color:{{{background-color|#383845{{{transparency|f0}}}}}}>{{#if:{{{external|}}}|[{{{external|https://discord.gg/corvax}}} <span class="StupidButton"></span>]|[[{{{link|MainMenuBlocks/Item}}}|<span class="StupidButton"></span>]]}} | | <templatestyles src="LinkCard/styles.css" /><div class="link-card noExternal mobile-image brightness-overlay {{#if:{{{горизонт_стиль|}}}|link-card__side}} {{#if:{{{ссылка|}}}{{{внешняя_ссылка|}}}|link-card-hover}}" style=" |
| <div class="link-card__image">[[Файл:{{{image|BikeHorn.png}}}|64x64px|link=]]</div> | | --bg-color:{{{фон|var(--theme-bg-color-300)}}}; |
| <div class="link-card__name">'''{{{name|Название}}}'''</div> | | --alpha:{{{прозрачность|95%}}}; |
| </div><!--
| | --font-size:{{{размер_текста|var(--font-size-xxs)}}} |
| | | ">{{#if: {{{внешняя_ссылка|}}} | [{{{внешняя_ссылка|}}} <span class="StupidButton"></span>] | {{#if: {{{ссылка|}}} | [[{{{ссылка|}}}|<span class="StupidButton"></span>]] }} }} |
| -->{{#css:
| | <div class="link-card__image">{{{изображение|}}}</div> |
| .link-card {
| | {{#if: {{{название|}}} | <div class="link-card__name">{{{название}}}</div> }}{{#if: {{{пин|}}} | <div class="link-card__pin" style="position:absolute;">{{{пин}}}</div> }} |
| display: inline-block;
| | </div><noinclude>{{doc}}</noinclude> |
| position: relative;
| |
| min-width: 110px;
| |
| text-align: center;
| |
| border: 1px outset rgb(0 0 0 / 30%);
| |
| border-radius: 0.3em;
| |
| box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.35);
| |
| overflow: hidden;
| |
| background: var(--background-color);
| |
| transition: all 0.15s ease;
| |
| } | |
| | |
| .link-card::before {
| |
| content: "";
| |
| position: absolute;
| |
| top: 0;
| |
| left: 0;
| |
| right: 0;
| |
| bottom: 0;
| |
| background: var(--background-color);
| |
| z-index: 1;
| |
| transition: filter 0.01s;
| |
| }
| |
| | |
| .link-card__image {
| |
| position: relative;
| |
| z-index: 2;
| |
| padding: 6px;
| |
| }
| |
| | |
| .link-card__name {
| |
| position: relative;
| |
| z-index: 2;
| |
| width: 100%;
| |
| padding: 2px 4px;
| |
| font-size: 0.8em;
| |
| box-sizing: border-box;
| |
| background: #00000040;
| |
| }
| |
| | |
| @media (min-width: 800px) {
| |
| .link-card:hover {
| |
| box-shadow: 0px 4px 4px 1px rgba(0, 0, 0, 0.25);
| |
| transform: translateY(-4px);
| |
| }
| |
| } | |
| | |
| @media (max-width: 800px) {
| |
| .link-card {
| |
| display: flex;
| |
| box-shadow: 0px 2px 1px 0px rgba(0, 0, 0, 0.3);
| |
| width: 100%;
| |
| text-align: left;
| |
| }
| |
| | |
| .link-card__name {
| |
| background: #00000020;
| |
| padding: 4px 6px;
| |
| font-size: 0.9em;
| |
| display: flex;
| |
| align-items: center;
| |
| }
| |
| | |
| .link-card__image {
| |
| padding: 4px;
| |
| }
| |
| } | |
| }}<!--
| |
| | |
| --><div class="customCSS" style="display:none">
| |
| .link-card:hover::before {
| |
| filter: brightness(104%);
| |
| } | |
| </div> | |