Jump to content
Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Tournament row/styles.css: Difference between revisions

Template page
m Improve tournament list row layout and responsive backdrop
m More mobile padding above/below the champion line, and more space between the Champion label, name, and established/retained status
 
(23 intermediate revisions by the same user not shown)
Line 1: Line 1:
.loka-tournament-list {
.loka-tournament-list {
width: 100%;
box-sizing: border-box;
border: 1px solid rgba(255, 255, 255, .1);
border: 1px solid rgba(255, 255, 255, .1);
border-radius: 5px;
border-radius: 5px;
Line 6: Line 8:
}
}


.loka-tournament-list-header,
.loka-tournament-list-header {
.loka-tournament-list-row {
display: grid;
display: grid;
grid-template-columns: minmax(82px, .5fr) minmax(215px, 1.55fr) repeat(3, minmax(130px, 1fr));
grid-template-columns: 190px minmax(0, 1fr);
column-gap: .75em;
align-items: center;
align-items: center;
}
.loka-tournament-list-header {
padding: .48em .7em;
color: #f0cf8e;
color: #f0cf8e;
font-size: .68em;
font-size: .68em;
Line 24: Line 20:
}
}


.loka-tournament-list-row {
.loka-tournament-list-header-name {
padding: .62em .7em;
}
 
.loka-tournament-list-header-events {
display: grid;
grid-template-columns: minmax(68px, 84px) repeat(3, minmax(0, 1fr));
align-items: center;
gap: .5em;
padding: .62em .7em .62em .4em;
box-sizing: border-box;
}
 
.loka-tournament-list-groups {
display: flex;
flex-direction: column;
}
 
.loka-tournament-list-group {
position: relative;
position: relative;
isolation: isolate;
isolation: isolate;
min-height: 54px;
display: grid;
padding: .48em .7em;
grid-template-columns: 190px minmax(0, 1fr);
font-size: .84em;
min-height: 64px;
border-top: 1px solid rgba(255, 255, 255, .075);
border-top: 1px solid rgba(255, 255, 255, .075);
overflow: hidden;
overflow: hidden;
}
}


