Шаблон:LinkСard/Smuggling: различия между версиями
Материал из Space Station 14 Вики
Pok (обсуждение | вклад) мНет описания правки |
Pok (обсуждение | вклад) мНет описания правки |
||
(не показано 30 промежуточных версий этого же участника) | |||
Строка 1: | Строка 1: | ||
<div class="smuggling | <div class="link-card-smuggling noExternal mobile-image" tabindex="0" style="background-color:#8b8b8b28"> | ||
<div class=" | <div class="link-card-smuggling__level">{{AttentionLevel|{{{Уровень}}}|1}}</div> | ||
<div class=" | <div class="link-card-smuggling__image">{{#if:{{{id|}}}|[[Файл:{{{id}}}.png|64x64px|link=]]|[[файл:{{{Иконка|BikeHorn.png}}}|64x64px|link=]]}}</div> | ||
<div class=" | <div class="link-card-smuggling__name">'''{{#if:{{{id|}}}|{{#invoke:Entity Lookup|getname|{{{id}}}}}|{{{Название}}}}}'''</div> | ||
</div> | </div> | ||
<div class="smuggling-menu"> | <div class="link-card-smuggling-menu"> | ||
<div class="smuggling-menu__header"> | <div class="link-card-smuggling-menu__header"> | ||
<div style=" | <div style="padding:4px;margin-right:4px;">{{#if:{{{id|}}}|[[Файл:{{{id}}}.png|32x32px|link=]]|[[файл:{{{Иконка|BikeHorn.png}}}|32x32px|link=]]}}</div> | ||
<div>'''{{#if:{{{id|}}}|{{#invoke:Entity Lookup|getname|{{{id}}}}}|{{{Название}}}}}'''</div> | <div>'''{{#if:{{{id|}}}|{{#invoke:Entity Lookup|getname|{{{id}}}}}|{{{Название}}}}}'''</div> | ||
</div> | </div> | ||
< | <div class="link-card-smuggling-menu__body"> | ||
<div class="link-card-smuggling-menu__body-level">{{AttensionLevel|{{{Уровень|default}}}}}</div><span>{{{Описание}}}</span> | |||
<div class="smuggling-menu__body"> | |||
{{{Описание}}} | |||
</div></div> | </div></div> | ||
<!-- | <!-- | ||
Строка 20: | Строка 16: | ||
--> | --> | ||
{{#css: | {{#css: | ||
.smuggling | .link-card-smuggling { | ||
display: inline-block; | display: inline-block; | ||
position: relative; | position: relative; | ||
border-radius: 0.3em; | border-radius: 0.3em; | ||
transition: all 0. | transition: all 0.1s ease; | ||
overflow: hidden; | overflow: hidden; | ||
min-width: 130px; | min-width: 130px; | ||
Строка 33: | Строка 29: | ||
} | } | ||
. | .link-card-smuggling__level { | ||
position: absolute; | position: absolute; | ||
right: | right: 4px; | ||
font-size: 12px; | |||
} | } | ||
. | .link-card-smuggling__image { | ||
padding: 6px; | padding: 6px; | ||
} | } | ||
. | .link-card-smuggling__name { | ||
background: #00000040; | background: #00000040; | ||
padding: 2px 4px; | padding: 2px 4px; | ||
Строка 50: | Строка 47: | ||
} | } | ||
.smuggling-menu { | .link-card-smuggling-menu { | ||
overflow-y: auto; | overflow-y: auto; | ||
display: flex; | display: flex; | ||
Строка 57: | Строка 54: | ||
opacity: 0; | opacity: 0; | ||
background-color: #212126; | background-color: #212126; | ||
width: | width: 45%; | ||
height: | height: 65%; | ||
border: 1px solid | border: 1px solid #31313b; | ||
border-radius: 0.5rem; | border-radius: 0.5rem; | ||
position: fixed; | position: fixed; | ||
margin: auto; | margin: auto; | ||
Строка 69: | Строка 65: | ||
left: 0; | left: 0; | ||
z-index: 100 !important; | z-index: 100 !important; | ||
box-shadow: 0px 0px 0px 100vh rgba(0,0,0,0.6); | box-shadow: 0px 0px 0px 100vh rgba(0, 0, 0, 0.6); | ||
} | } | ||
.smuggling | .link-card-smuggling:focus-within + .link-card-smuggling-menu { | ||
visibility: visible; | |||
opacity: 1; | |||
} | } | ||
.smuggling-menu:hover { | .link-card-smuggling-menu:hover { | ||
visibility: visible; | visibility: visible; | ||
opacity: 1; | opacity: 1; | ||
} | } | ||
.smuggling-menu__header { | .link-card-smuggling-menu__header { | ||
display: flex; | |||
font-size: | align-items: center; | ||
position: relative; | |||
background: linear-gradient(90deg, #3a3a45 0%, #3a3a45 10%, #2f2f37 50%); | |||
font-size: 16px; | |||
} | |||
.link-card-smuggling-menu__body { | |||
height: 100%; | |||
position: relative; | position: relative; | ||
box-shadow: inset 0px 0px 6px 0px rgba(0, 0, 0, 0.4); | |||
padding: 8px; | |||
overflow: auto; | |||
} | } | ||
.smuggling- | .link-card-smuggling-menu__body-level { | ||
margin: | margin-bottom: 8px; | ||
background: #2c2c33; | |||
padding: 4px 6px; | |||
border: | border-radius: 0.4em; | ||
border | border: 1px solid #ffffff10; | ||
} | } | ||
.smuggling-menu__body { | .link-card-smuggling-menu__body p { | ||
margin: 0; | |||
margin-top: 12px; | |||
margin-bottom: -12px; | |||
} | |||
.link-card-smuggling-menu__body ul { | |||
margin-top: 12px; | |||
margin-bottom: -12px; | |||
} | } | ||
@media (max-width: 800px) { | @media (max-width: 800px) { | ||
.smuggling | .link-card-smuggling { | ||
display: flex; | display: flex; | ||
width: 100%; | width: 100%; | ||
text-align: left; | |||
} | } | ||
. | .link-card-smuggling__name { | ||
background: #00000020; | background: #00000020; | ||
padding: 4px 6px; | padding: 4px 6px; | ||
Строка 115: | Строка 128: | ||
} | } | ||
. | .link-card-smuggling__image { | ||
padding: 4px; | padding: 4px; | ||
} | |||
.link-card-smuggling-menu { | |||
width: 86%; | |||
height: 80%; | |||
} | } | ||
} | } | ||
}}<!-- | }}<!-- | ||
--><div class="customCSS" style="display:none"> | --><div class="customCSS" style="display:none"> | ||
.smuggling | .link-card-smuggling:hover { | ||
filter: brightness( | filter: brightness(108%); | ||
} | |||
.link-card-smuggling-menu__body::-webkit-scrollbar { | |||
width: 12px; | |||
} | |||
.link-card-smuggling-menu__body::-webkit-scrollbar-track { | |||
background: #2f2f37; | |||
} | |||
.link-card-smuggling-menu__body::-webkit-scrollbar-thumb { | |||
background: #4b4b52; | |||
border: 3px solid #2f2f37; | |||
border-radius: 0px; | |||
} | } | ||
</div> | </div> |
Текущая версия от 18:46, 5 декабря 2024
𒊹
{{{Название}}}