Шаблон:LinkCard/Smuggling: различия между версиями
Pok (обсуждение | вклад) мНет описания правки |
Нет описания правки |
||
| (не показано 26 промежуточных версий 2 участников) | |||
| Строка 1: | Строка 1: | ||
<div class=" | <div class="link-card--smuggling" tabindex="0"> | ||
{{LinkCard | |||
<div class="smuggling- | |изображение = [[Файл:{{#if:{{{id|}}}|{{{id}}}.png|{{{Иконка}}}}}|link=|64px]] | ||
|название = {{#if:{{{id|}}}|{{#invoke:Entity Lookup|getname|{{{id}}}}}|{{{Название}}}}} | |||
|фон = rgba(var(--color-lighter--rgb), 0.04) | |||
|пин = {{AttentionLevel|{{{Уровень}}}|1}} | |||
|ссылка = | |||
}}</div> | |||
<div class="link-card--smuggling-menu"> | |||
{{GradientHeaderFrame/Sub | |||
|title = {{#if:{{{id|}}}|[[Файл:{{{id}}}.png|32x32px|link=]]|[[файл:{{{Иконка|BikeHorn.png}}}|32x32px|link=]]}} {{#if:{{{id|}}}|{{#invoke:Entity Lookup|getname|{{{id}}}}}|{{{Название}}}}} | |||
|content = | |||
<div class="link-card--smuggling-menu__body"> | |||
<div class="link-card--smuggling-menu__body-level">{{AttensionLevel|{{{Уровень|default}}}}}</div><span>{{#if:{{{Описание|}}}|{{{Описание}}}|''Не имеет описания''}}</span> | |||
</div> | </div> | ||
}} | |||
</div><noinclude>{{doc}}</noinclude><!-- | |||
</div | |||
<!-- | |||
--> | --> | ||
{{#css: | {{#css: | ||
.smuggling | .link-card--smuggling { | ||
display: inline | display: inline; | ||
cursor: pointer; | cursor: pointer; | ||
} | } | ||
. | .link-card--smuggling-menu { | ||
display: none; | |||
display: | |||
width: 45%; | width: 45%; | ||
height: 65%; | height: 65%; | ||
position: fixed; | position: fixed; | ||
top: 0; | top: 0; | ||
right: 0; | right: 0; | ||
bottom: 0; | bottom: 0; | ||
left: 0; | left: 0; | ||
z-index: 100 | z-index: 100; | ||
margin: auto; | |||
} | } | ||
. | .link-card--smuggling-menu .gradient-header-frame-sub { | ||
box-shadow: 0px 0px 0px 100vh rgba(0, 0, 0, 0.6); | |||
} | } | ||
.smuggling-menu | .link-card--smuggling-menu .gradient-header-frame-sub { | ||
height: 100%; | |||
box-sizing: border-box; | |||
} | } | ||
.smuggling- | .link-card--smuggling-menu__body p { | ||
margin: 0; | |||
margin-top: 13px; | |||
margin-bottom: -13px; | |||
} | } | ||
. | .link-card--smuggling-menu__body ul { | ||
margin-top: 13px; | |||
margin-bottom: -13px; | |||
margin: | |||
margin-bottom: | |||
} | } | ||
@media (max-width: 800px) { | @media (max-width: 800px) { | ||
.smuggling | .link-card--smuggling { | ||
display: flex; | display: flex; | ||
width: 100%; | width: 100%; | ||
text-align: left; | text-align: left; | ||
} | } | ||
.smuggling-menu { | .link-card--smuggling-menu { | ||
width: 86%; | width: 86%; | ||
height: 80%; | height: 80%; | ||
| Строка 125: | Строка 71: | ||
}}<!-- | }}<!-- | ||
--><div class="customCSS" style="display:none"> | --><div class="customCSS" style="display:none"> | ||
.smuggling- | .link-card--smuggling:focus-within + .link-card--smuggling-menu { | ||
display: block; | |||
. | |||
} | } | ||
. | .link-card--smuggling-menu:hover { | ||
display: block; | |||
} | } | ||
.smuggling-menu__body::- | .link-card--smuggling-menu__body-level { | ||
margin-bottom: 8px; | |||
border: | background: var(--theme-bg-color-200); | ||
border- | padding: 4px 6px; | ||
border-radius: 0.4em; | |||
border: 1px solid rgba(var(--color-lighter--rgb), var(--alpha-x)); | |||
} | } | ||
</div> | </div> | ||