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

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

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

Материал из Asteri Odigos
Нет описания правки
Метка: редактор вики-текста 2017
Нет описания правки
Метка: редактор вики-текста 2017
 
(не показана 1 промежуточная версия этого же участника)
Строка 1: Строка 1:
  .template-navpills {
  .template-navpills {
  display: grid;
  display: grid;
Строка 7: Строка 6:
  font-size: 0.875rem;
  font-size: 0.875rem;
  }
  }
  .template-navpill {
  .template-navpill {
  position: relative;
  position: relative;
Строка 16: Строка 14:
  overflow: hidden;
  overflow: hidden;
  }
  }
  .template-navpill-background {
  .template-navpill-background {
  position: absolute;
  position: absolute;
Строка 22: Строка 19:
  pointer-events: none;
  pointer-events: none;
  }
  }
  .template-navpill-background:after {
  .template-navpill-background:after {
  content: "";
  content: "";
Строка 30: Строка 26:
  transition: transform 250ms ease;
  transition: transform 250ms ease;
  }
  }
  .template-navpill-background img {
  .template-navpill-background img {
  width: 100%;
  width: 100%;
Строка 38: Строка 33:
  transition-property: transform;
  transition-property: transform;
  }
  }
  .template-navpill:hover .template-navpill-background::after {
  .template-navpill:hover .template-navpill-background::after {
  transform: translateX(-100%);
  transform: translateX(-100%);
  }
  }
  .template-navpill:hover .template-navpill-background img {
  .template-navpill:hover .template-navpill-background img {
  transform: scale(1.1);
  transform: scale(1.1);
  }
  }
  .template-navpill > a {
  .template-navpill > a {
  position: relative;
  position: relative;
Строка 56: Строка 48:
  height: 100%;
  height: 100%;
  }
  }
  .template-navpill > .template-navpill-background + a {
  .template-navpill > .template-navpill-background + a {
  color: #fff;
  color: #fff;
  text-shadow: -1px 0 .2em #000, 0 1px .2em #000, 1px 0 .2em #000, 0 -1px .2em #000;
  text-shadow: -1px 0 .2em #000, 0 1px .2em #000, 1px 0 .2em #000, 0 -1px .2em #000;
  }
  }
  .template-navpill:hover {
  .template-navpill:hover {
  background: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.3);
  }
  }
  .template-navpill:active {
  .template-navpill:active {
  background: rgba(255, 255, 255, 0.1);
  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);
}