Template:Tournament row/styles.css: Difference between revisions
Template page
More actions
m Improve tournament list row layout and responsive backdrop |
m Improve tournament list row layout and responsive backdrop |
||
| Line 9: | Line 9: | ||
.loka-tournament-list-row { | .loka-tournament-list-row { | ||
display: grid; | display: grid; | ||
grid-template-columns: minmax( | grid-template-columns: minmax(215px, 1.55fr) minmax(78px, .55fr) repeat(3, minmax(130px, 1fr)); | ||
column-gap: .75em; | column-gap: .75em; | ||
align-items: center; | align-items: center; | ||
| Line 39: | Line 39: | ||
.loka-tournament-list-name, | .loka-tournament-list-name, | ||
.loka-tournament-list-format, | .loka-tournament-list-format, | ||
.loka-tournament-list- | .loka-tournament-list-placement { | ||
position: relative; | position: relative; | ||
z-index: 1; | z-index: 1; | ||
| Line 57: | Line 56: | ||
font-variant: small-caps; | font-variant: small-caps; | ||
font-weight: 600; | font-weight: 600; | ||
} | |||
.loka-tournament-list-date { | |||
display: block; | |||
margin-top: .12em; | |||
font-size: .76em; | |||
opacity: .68; | |||
} | |||
.loka-tournament-list-backdrop + .loka-tournament-list-name .loka-tournament-list-primary a { | |||
text-shadow: 0 1px 3px rgba(0, 0, 0, .95), 0 0 8px rgba(0, 0, 0, .75); | |||
} | } | ||
| Line 63: | Line 73: | ||
inset: 0 auto 0 0; | inset: 0 auto 0 0; | ||
z-index: 0; | z-index: 0; | ||
width: | width: 68%; | ||
overflow: hidden; | overflow: hidden; | ||
opacity: . | opacity: .65; | ||
pointer-events: none; | pointer-events: none; | ||
-webkit-mask-image: linear-gradient(to right, #000 0%, #000 | -webkit-mask-image: linear-gradient(to right, #000 0%, #000 18%, transparent 100%); | ||
mask-image: linear-gradient(to right, #000 0%, #000 | mask-image: linear-gradient(to right, #000 0%, #000 18%, transparent 100%); | ||
} | } | ||
| Line 77: | Line 87: | ||
object-fit: cover; | object-fit: cover; | ||
object-position: center top; | object-position: center top; | ||
filter: brightness(. | filter: brightness(.84) saturate(.92); | ||
} | } | ||
| Line 88: | Line 98: | ||
} | } | ||
.loka-tournament-list- | .loka-tournament-list-placement { | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
| Line 94: | Line 104: | ||
} | } | ||
.loka-tournament-list- | .loka-tournament-list-placement-text, | ||
.loka-tournament-list- | .loka-tournament-list-placement-name, | ||
.loka-tournament-list- | .loka-tournament-list-placement-members { | ||
display: block; | display: block; | ||
} | } | ||
.loka-tournament-list- | .loka-tournament-list-placement-members { | ||
margin-top: .08em; | margin-top: .08em; | ||
font-size: .78em; | font-size: .78em; | ||
opacity: .66; | opacity: .66; | ||
} | |||
.loka-tournament-list-mobile-label { | |||
display: none; | |||
} | |||
.loka-tournament-filter-target { | |||
display: block; | |||
position: relative; | |||
top: -.4em; | |||
width: 0; | |||
height: 0; | |||
overflow: hidden; | |||
} | |||
.loka-tournament-filters { | |||
display: flex; | |||
flex-wrap: wrap; | |||
gap: .4em; | |||
margin: 0 0 .65em; | |||
} | |||
.loka-tournament-filters a { | |||
display: inline-block; | |||
padding: .3em .72em; | |||
border: 1px solid rgba(255, 255, 255, .12); | |||
border-radius: 4px; | |||
background: rgba(255, 255, 255, .04); | |||
color: inherit; | |||
font-size: .78em; | |||
text-decoration: none; | |||
} | |||
.loka-tournament-filters a:hover, | |||
#tournaments-all:target ~ .loka-tournament-filters a[href$="#tournaments-all"], | |||
#tournaments-1v1:target ~ .loka-tournament-filters a[href$="#tournaments-1v1"], | |||
#tournaments-2v2:target ~ .loka-tournament-filters a[href$="#tournaments-2v2"], | |||
#tournaments-3v3:target ~ .loka-tournament-filters a[href$="#tournaments-3v3"] { | |||
background: rgba(240, 207, 142, .14); | |||
border-color: rgba(240, 207, 142, .42); | |||
} | |||
#tournaments-1v1:target ~ .loka-tournament-list .loka-tournament-list-row:not(.loka-tournament-list-row--1v1), | |||
#tournaments-2v2:target ~ .loka-tournament-list .loka-tournament-list-row:not(.loka-tournament-list-row--2v2), | |||
#tournaments-3v3:target ~ .loka-tournament-list .loka-tournament-list-row:not(.loka-tournament-list-row--3v3) { | |||
display: none; | |||
} | } | ||
| Line 114: | Line 170: | ||
grid-template-columns: minmax(0, 1fr) auto; | grid-template-columns: minmax(0, 1fr) auto; | ||
grid-template-areas: | grid-template-areas: | ||
"name | "name format" | ||
" | "winner winner" | ||
" | "second second" | ||
row-gap: . | "third third"; | ||
row-gap: .3em; | |||
padding: .62em .7em; | padding: .62em .7em; | ||
} | } | ||
.loka-tournament-list-name { grid-area: name; } | .loka-tournament-list-name { grid-area: name; } | ||
.loka-tournament-list- | .loka-tournament-list-format { grid-area: format; text-align: right; } | ||
.loka-tournament-list- | .loka-tournament-list-winner { grid-area: winner; } | ||
.loka-tournament-list- | .loka-tournament-list-second { grid-area: second; } | ||
.loka-tournament-list-third { grid-area: third; } | |||
.loka-tournament-list-placement { | |||
font-size: .9em; | |||
} | |||
.loka-tournament-list-mobile-label { | |||
display: inline-block; | |||
flex: 0 0 4.8em; | |||
font-size: .72em; | |||
font-weight: 700; | |||
letter-spacing: .03em; | |||
text-transform: uppercase; | |||
opacity: .58; | |||
} | |||
.loka-tournament-list-backdrop { | .loka-tournament-list-backdrop { | ||
width: | width: 86%; | ||
opacity: . | opacity: .5; | ||
} | } | ||
} | } | ||
| Line 149: | Line 221: | ||
.loka-tournament-list-row:hover { | .loka-tournament-list-row:hover { | ||
background: rgba(0, 0, 0, .025); | background: rgba(0, 0, 0, .025); | ||
} | |||
.loka-tournament-filters a { | |||
background: rgba(0, 0, 0, .025); | |||
border-color: rgba(0, 0, 0, .12); | |||
} | } | ||
.loka-tournament-list-backdrop { | .loka-tournament-list-backdrop { | ||
opacity: . | opacity: .42; | ||
} | } | ||
.loka-tournament-list-backdrop img { | .loka-tournament-list-backdrop img { | ||
filter: brightness( | filter: brightness(1) saturate(.82); | ||
} | } | ||
} | } | ||
Revision as of 22:30, 18 August 2026
.loka-tournament-list {
border: 1px solid rgba(255, 255, 255, .1);
border-radius: 5px;
overflow: hidden;
background: rgba(18, 18, 18, .45);
}
.loka-tournament-list-header,
.loka-tournament-list-row {
display: grid;
grid-template-columns: minmax(215px, 1.55fr) minmax(78px, .55fr) repeat(3, minmax(130px, 1fr));
column-gap: .75em;
align-items: center;
}
.loka-tournament-list-header {
padding: .48em .7em;
color: #f0cf8e;
font-size: .68em;
font-weight: 700;
letter-spacing: .04em;
text-transform: uppercase;
background: rgba(255, 255, 255, .045);
}
.loka-tournament-list-row {
position: relative;
isolation: isolate;
min-height: 54px;
padding: .48em .7em;
font-size: .84em;
border-top: 1px solid rgba(255, 255, 255, .075);
overflow: hidden;
}
.loka-tournament-list-row:hover {
background: rgba(255, 255, 255, .035);
}
.loka-tournament-list-name,
.loka-tournament-list-format,
.loka-tournament-list-placement {
position: relative;
z-index: 1;
min-width: 0;
}
.loka-tournament-list-primary {
display: inline;
margin-left: .3em;
}
.loka-tournament-list-primary {
font-family: UNIVERSAL-SERIF, serif;
font-size: 1.08em;
font-variant: small-caps;
font-weight: 600;
}
.loka-tournament-list-date {
display: block;
margin-top: .12em;
font-size: .76em;
opacity: .68;
}
.loka-tournament-list-backdrop + .loka-tournament-list-name .loka-tournament-list-primary a {
text-shadow: 0 1px 3px rgba(0, 0, 0, .95), 0 0 8px rgba(0, 0, 0, .75);
}
.loka-tournament-list-backdrop {
position: absolute;
inset: 0 auto 0 0;
z-index: 0;
width: 68%;
overflow: hidden;
opacity: .65;
pointer-events: none;
-webkit-mask-image: linear-gradient(to right, #000 0%, #000 18%, transparent 100%);
mask-image: linear-gradient(to right, #000 0%, #000 18%, transparent 100%);
}
.loka-tournament-list-backdrop img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
object-position: center top;
filter: brightness(.84) saturate(.92);
}
.loka-tournament-list-row img {
image-rendering: pixelated;
}
.loka-tournament-list-backdrop img {
image-rendering: auto;
}
.loka-tournament-list-placement {
display: flex;
align-items: center;
gap: .35em;
}
.loka-tournament-list-placement-text,
.loka-tournament-list-placement-name,
.loka-tournament-list-placement-members {
display: block;
}
.loka-tournament-list-placement-members {
margin-top: .08em;
font-size: .78em;
opacity: .66;
}
.loka-tournament-list-mobile-label {
display: none;
}
.loka-tournament-filter-target {
display: block;
position: relative;
top: -.4em;
width: 0;
height: 0;
overflow: hidden;
}
.loka-tournament-filters {
display: flex;
flex-wrap: wrap;
gap: .4em;
margin: 0 0 .65em;
}
.loka-tournament-filters a {
display: inline-block;
padding: .3em .72em;
border: 1px solid rgba(255, 255, 255, .12);
border-radius: 4px;
background: rgba(255, 255, 255, .04);
color: inherit;
font-size: .78em;
text-decoration: none;
}
.loka-tournament-filters a:hover,
#tournaments-all:target ~ .loka-tournament-filters a[href$="#tournaments-all"],
#tournaments-1v1:target ~ .loka-tournament-filters a[href$="#tournaments-1v1"],
#tournaments-2v2:target ~ .loka-tournament-filters a[href$="#tournaments-2v2"],
#tournaments-3v3:target ~ .loka-tournament-filters a[href$="#tournaments-3v3"] {
background: rgba(240, 207, 142, .14);
border-color: rgba(240, 207, 142, .42);
}
#tournaments-1v1:target ~ .loka-tournament-list .loka-tournament-list-row:not(.loka-tournament-list-row--1v1),
#tournaments-2v2:target ~ .loka-tournament-list .loka-tournament-list-row:not(.loka-tournament-list-row--2v2),
#tournaments-3v3:target ~ .loka-tournament-list .loka-tournament-list-row:not(.loka-tournament-list-row--3v3) {
display: none;
}
@media (max-width: 760px) {
.loka-tournament-list-header {
display: none;
}
.loka-tournament-list-row {
grid-template-columns: minmax(0, 1fr) auto;
grid-template-areas:
"name format"
"winner winner"
"second second"
"third third";
row-gap: .3em;
padding: .62em .7em;
}
.loka-tournament-list-name { grid-area: name; }
.loka-tournament-list-format { grid-area: format; text-align: right; }
.loka-tournament-list-winner { grid-area: winner; }
.loka-tournament-list-second { grid-area: second; }
.loka-tournament-list-third { grid-area: third; }
.loka-tournament-list-placement {
font-size: .9em;
}
.loka-tournament-list-mobile-label {
display: inline-block;
flex: 0 0 4.8em;
font-size: .72em;
font-weight: 700;
letter-spacing: .03em;
text-transform: uppercase;
opacity: .58;
}
.loka-tournament-list-backdrop {
width: 86%;
opacity: .5;
}
}
@media (prefers-color-scheme: light) {
.loka-tournament-list {
background: rgba(255, 255, 255, .58);
border-color: rgba(0, 0, 0, .1);
}
.loka-tournament-list-header {
color: #8b5d22;
background: rgba(0, 0, 0, .035);
}
.loka-tournament-list-row {
border-top-color: rgba(0, 0, 0, .08);
}
.loka-tournament-list-row:hover {
background: rgba(0, 0, 0, .025);
}
.loka-tournament-filters a {
background: rgba(0, 0, 0, .025);
border-color: rgba(0, 0, 0, .12);
}
.loka-tournament-list-backdrop {
opacity: .42;
}
.loka-tournament-list-backdrop img {
filter: brightness(1) saturate(.82);
}
}