.loka-tournament-list-row:hover {
.loka-tournament-list-group:hover { background: rgba(255, 255, 255, .035); }
background: rgba(255, 255, 255, .035);
.loka-tournament-list-group--image { background:#141414; color:#f3f0e9; }
}
.loka-tournament-list-group--image a { color:#fff; }
 
.loka-tournament-list-group--image:hover .loka-tournament-list-backdrop::after { background: rgba(8, 10, 12, .4); }


.loka-tournament-list-name,
.loka-tournament-list-name {
.loka-tournament-list-format,
.loka-tournament-list-placement {
position: relative;
position: relative;
z-index: 1;
z-index: 1;
align-self: stretch;
display: flex;
align-items: flex-start;
justify-content: center;
flex-direction: column;
min-width: 0;
min-width: 0;
}
padding: .5em .7em;
 
.loka-tournament-list-primary {
display: inline;
margin-left: .3em;
}
}


.loka-tournament-list-primary {
.loka-tournament-list-primary {
font-family: UNIVERSAL-SERIF, serif;
font-family: UNIVERSAL-SERIF, serif;
font-size: 1.08em;
font-size: .94em;
font-variant: small-caps;
font-variant: small-caps;
font-weight: 600;
font-weight: 600;
}
}


.loka-tournament-list-date {
.loka-tournament-list-titleline {
display: block;
display: flex;
margin-top: .12em;
align-items: center;
font-size: .76em;
gap: .3em;
opacity: .68;
min-width: 0;
}
}


.loka-tournament-list-backdrop ~ .loka-tournament-list-name .loka-tournament-list-primary a {
.loka-tournament-list-primary-format { display: none; }
text-shadow: 0 1px 1px rgba(0, 0, 0, .42);
 
}
.loka-tournament-list-titleline .loka-tournament-list-inline-icon { margin-right: 0; }
.loka-tournament-list-date { display:block; margin-top:.1em; font-size:.68em; opacity:.72; }
.loka-tournament-list-inline-icon { display:inline-block; margin-right:.25em; }
.loka-tournament-list-backdrop ~ .loka-tournament-list-name a { text-shadow:0 1px 1px rgba(0,0,0,.42); }


.loka-tournament-list-backdrop {
.loka-tournament-list-backdrop {
position: absolute;
position: absolute;
inset: 0 auto 0 0;
inset: 0;
z-index: 0;
z-index: 0;
width: 39%;
width: 100%;
overflow: hidden;
overflow: hidden;
opacity: .78;
opacity: 1;
pointer-events: none;
pointer-events: none;
-webkit-mask-image: linear-gradient(to right, #000 0%, #000 48%, transparent 100%);
mask-image: linear-gradient(to right, #000 0%, #000 48%, transparent 100%);
}
}


.loka-tournament-list-backdrop img {
.loka-tournament-list-backdrop::after { content:""; position:absolute; inset:0; background:rgba(8,10,12,.64); }
display: block;
width: 100%;
height: 100%;
object-fit: cover;
object-position: center center;
filter: brightness(.98) saturate(.96);
}
 
.loka-tournament-list-row img {
image-rendering: pixelated;
}


.loka-tournament-list-backdrop img {
.loka-tournament-list-backdrop img {
image-rendering: auto;
display:block;
}
width:100%;
 
height:100%;
.loka-tournament-list-placement {
object-fit:cover;
display: flex;
object-position:center center;
align-items: center;
filter:brightness(.78) saturate(.92);
gap: .35em;
image-rendering:auto;
}
 
.loka-tournament-list-placement-text,
.loka-tournament-list-placement-name,
.loka-tournament-list-placement-members {
display: block;
}
 
.loka-tournament-list-placement-text {
min-width: 0;
overflow-wrap: anywhere;
}
 
.loka-tournament-list-placement-members {
margin-top: .08em;
font-size: .78em;
opacity: .66;
}
}


.loka-tournament-list-members {
.loka-tournament-list-events { position:relative; z-index:1; min-width:0; }
display: inline;
margin: 0;
padding: 0;
list-style: none;
}


.loka-tournament-list-members li {
.loka-tournament-list-event {
display: inline;
display:grid;
grid-template-columns:minmax(68px,84px) repeat(3,minmax(0,1fr));
gap:.5em;
align-items:center;
min-height:64px;
padding:.46em .7em .46em .4em;
box-sizing:border-box;
font-size:.82em;
}
}


.loka-tournament-list-members li:not(:last-child)::after {
.loka-tournament-list-event + .loka-tournament-list-event {
content: "·";
border-top:1px solid transparent;
margin: 0 .42em;
border-image:linear-gradient(to right,transparent,rgba(255,255,255,.065) 84px) 1;
}
}
.loka-tournament-list-format,.loka-tournament-list-placement { min-width:0; }
.loka-tournament-list-placement { display:flex; align-items:center; gap:.35em; }
.loka-tournament-list-medal { display:flex; align-items:center; justify-content:center; flex:0 0 16px; width:16px; height:16px; line-height:0; }
.loka-tournament-list-medal img { display:block; }
.loka-tournament-list-placement-text { min-width:0; overflow-wrap:anywhere; }
.loka-tournament-list-placement-name,.loka-tournament-list-placement-members { display:block; }
.loka-tournament-list-placement-members { margin-top:.06em; font-size:.72em; opacity:.68; }
.loka-tournament-list-members { display:inline; margin:0; padding:0; list-style:none; }
.loka-tournament-list-members li { display:inline; }
.loka-tournament-list-members li:not(:last-child)::after { content:"·"; margin:0 .4em; }
.loka-tournament-list-third-stack { display:grid; gap:.22em; }
.loka-tournament-list-third-stack--joint { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.38em; align-items:start; }
.loka-tournament-list-third-stack--joint .loka-tournament-list-placement { align-items:flex-start; gap:.24em; }
.loka-tournament-list-third-stack--joint .loka-tournament-list-placement-members { font-size:.66em; line-height:1.15; }


.loka-tournament-list-winner {
.loka-tournament-list-winner { flex-wrap:wrap; row-gap:0; }
flex-wrap: wrap;
}


.loka-tournament-list-championship {
.loka-tournament-list-championship {
display: block;
display:block;
flex: 0 0 100%;
flex:0 0 100%;
margin-top: .18em;
margin-top:.12em;
font-size: .72em;
font-size:.72em;
line-height: 1.25;
line-height:1.25;
opacity: .68;
opacity:.7;
}
}


.loka-tournament-list-champion-label {
@media (max-width:760px) {
color: #f0cf8e;
font-size: .88em;
.loka-tournament-list-championship {
font-weight: 700;
margin-top:.65em;
letter-spacing: .03em;
margin-bottom:.65em;
text-transform: uppercase;
}
}
 
.loka-tournament-list-mobile-label {
display: none;
}
 
.loka-tournament-list-rows {
display: flex;
flex-direction: column;
}
}


.loka-tournament-filter-target {
.loka-tournament-list-champion-label { color:#f0cf8e; font-size:.88em; font-weight:700; letter-spacing:.03em; text-transform:uppercase; }
display: none;
.loka-tournament-list-champion-name { margin-left:.4em; }
}
.loka-tournament-list-champion-state { margin-left:.4em; }
.loka-tournament-list-mobile-label { display:none; }
.loka-tournament-list-group img,.loka-tournament-list-event img { image-rendering:pixelated; }
.loka-tournament-filter-target { display:none; }


.loka-tournament-controls {
.loka-tournament-controls {
display: flex;
--loka-control-bg:rgba(255,255,255,.04);
flex-wrap: wrap;
--loka-control-border:rgba(255,255,255,.12);
gap: .55em 1em;
--loka-control-active-bg:rgba(240,207,142,.16);
margin: 0 0 .65em;
--loka-control-active-border:rgba(240,207,142,.58);
--loka-control-active-color:#f0cf8e;
display:flex;
flex-wrap:wrap;
justify-content:space-between;
gap:.55em 1em;
margin:0 0 1.4em;
}
}


.loka-tournament-control {
.loka-tournament-control,.loka-tournament-control-links { display:flex; align-items:center; flex-wrap:wrap; gap:.35em; }
display: flex;
.loka-tournament-control-label { font-size:.68em; font-weight:700; letter-spacing:.04em; opacity:.62; text-transform:uppercase; }
align-items: center;
.loka-tournament-control-links a { display:inline-block; padding:.3em .72em; border:1px solid var(--loka-control-border); border-radius:4px; background:var(--loka-control-bg); color:inherit; font-size:.78em; text-decoration:none; }
flex-wrap: wrap;
.loka-tournament-control-links a:hover,.loka-tournament-control-links a:focus { background:rgba(240,207,142,.14); border-color:rgba(240,207,142,.42); }
gap: .35em;
.loka-tournament-control-default a { background:var(--loka-control-active-bg); border-color:var(--loka-control-active-border); color:var(--loka-control-active-color); font-weight:600; }
}


.loka-tournament-control-label {
#tournaments-all-newest:target ~ .loka-tournament-controls a[href$="#tournaments-all-newest"],
font-size: .68em;
#tournaments-all-oldest:target ~ .loka-tournament-controls a[href$="#tournaments-all-oldest"],
font-weight: 700;
#tournaments-1v1-newest:target ~ .loka-tournament-controls a[href$="#tournaments-1v1-newest"],
letter-spacing: .04em;
#tournaments-1v1-oldest:target ~ .loka-tournament-controls a[href$="#tournaments-1v1-oldest"],
opacity: .62;
#tournaments-2v2-newest:target ~ .loka-tournament-controls a[href$="#tournaments-2v2-newest"],
text-transform: uppercase;
#tournaments-2v2-oldest:target ~ .loka-tournament-controls a[href$="#tournaments-2v2-oldest"],
}
#tournaments-3v3-newest:target ~ .loka-tournament-controls a[href$="#tournaments-3v3-newest"],
 
#tournaments-3v3-oldest:target ~ .loka-tournament-controls a[href$="#tournaments-3v3-oldest"] {
.loka-tournament-control-links {
background:var(--loka-control-active-bg)!important;
display: flex;
border-color:var(--loka-control-active-border)!important;
flex-wrap: wrap;
color:var(--loka-control-active-color)!important;
gap: .35em;
font-weight:600!important;
}
}


.loka-tournament-control-links a {
#tournaments-all-newest:target ~ .loka-tournament-controls .loka-tournament-control-default a,
display: inline-block;
#tournaments-all-oldest:target ~ .loka-tournament-controls .loka-tournament-control-default a,
padding: .3em .72em;
#tournaments-1v1-newest:target ~ .loka-tournament-controls .loka-tournament-control-default a,
border: 1px solid rgba(255, 255, 255, .12);
#tournaments-1v1-oldest:target ~ .loka-tournament-controls .loka-tournament-control-default a,
border-radius: 4px;
#tournaments-2v2-newest:target ~ .loka-tournament-controls .loka-tournament-control-default a,
background: rgba(255, 255, 255, .04);
#tournaments-2v2-oldest:target ~ .loka-tournament-controls .loka-tournament-control-default a,
color: inherit;
#tournaments-3v3-newest:target ~ .loka-tournament-controls .loka-tournament-control-default a,
font-size: .78em;
#tournaments-3v3-oldest:target ~ .loka-tournament-controls .loka-tournament-control-default a {
text-decoration: none;
background:var(--loka-control-bg);
}
border-color:var(--loka-control-border);
 
color:inherit;
.loka-tournament-control-links a:hover,
font-weight:normal;
.loka-tournament-control-links a:focus {
background: rgba(240, 207, 142, .14);
border-color: rgba(240, 207, 142, .42);
}
 
/* Each hidden target stores both selections. Switching the sort therefore
  preserves the format filter (and vice versa), while display:none prevents
  the browser from visibly jumping to the target. */
.loka-tournament-format-links--oldest,
.loka-tournament-sort-links--1v1,
.loka-tournament-sort-links--2v2,
.loka-tournament-sort-links--3v3 {
display: none;
}
}


.loka-tournament-format-links--oldest,.loka-tournament-sort-links--1v1,.loka-tournament-sort-links--2v2,.loka-tournament-sort-links--3v3 { display:none; }
#tournaments-all-oldest:target ~ .loka-tournament-controls .loka-tournament-format-links--newest,
#tournaments-all-oldest:target ~ .loka-tournament-controls .loka-tournament-format-links--newest,
#tournaments-1v1-oldest:target ~ .loka-tournament-controls .loka-tournament-format-links--newest,
#tournaments-1v1-oldest:target ~ .loka-tournament-controls .loka-tournament-format-links--newest,
#tournaments-2v2-oldest:target ~ .loka-tournament-controls .loka-tournament-format-links--newest,
#tournaments-2v2-oldest:target ~ .loka-tournament-controls .loka-tournament-format-links--newest,
#tournaments-3v3-oldest:target ~ .loka-tournament-controls .loka-tournament-format-links--newest {
#tournaments-3v3-oldest:target ~ .loka-tournament-controls .loka-tournament-format-links--newest { display:none; }
display: none;
}
 
#tournaments-all-oldest:target ~ .loka-tournament-controls .loka-tournament-format-links--oldest,
#tournaments-all-oldest:target ~ .loka-tournament-controls .loka-tournament-format-links--oldest,
#tournaments-1v1-oldest:target ~ .loka-tournament-controls .loka-tournament-format-links--oldest,
#tournaments-1v1-oldest:target ~ .loka-tournament-controls .loka-tournament-format-links--oldest,
#tournaments-2v2-oldest:target ~ .loka-tournament-controls .loka-tournament-format-links--oldest,
#tournaments-2v2-oldest:target ~ .loka-tournament-controls .loka-tournament-format-links--oldest,
#tournaments-3v3-oldest:target ~ .loka-tournament-controls .loka-tournament-format-links--oldest {
#tournaments-3v3-oldest:target ~ .loka-tournament-controls .loka-tournament-format-links--oldest { display:flex; }
display: flex;
}
 
#tournaments-1v1-newest:target ~ .loka-tournament-controls .loka-tournament-sort-links--all,
#tournaments-1v1-newest:target ~ .loka-tournament-controls .loka-tournament-sort-links--all,
#tournaments-1v1-oldest:target ~ .loka-tournament-controls .loka-tournament-sort-links--all,
#tournaments-1v1-oldest:target ~ .loka-tournament-controls .loka-tournament-sort-links--all,
Line 245: Line 229:
#tournaments-2v2-oldest:target ~ .loka-tournament-controls .loka-tournament-sort-links--all,
#tournaments-2v2-oldest:target ~ .loka-tournament-controls .loka-tournament-sort-links--all,
#tournaments-3v3-newest:target ~ .loka-tournament-controls .loka-tournament-sort-links--all,
#tournaments-3v3-newest:target ~ .loka-tournament-controls .loka-tournament-sort-links--all,
#tournaments-3v3-oldest:target ~ .loka-tournament-controls .loka-tournament-sort-links--all {
#tournaments-3v3-oldest:target ~ .loka-tournament-controls .loka-tournament-sort-links--all { display:none; }
display: none;
}
 
