Toggle menu
Toggle preferences menu
Toggle personal menu
Nejste přihlášen(a)
Your IP address will be publicly visible if you make any edits.

Modul:Navpills/styles.css: Porovnání verzí

Z Bradavice Online Wiki
Bez shrnutí editace
Bez shrnutí editace
Řádek 68: Řádek 68:
}
}


.template-navpill{ position: relative; }
 
.template-navpill::before{
 
   content: "";
.template-navpill{
  position: absolute; inset: 0;
   transition: box-shadow 160ms ease;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.28) 40%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 450ms ease;
  pointer-events: none;
  mix-blend-mode: screen; /* funguje pěkně i v dark */
}
}
.template-navpill:hover::before{
.template-navpill:hover{
   transform: translateX(120%);
   box-shadow:
    inset 0 0 0 1px var(--color-progressive),
    0 6px 18px rgba(0,0,0,.18);
}
}

Verze z 13. 10. 2025, 22:34

.template-navpills {
    display: grid;
    gap: var( --space-xs );
    grid-template-columns: repeat( auto-fill, minmax( 160px, 1fr ) );
    grid-auto-rows: 3rem;
    font-size: var( --font-size-small );
}

.template-navpill {
	position: relative;
	border: 1px solid var( --border-color-base );
    border-radius: var( --border-radius-medium );
    font-weight: var( --font-weight-medium );
    line-height: var( --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;
    transition: transform 250ms ease;
}

.template-navpill-background img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: var( --transition-hover );
    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 var( --space-md );
    display: flex;
    align-items: center;
    color: var( --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: var( --background-color-button-quiet--hover );
}

.template-navpill:active {
    background: var( --background-color-button-quiet--active );
}



.template-navpill{
  transition: box-shadow 160ms ease;
}
.template-navpill:hover{
  box-shadow:
    inset 0 0 0 1px var(--color-progressive),
    0 6px 18px rgba(0,0,0,.18);
}