Toggle preferences menu
Открыть персональное меню
Вы не представились системе
Your IP address will be publicly visible if you make any edits.
⁣ ⁣ ⁣Господь есть Дух; а где Дух Господень, там свобода. 2Кор 3:17
Cтать автором⌋ ⌈Войти в систему⁣⌋ ⁣ ⁣ ⁣ ⁣ ⁣ ⁣

Избранная статья: Святая месса

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

Материал из Asteri Odigos
Новая страница: «<noinclude> __NOINDEX__ https://tolkiengateway.net/wiki/Module:Navpills/styles.css Copyright Content is available under Creative Commons Attribution-ShareAlike 4.0 License unless otherwise noted.</noinclude> .template-navpills { display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); grid-auto-rows: 3rem; font-size: 0.875rem; } .template-navpill { position: relative; border: var(--tg-border-base)...»
Метка: редактор вики-текста 2017
 
Нет описания правки
Метка: редактор вики-текста 2017
 
(не показано 8 промежуточных версий этого же участника)
Строка 1: Строка 1:
<noinclude>
.template-navpills {
__NOINDEX__
display: grid;
https://tolkiengateway.net/wiki/Module:Navpills/styles.css
gap: 0.5rem;
Copyright
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
Content is available under Creative Commons Attribution-ShareAlike 4.0 License unless otherwise noted.</noinclude>
grid-auto-rows: 3rem;
.template-navpills {
font-size: 0.875rem;
    display: grid;
}
    gap: 0.5rem;
.template-navpill {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
position: relative;
    grid-auto-rows: 3rem;
border: var(--tg-border-base);
    font-size: 0.875rem;
border-radius: var( --tg-border-radius-medium);
}
font-weight: var(--tg-font-weight-medium);
 
line-height: var(--tg-line-height-xx-small);
.template-navpill {
overflow: hidden;
    position: relative;
}
    border: var(--tg-border-base);
.template-navpill-background {
    border-radius: var( --tg-border-radius-medium);
position: absolute;
    font-weight: var(--tg-font-weight-medium);
inset: 0;
    line-height: var(--tg-line-height-xx-small);
pointer-events: none;
    overflow: hidden;
}
}
.template-navpill-background:after {
 
content: "";
.template-navpill-background {
position: absolute;
    position: absolute;
inset: 0;
    inset: 0;
background: linear-gradient(to right, #000, transparent);
    pointer-events: none;
transition: transform 250ms ease;
}
}
 
.template-navpill-background img {
.template-navpill-background:after {
width: 100%;
    content: "";
height: 100%;
    position: absolute;
object-fit: cover;
    inset: 0;
transition: 100ms ease;
    background: linear-gradient(to right, #000, transparent);
transition-property: transform;
    transition: transform 250ms ease;
}
}
.template-navpill:hover .template-navpill-background::after {
 
transform: translateX(-100%);
.template-navpill-background img {
}
    width: 100%;
.template-navpill:hover .template-navpill-background img {
    height: 100%;
transform: scale(1.1);
    object-fit: cover;
}
    transition: 100ms ease;
.template-navpill &gt; a {
    transition-property: transform;
position: relative;
}
padding: 0 1rem;
 
display: flex;
.template-navpill:hover .template-navpill-background::after {
align-items: center;
    transform: translateX(-100%);
color: var(--tg-color-emphasized);
}
text-decoration: none;
 
height: 100%;
.template-navpill:hover .template-navpill-background img {
}
    transform: scale(1.1);
.template-navpill &gt; .template-navpill-background + a {
}
color: #fff;
 
text-shadow: -1px 0 .2em #000, 0 1px .2em #000, 1px 0 .2em #000, 0 -1px .2em #000;
.template-navpill > a {
}
    position: relative;
.template-navpill:hover {
    padding: 0 1rem;
background: rgba(255, 255, 255, 0.3);
    display: flex;
}
    align-items: center;
.template-navpill:active {
    color: var(--tg-color-emphasized);
background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}
    height: 100%;
}
 
.template-navpill > .template-navpill-background + a {
    color: #fff;
    text-shadow: -1px 0 .2em #000, 0 1px .2em #000, 1px 0 .2em #000, 0 -1px .2em #000;
}
 
.template-navpill:hover {
    background: rgba(255, 255, 255, 0.3);
}
 
.template-navpill:active {
    background: rgba(255, 255, 255, 0.1);
}

Текущая версия от 15:52, 2 марта 2025

.template-navpills {
display: grid;
gap: 0.5rem;
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
grid-auto-rows: 3rem;
font-size: 0.875rem;
}
.template-navpill {
position: relative;
border: var(--tg-border-base);
border-radius: var( --tg-border-radius-medium);
font-weight: var(--tg-font-weight-medium);
line-height: var(--tg-line-height-xx-small);
overflow: hidden;
}
.template-navpill-background {
position: absolute;
inset: 0;
pointer-events: none;
}
.template-navpill-background:after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(to right, #000, transparent);
transition: transform 250ms ease;
}
.template-navpill-background img {
width: 100%;
height: 100%;
object-fit: cover;
transition: 100ms ease;
transition-property: transform;
}
.template-navpill:hover .template-navpill-background::after {
transform: translateX(-100%);
}
.template-navpill:hover .template-navpill-background img {
transform: scale(1.1);
}
.template-navpill > a {
position: relative;
padding: 0 1rem;
display: flex;
align-items: center;
color: var(--tg-color-emphasized);
text-decoration: none;
height: 100%;
}
.template-navpill > .template-navpill-background + a {
color: #fff;
text-shadow: -1px 0 .2em #000, 0 1px .2em #000, 1px 0 .2em #000, 0 -1px .2em #000;
}
.template-navpill:hover {
background: rgba(255, 255, 255, 0.3);
}
.template-navpill:active {
background: rgba(255, 255, 255, 0.1);
}