#tournaments-1v1-newest:target ~ .loka-tournament-controls .loka-tournament-sort-links--1v1,
#tournaments-1v1-newest:target ~ .loka-tournament-controls .loka-tournament-sort-links--1v1,
#tournaments-1v1-oldest:target ~ .loka-tournament-controls .loka-tournament-sort-links--1v1,
#tournaments-1v1-oldest:target ~ .loka-tournament-controls .loka-tournament-sort-links--1v1,
Line 254: Line 235:
#tournaments-2v2-oldest:target ~ .loka-tournament-controls .loka-tournament-sort-links--2v2,
#tournaments-2v2-oldest:target ~ .loka-tournament-controls .loka-tournament-sort-links--2v2,
#tournaments-3v3-newest:target ~ .loka-tournament-controls .loka-tournament-sort-links--3v3,
#tournaments-3v3-newest:target ~ .loka-tournament-controls .loka-tournament-sort-links--3v3,
#tournaments-3v3-oldest:target ~ .loka-tournament-controls .loka-tournament-sort-links--3v3 {
#tournaments-3v3-oldest:target ~ .loka-tournament-controls .loka-tournament-sort-links--3v3 { display:flex; }
display: flex;
}


#tournaments-all-oldest:target ~ .loka-tournament-list .loka-tournament-list-rows,
#tournaments-all-oldest:target ~ .loka-tournament-list .loka-tournament-list-groups,
#tournaments-1v1-oldest:target ~ .loka-tournament-list .loka-tournament-list-rows,
#tournaments-1v1-oldest:target ~ .loka-tournament-list .loka-tournament-list-groups,
#tournaments-2v2-oldest:target ~ .loka-tournament-list .loka-tournament-list-rows,
#tournaments-2v2-oldest:target ~ .loka-tournament-list .loka-tournament-list-groups,
#tournaments-3v3-oldest:target ~ .loka-tournament-list .loka-tournament-list-rows {
#tournaments-3v3-oldest:target ~ .loka-tournament-list .loka-tournament-list-groups { flex-direction:column-reverse; }
flex-direction: column-reverse;
}


