Шаблон:LinkCard/Smuggling: различия между версиями
Pok (обсуждение | вклад) мНет описания правки |
Pok (обсуждение | вклад) мНет описания правки |
||
| Строка 1: | Строка 1: | ||
<div class="link-card-smuggling | <div class="link-card--smuggling" tabindex="0"> | ||
{{LinkСard | |||
<div class="link-card- | |image = {{#if:{{{id|}}}|{{{id}}}.png|{{{Иконка}}}}} | ||
<div | |name = {{#if:{{{id|}}}|{{#invoke:Entity Lookup|getname|{{{id}}}}}|{{{Название}}}}} | ||
|pin = {{AttentionLevel|{{{Уровень}}}|1}} | |||
|link = | |||
}}</div> | |||
<div class="link-card--smuggling-menu"> | |||
<div class="link-card--smuggling-menu__header"> | |||
<div style="padding:4px;margin-right:4px;">{{#if:{{{id|}}}|[[Файл:{{{id}}}.png|32x32px|link=|link=]]|[[файл:{{{Иконка|BikeHorn.png}}}|32x32px|link=]]}}</div> | |||
<div>'''{{#if:{{{id|}}}|{{#invoke:Entity Lookup|getname|{{{id}}}}}|{{{Название}}}}}'''</div> | |||
</div> | </div> | ||
<div class="link-card-smuggling- | <div class="link-card--smuggling-menu__body"> | ||
<div class="link-card-smuggling- | <div class="link-card--smuggling-menu__body-level">{{AttensionLevel|{{{Уровень|default}}}}}</div><span>{{{Описание}}}</span> | ||
< | |||
</div> | </div> | ||
</div><!-- | |||
<!-- | |||
--> | --> | ||
{{#css: | {{#css: | ||
.link-card-smuggling { | .link-card--smuggling { | ||
cursor: pointer; | cursor: pointer; | ||
} | } | ||
.link-card- | .link-card--smuggling-menu { | ||
overflow-y: auto; | overflow-y: auto; | ||
display: flex; | display: flex; | ||
| Строка 68: | Строка 43: | ||
} | } | ||
.link-card- | .link-card--smuggling-menu__header { | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
| Строка 86: | Строка 51: | ||
} | } | ||
.link-card-smuggling-menu__body { | .link-card--smuggling-menu__body { | ||
height: 100%; | height: 100%; | ||
position: relative; | position: relative; | ||
| Строка 94: | Строка 59: | ||
} | } | ||
.link-card- | .link-card--smuggling-menu__body p { | ||
margin: 0; | margin: 0; | ||
margin-top: 13px; | margin-top: 13px; | ||
| Строка 108: | Строка 65: | ||
} | } | ||
.link-card-smuggling-menu__body ul { | .link-card--smuggling-menu__body ul { | ||
margin-top: 13px; | margin-top: 13px; | ||
margin-bottom: -13px; | margin-bottom: -13px; | ||
| Строка 114: | Строка 71: | ||
@media (max-width: 800px) { | @media (max-width: 800px) { | ||
.link-card-smuggling { | .link-card--smuggling { | ||
display: flex; | display: flex; | ||
width: 100%; | width: 100%; | ||
| Строка 120: | Строка 77: | ||
} | } | ||
.link-card-smuggling__name { | .link-card--smuggling__name { | ||
background: # | background: #000000; | ||
padding: 4px 6px; | padding: 4px 6px; | ||
font-size: 0.9em; | font-size: 0.9em; | ||
| Строка 128: | Строка 85: | ||
} | } | ||
.link-card-smuggling__image { | .link-card--smuggling__image { | ||
padding: 4px; | padding: 4px; | ||
} | } | ||
.link-card-smuggling-menu { | .link-card--smuggling-menu { | ||
width: 86%; | width: 86%; | ||
height: 80%; | height: 80%; | ||
| Строка 139: | Строка 96: | ||
}}<!-- | }}<!-- | ||
--><div class="customCSS" style="display:none"> | --><div class="customCSS" style="display:none"> | ||
.link-card-smuggling:hover { | .link-card--smuggling:hover { | ||
filter: brightness(108%); | filter: brightness(108%); | ||
} | } | ||
.link-card-smuggling-menu__body::-webkit-scrollbar { | .link-card--smuggling-menu__body::-webkit-scrollbar { | ||
width: 12px; | width: 12px; | ||
} | } | ||
.link-card-smuggling-menu__body::-webkit-scrollbar-track { | .link-card--smuggling-menu__body::-webkit-scrollbar-track { | ||
background: #2f2f37; | background: #2f2f37; | ||
} | } | ||
.link-card-smuggling-menu__body::-webkit-scrollbar-thumb { | .link-card--smuggling-menu__body::-webkit-scrollbar-thumb { | ||
background: #4b4b52; | background: #4b4b52; | ||
border: 3px solid #2f2f37; | border: 3px solid #2f2f37; | ||
border-radius: 0px; | border-radius: 0px; | ||
} | |||
.link-card--smuggling:focus-within + .link-card--smuggling-menu { | |||
visibility: visible; | |||
opacity: 1; | |||
} | |||
.link-card--smuggling-menu:hover { | |||
visibility: visible; | |||
opacity: 1; | |||
} | |||
.link-card--smuggling-menu__body-level { | |||
margin-bottom: 8px; | |||
background: #2c2c33; | |||
padding: 4px 6px; | |||
border-radius: 0.4em; | |||
border: 1px solid rgba(var(--color-lighter--rgba), var(--alpha-x)); | |||
} | } | ||
</div> | </div> | ||