#tournaments-1v1-newest:target ~ .loka-tournament-list .loka-tournament-list-row:not(.loka-tournament-list-row--1v1),
#tournaments-1v1-newest:target ~ .loka-tournament-list .loka-tournament-list-group:not(.loka-tournament-list-group--has-1v1),
#tournaments-1v1-oldest:target ~ .loka-tournament-list .loka-tournament-list-row:not(.loka-tournament-list-row--1v1),
#tournaments-1v1-oldest:target ~ .loka-tournament-list .loka-tournament-list-group:not(.loka-tournament-list-group--has-1v1),
#tournaments-2v2-newest:target ~ .loka-tournament-list .loka-tournament-list-row:not(.loka-tournament-list-row--2v2),
#tournaments-2v2-newest:target ~ .loka-tournament-list .loka-tournament-list-group:not(.loka-tournament-list-group--has-2v2),
#tournaments-2v2-oldest:target ~ .loka-tournament-list .loka-tournament-list-row:not(.loka-tournament-list-row--2v2),
#tournaments-2v2-oldest:target ~ .loka-tournament-list .loka-tournament-list-group:not(.loka-tournament-list-group--has-2v2),
#tournaments-3v3-newest:target ~ .loka-tournament-list .loka-tournament-list-row:not(.loka-tournament-list-row--3v3),
#tournaments-3v3-newest:target ~ .loka-tournament-list .loka-tournament-list-group:not(.loka-tournament-list-group--has-3v3),
#tournaments-3v3-oldest:target ~ .loka-tournament-list .loka-tournament-list-row:not(.loka-tournament-list-row--3v3) {
#tournaments-3v3-oldest:target ~ .loka-tournament-list .loka-tournament-list-group:not(.loka-tournament-list-group--has-3v3) { display:none; }
display: none;
}


@media (max-width: 760px) {
#tournaments-1v1-newest:target ~ .loka-tournament-list .loka-tournament-list-event:not(.loka-tournament-list-event--1v1),
.loka-tournament-list-header {
#tournaments-1v1-oldest:target ~ .loka-tournament-list .loka-tournament-list-event:not(.loka-tournament-list-event--1v1),
display: none;
#tournaments-2v2-newest:target ~ .loka-tournament-list .loka-tournament-list-event:not(.loka-tournament-list-event--2v2),
}
#tournaments-2v2-oldest:target ~ .loka-tournament-list .loka-tournament-list-event:not(.loka-tournament-list-event--2v2),
#tournaments-3v3-newest:target ~ .loka-tournament-list .loka-tournament-list-event:not(.loka-tournament-list-event--3v3),
#tournaments-3v3-oldest:target ~ .loka-tournament-list .loka-tournament-list-event:not(.loka-tournament-list-event--3v3) { display:none; }


.loka-tournament-list-row {
@media (max-width:760px) {
grid-template-columns: minmax(0, 1fr) auto;
.loka-tournament-list-header { display:none; }
grid-template-areas:
.loka-tournament-list-group { grid-template-columns:1fr; }
"name format"
.loka-tournament-list-name { min-height:44px; padding:.55em .7em .35em; }
"winner winner"
.loka-tournament-list-events { grid-column:1; }
"second second"
.loka-tournament-list-event {
"third third";
grid-template-columns:minmax(0,1fr);
row-gap: .3em;
grid-template-areas:"winner" "second" "third";
padding: .62em .7em;
gap:.28em;
height:auto;
min-height:0;
padding:.6em .7em .6em;
}
}
 
.loka-tournament-list-name { grid-area: name; }
.loka-tournament-list-events > .loka-tournament-list-event:first-child .loka-tournament-list-format {
.loka-tournament-list-format { grid-area: format; text-align: right; }
display:none;
.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: 68%;
opacity: .58;
}
}
 
@media (max-width: 420px) {
.loka-tournament-controls {
display: grid;
grid-template-columns: 1fr;
}
 
.loka-tournament-control {
align-items: flex-start;
}
}
 
.loka-tournament-list-events > .loka-tournament-list-event:not(:first-child) {
.loka-tournament-list-row {
position:relative;
grid-template-columns: minmax(0, 1fr);
padding-top:1.9em;
grid-template-areas:
"name"
"format"
"winner"
"second"
"third";
}
}
.loka-tournament-list-format {
.loka-tournament-list-format {
text-align: left;
position:absolute;
top:.4em;
right:.7em;
font-size:.78em;
}
}
 
.loka-tournament-list-placement {
.loka-tournament-list-primary-format {
align-items: flex-start;
display:block;
position:absolute;
top:.85em;
right:1.1em;
z-index:1;
font-size:.78em;
}
}
.loka-tournament-list-winner { grid-area:winner; }
.loka-tournament-list-second { grid-area:second; }
.loka-tournament-list-third-stack { grid-area:third; }
.loka-tournament-list-third-stack--joint { grid-template-columns:1fr; gap:.28em; }
.loka-tournament-list-mobile-label { display:inline-block; flex:0 0 6.4em; white-space:nowrap; font-size:.72em; font-weight:700; letter-spacing:.03em; text-transform:uppercase; opacity:.58; }
.loka-tournament-list-event + .loka-tournament-list-event { border-image:none; border-top-color:rgba(255,255,255,.065); }
}
}


@media (prefers-color-scheme: light) {
@media (max-width:420px) {
.loka-tournament-list {
.loka-tournament-controls { display:grid; grid-template-columns:1fr; }
background: rgba(255, 255, 255, .58);
.loka-tournament-control { align-items:flex-start; }
border-color: rgba(0, 0, 0, .1);
.loka-tournament-list-placement { align-items:flex-start; }
}
}


.loka-tournament-list-header {
@media (prefers-color-scheme:light) {
color: #8b5d22;
.loka-tournament-controls { --loka-control-bg:rgba(0,0,0,.025); --loka-control-border:rgba(0,0,0,.12); --loka-control-active-bg:rgba(156,107,46,.12); --loka-control-active-border:rgba(156,107,46,.45); --loka-control-active-color:#754b18; }
background: rgba(0, 0, 0, .035);
.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-group { border-top-color:rgba(0,0,0,.08); }
.loka-tournament-list-row {
.loka-tournament-list-event + .loka-tournament-list-event { border-image:linear-gradient(to right,transparent,rgba(0,0,0,.07) 84px) 1; }
border-top-color: rgba(0, 0, 0, .08);
.loka-tournament-list-champion-label { color:#8b5d22; }
}
.loka-tournament-list-group--image { background:#171717; color:#f3f0e9; }
 
.loka-tournament-list-group--image a { color:#fff; }
.loka-tournament-list-row:hover {
}
background: rgba(0, 0, 0, .025);
}
 
.loka-tournament-control-links a {
background: rgba(0, 0, 0, .025);
border-color: rgba(0, 0, 0, .12);
}
 
.loka-tournament-list-champion-label {
color: #8b5d22;
}


.loka-tournament-list-backdrop {
@media (max-width:760px) and (prefers-color-scheme:light) {
opacity: .5;
.loka-tournament-list-event + .loka-tournament-list-event { border-image:none; border-top-color:rgba(0,0,0,.07); }
}
 
.loka-tournament-list-backdrop img {
filter: brightness(1) saturate(.92);
}
}
}

Latest revision as of 09:48, 23 August 2026

.loka-tournament-list {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 5px;
	overflow: hidden;
	background: rgba(18, 18, 18, .45);
}

.loka-tournament-list-header {
	display: grid;
	grid-template-columns: 190px minmax(0, 1fr);
	align-items: center;
	color: #f0cf8e;
	font-size: .68em;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	background: rgba(255, 255, 255, .045);
}

.loka-tournament-list-header-name {
	padding: .62em .7em;
}

.loka-tournament-list-header-events {
	display: grid;
	grid-template-columns: minmax(68px, 84px) repeat(3, minmax(0, 1fr));
	align-items: center;
	gap: .5em;
	padding: .62em .7em .62em .4em;
	box-sizing: border-box;
}

.loka-tournament-list-groups {
	display: flex;
	flex-direction: column;
}

.loka-tournament-list-group {
	position: relative;
	isolation: isolate;
	display: grid;
	grid-template-columns: 190px minmax(0, 1fr);
	
	min-height: 64px;
	border-top: 1px solid rgba(255, 255, 255, .075);
	overflow: hidden;
}

.loka-tournament-list-group:hover { background: rgba(255, 255, 255, .035); }
.loka-tournament-list-group--image { background:#141414; color:#f3f0e9; }
.loka-tournament-list-group--image a { color:#fff; }

.loka-tournament-list-group--image:hover .loka-tournament-list-backdrop::after { background: rgba(8, 10, 12, .4); }

.loka-tournament-list-name {
	position: relative;
	z-index: 1;
	align-self: stretch;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	flex-direction: column;
	min-width: 0;
	padding: .5em .7em;
}

.loka-tournament-list-primary {
	font-family: UNIVERSAL-SERIF, serif;
	font-size: .94em;
	font-variant: small-caps;
	font-weight: 600;
}

.loka-tournament-list-titleline {
	display: flex;
	align-items: center;
	gap: .3em;
	min-width: 0;
}

.loka-tournament-list-primary-format { display: none; }

.loka-tournament-list-titleline .loka-tournament-list-inline-icon { margin-right: 0; }
.loka-tournament-list-date { display:block; margin-top:.1em; font-size:.68em; opacity:.72; }
.loka-tournament-list-inline-icon { display:inline-block; margin-right:.25em; }
.loka-tournament-list-backdrop ~ .loka-tournament-list-name a { text-shadow:0 1px 1px rgba(0,0,0,.42); }

.loka-tournament-list-backdrop {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	overflow: hidden;
	opacity: 1;
	pointer-events: none;
}

.loka-tournament-list-backdrop::after { content:""; position:absolute; inset:0; background:rgba(8,10,12,.64); }

.loka-tournament-list-backdrop img {
	display:block;
	width:100%;
	height:100%;
	object-fit:cover;
	object-position:center center;
	filter:brightness(.78) saturate(.92);
	image-rendering:auto;
}

.loka-tournament-list-events { position:relative; z-index:1; min-width:0; }

.loka-tournament-list-event {
	display:grid;
	grid-template-columns:minmax(68px,84px) repeat(3,minmax(0,1fr));
	gap:.5em;
	align-items:center;
	min-height:64px;
	padding:.46em .7em .46em .4em;
	box-sizing:border-box;
	font-size:.82em;
}

.loka-tournament-list-event + .loka-tournament-list-event {
	border-top:1px solid transparent;
	border-image:linear-gradient(to right,transparent,rgba(255,255,255,.065) 84px) 1;
}
.loka-tournament-list-format,.loka-tournament-list-placement { min-width:0; }
.loka-tournament-list-placement { display:flex; align-items:center; gap:.35em; }
.loka-tournament-list-medal { display:flex; align-items:center; justify-content:center; flex:0 0 16px; width:16px; height:16px; line-height:0; }
.loka-tournament-list-medal img { display:block; }
.loka-tournament-list-placement-text { min-width:0; overflow-wrap:anywhere; }
.loka-tournament-list-placement-name,.loka-tournament-list-placement-members { display:block; }
.loka-tournament-list-placement-members { margin-top:.06em; font-size:.72em; opacity:.68; }
.loka-tournament-list-members { display:inline; margin:0; padding:0; list-style:none; }
.loka-tournament-list-members li { display:inline; }
.loka-tournament-list-members li:not(:last-child)::after { content:"·"; margin:0 .4em; }
.loka-tournament-list-third-stack { display:grid; gap:.22em; }
.loka-tournament-list-third-stack--joint { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.38em; align-items:start; }
.loka-tournament-list-third-stack--joint .loka-tournament-list-placement { align-items:flex-start; gap:.24em; }
.loka-tournament-list-third-stack--joint .loka-tournament-list-placement-members { font-size:.66em; line-height:1.15; }

.loka-tournament-list-winner { flex-wrap:wrap; row-gap:0; }

.loka-tournament-list-championship {
	display:block;
	flex:0 0 100%;
	margin-top:.12em;
	font-size:.72em;
	line-height:1.25;
	opacity:.7;
}

@media (max-width:760px) {
	
	.loka-tournament-list-championship {
		margin-top:.65em;
		margin-bottom:.65em;
	}
}

.loka-tournament-list-champion-label { color:#f0cf8e; font-size:.88em; font-weight:700; letter-spacing:.03em; text-transform:uppercase; }
.loka-tournament-list-champion-name { margin-left:.4em; }
.loka-tournament-list-champion-state { margin-left:.4em; }
.loka-tournament-list-mobile-label { display:none; }
.loka-tournament-list-group img,.loka-tournament-list-event img { image-rendering:pixelated; }
.loka-tournament-filter-target { display:none; }

.loka-tournament-controls {
	--loka-control-bg:rgba(255,255,255,.04);
	--loka-control-border:rgba(255,255,255,.12);
	--loka-control-active-bg:rgba(240,207,142,.16);
	--loka-control-active-border:rgba(240,207,142,.58);
	--loka-control-active-color:#f0cf8e;
	display:flex;
	flex-wrap:wrap;
	justify-content:space-between;
	gap:.55em 1em;
	margin:0 0 1.4em;
}

.loka-tournament-control,.loka-tournament-control-links { display:flex; align-items:center; flex-wrap:wrap; gap:.35em; }
.loka-tournament-control-label { font-size:.68em; font-weight:700; letter-spacing:.04em; opacity:.62; text-transform:uppercase; }
.loka-tournament-control-links a { display:inline-block; padding:.3em .72em; border:1px solid var(--loka-control-border); border-radius:4px; background:var(--loka-control-bg); color:inherit; font-size:.78em; text-decoration:none; }
.loka-tournament-control-links a:hover,.loka-tournament-control-links a:focus { background:rgba(240,207,142,.14); border-color:rgba(240,207,142,.42); }
.loka-tournament-control-default a { background:var(--loka-control-active-bg); border-color:var(--loka-control-active-border); color:var(--loka-control-active-color); font-weight:600; }

#tournaments-all-newest:target ~ .loka-tournament-controls a[href$="#tournaments-all-newest"],
#tournaments-all-oldest:target ~ .loka-tournament-controls a[href$="#tournaments-all-oldest"],
#tournaments-1v1-newest:target ~ .loka-tournament-controls a[href$="#tournaments-1v1-newest"],
#tournaments-1v1-oldest:target ~ .loka-tournament-controls a[href$="#tournaments-1v1-oldest"],
#tournaments-2v2-newest:target ~ .loka-tournament-controls a[href$="#tournaments-2v2-newest"],
#tournaments-2v2-oldest:target ~ .loka-tournament-controls a[href$="#tournaments-2v2-oldest"],
#tournaments-3v3-newest:target ~ .loka-tournament-controls a[href$="#tournaments-3v3-newest"],
#tournaments-3v3-oldest:target ~ .loka-tournament-controls a[href$="#tournaments-3v3-oldest"] {
	background:var(--loka-control-active-bg)!important;
	border-color:var(--loka-control-active-border)!important;
	color:var(--loka-control-active-color)!important;
	font-weight:600!important;
}

#tournaments-all-newest:target ~ .loka-tournament-controls .loka-tournament-control-default a,
#tournaments-all-oldest:target ~ .loka-tournament-controls .loka-tournament-control-default a,
#tournaments-1v1-newest:target ~ .loka-tournament-controls .loka-tournament-control-default a,
#tournaments-1v1-oldest:target ~ .loka-tournament-controls .loka-tournament-control-default a,
#tournaments-2v2-newest:target ~ .loka-tournament-controls .loka-tournament-control-default a,
#tournaments-2v2-oldest:target ~ .loka-tournament-controls .loka-tournament-control-default a,
#tournaments-3v3-newest:target ~ .loka-tournament-controls .loka-tournament-control-default a,
#tournaments-3v3-oldest:target ~ .loka-tournament-controls .loka-tournament-control-default a {
	background:var(--loka-control-bg);
	border-color:var(--loka-control-border);
	color:inherit;
	font-weight:normal;
}

.loka-tournament-format-links--oldest,.loka-tournament-sort-links--1v1,.loka-tournament-sort-links--2v2,.loka-tournament-sort-links--3v3 { display:none; }
#tournaments-all-oldest:target ~ .loka-tournament-controls .loka-tournament-format-links--newest,
#tournaments-1v1-oldest:target ~ .loka-tournament-controls .loka-tournament-format-links--newest,
#tournaments-2v2-oldest:target ~ .loka-tournament-controls .loka-tournament-format-links--newest,
#tournaments-3v3-oldest:target ~ .loka-tournament-controls .loka-tournament-format-links--newest { display:none; }
#tournaments-all-oldest:target ~ .loka-tournament-controls .loka-tournament-format-links--oldest,
#tournaments-1v1-oldest:target ~ .loka-tournament-controls .loka-tournament-format-links--oldest,
#tournaments-2v2-oldest:target ~ .loka-tournament-controls .loka-tournament-format-links--oldest,
#tournaments-3v3-oldest:target ~ .loka-tournament-controls .loka-tournament-format-links--oldest { display:flex; }
#tournaments-1v1-newest:target ~ .loka-tournament-controls .loka-tournament-sort-links--all,
#tournaments-1v1-oldest:target ~ .loka-tournament-controls .loka-tournament-sort-links--all,
#tournaments-2v2-newest:target ~ .loka-tournament-controls .loka-tournament-sort-links--all,
#tournaments-2v2-oldest:target ~ .loka-tournament-controls .loka-tournament-sort-links--all,
#tournaments-3v3-newest:target ~ .loka-tournament-controls .loka-tournament-sort-links--all,
#tournaments-3v3-oldest:target ~ .loka-tournament-controls .loka-tournament-sort-links--all { display:none; }
#tournaments-1v1-newest:target ~ .loka-tournament-controls .loka-tournament-sort-links--1v1,
#tournaments-1v1-oldest:target ~ .loka-tournament-controls .loka-tournament-sort-links--1v1,
#tournaments-2v2-newest:target ~ .loka-tournament-controls .loka-tournament-sort-links--2v2,
#tournaments-2v2-oldest:target ~ .loka-tournament-controls .loka-tournament-sort-links--2v2,
#tournaments-3v3-newest:target ~ .loka-tournament-controls .loka-tournament-sort-links--3v3,
#tournaments-3v3-oldest:target ~ .loka-tournament-controls .loka-tournament-sort-links--3v3 { display:flex; }

#tournaments-all-oldest:target ~ .loka-tournament-list .loka-tournament-list-groups,
#tournaments-1v1-oldest:target ~ .loka-tournament-list .loka-tournament-list-groups,
#tournaments-2v2-oldest:target ~ .loka-tournament-list .loka-tournament-list-groups,
#tournaments-3v3-oldest:target ~ .loka-tournament-list .loka-tournament-list-groups { flex-direction:column-reverse; }

#tournaments-1v1-newest:target ~ .loka-tournament-list .loka-tournament-list-group:not(.loka-tournament-list-group--has-1v1),
#tournaments-1v1-oldest:target ~ .loka-tournament-list .loka-tournament-list-group:not(.loka-tournament-list-group--has-1v1),
#tournaments-2v2-newest:target ~ .loka-tournament-list .loka-tournament-list-group:not(.loka-tournament-list-group--has-2v2),
#tournaments-2v2-oldest:target ~ .loka-tournament-list .loka-tournament-list-group:not(.loka-tournament-list-group--has-2v2),
#tournaments-3v3-newest:target ~ .loka-tournament-list .loka-tournament-list-group:not(.loka-tournament-list-group--has-3v3),
#tournaments-3v3-oldest:target ~ .loka-tournament-list .loka-tournament-list-group:not(.loka-tournament-list-group--has-3v3) { display:none; }

#tournaments-1v1-newest:target ~ .loka-tournament-list .loka-tournament-list-event:not(.loka-tournament-list-event--1v1),
#tournaments-1v1-oldest:target ~ .loka-tournament-list .loka-tournament-list-event:not(.loka-tournament-list-event--1v1),
#tournaments-2v2-newest:target ~ .loka-tournament-list .loka-tournament-list-event:not(.loka-tournament-list-event--2v2),
#tournaments-2v2-oldest:target ~ .loka-tournament-list .loka-tournament-list-event:not(.loka-tournament-list-event--2v2),
#tournaments-3v3-newest:target ~ .loka-tournament-list .loka-tournament-list-event:not(.loka-tournament-list-event--3v3),
#tournaments-3v3-oldest:target ~ .loka-tournament-list .loka-tournament-list-event:not(.loka-tournament-list-event--3v3) { display:none; }

@media (max-width:760px) {
	.loka-tournament-list-header { display:none; }
	.loka-tournament-list-group { grid-template-columns:1fr; }
	.loka-tournament-list-name { min-height:44px; padding:.55em .7em .35em; }
	.loka-tournament-list-events { grid-column:1; }
	.loka-tournament-list-event {
		grid-template-columns:minmax(0,1fr);
		grid-template-areas:"winner" "second" "third";
		gap:.28em;
		height:auto;
		min-height:0;
		padding:.6em .7em .6em;
	}
	
	.loka-tournament-list-events > .loka-tournament-list-event:first-child .loka-tournament-list-format {
		display:none;
	}
	.loka-tournament-list-events > .loka-tournament-list-event:not(:first-child) {
		position:relative;
		padding-top:1.9em;
	}
	.loka-tournament-list-format {
		position:absolute;
		top:.4em;
		right:.7em;
		font-size:.78em;
	}
	
	.loka-tournament-list-primary-format {
		display:block;
		position:absolute;
		top:.85em;
		right:1.1em;
		z-index:1;
		font-size:.78em;
	}
	.loka-tournament-list-winner { grid-area:winner; }
	.loka-tournament-list-second { grid-area:second; }
	.loka-tournament-list-third-stack { grid-area:third; }
	.loka-tournament-list-third-stack--joint { grid-template-columns:1fr; gap:.28em; }
	
	.loka-tournament-list-mobile-label { display:inline-block; flex:0 0 6.4em; white-space:nowrap; font-size:.72em; font-weight:700; letter-spacing:.03em; text-transform:uppercase; opacity:.58; }
	
	.loka-tournament-list-event + .loka-tournament-list-event { border-image:none; border-top-color:rgba(255,255,255,.065); }
}

@media (max-width:420px) {
	.loka-tournament-controls { display:grid; grid-template-columns:1fr; }
	.loka-tournament-control { align-items:flex-start; }
	.loka-tournament-list-placement { align-items:flex-start; }
}

@media (prefers-color-scheme:light) {
	.loka-tournament-controls { --loka-control-bg:rgba(0,0,0,.025); --loka-control-border:rgba(0,0,0,.12); --loka-control-active-bg:rgba(156,107,46,.12); --loka-control-active-border:rgba(156,107,46,.45); --loka-control-active-color:#754b18; }
	.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-group { border-top-color:rgba(0,0,0,.08); }
	.loka-tournament-list-event + .loka-tournament-list-event { border-image:linear-gradient(to right,transparent,rgba(0,0,0,.07) 84px) 1; }
	.loka-tournament-list-champion-label { color:#8b5d22; }
	.loka-tournament-list-group--image { background:#171717; color:#f3f0e9; }
	.loka-tournament-list-group--image a { color:#fff; }
}

@media (max-width:760px) and (prefers-color-scheme:light) {
	.loka-tournament-list-event + .loka-tournament-list-event { border-image:none; border-top-color:rgba(0,0,0,.07); }
}