moth/theme/scoreboard.css

121 lines
2.5 KiB
CSS
Raw Permalink Normal View History

/* GHC displays: 1024x1820 */
@media screen and (max-aspect-ratio: 4/5) and (min-height: 1600px) {
html {
font-size: 20pt;
}
}
2023-09-15 16:09:08 -06:00
.location {
color: #acf;
background-color: #0008;
position: fixed;
right: 30vw;
bottom: 0;
padding: 1em;
margin: 0;
font-size: 1.2rem;
font-weight:bold;
text-decoration: underline;
}
.no-scores {
display: flex;
justify-content: space-around;
align-items: center;
flex-wrap: wrap;
min-height: calc(100vh - 2em);
}
.no-scores.hidden {
display: none;
}
.no-scores img {
object-fit: cover;
max-height: 60vh;
}
2023-11-16 23:44:32 -07:00
/* Only the first child of a rotate class is visible */
.rotate > div:nth-child(n + 2) {
display: none;
}
2023-09-15 16:09:08 -06:00
/** Scoreboard */
2023-11-16 23:44:32 -07:00
.rankings.classic {
width: 100%;
2023-09-15 16:09:08 -06:00
position: relative;
background-color: #000c;
}
2023-11-16 23:44:32 -07:00
.rankings.classic div {
2023-09-27 17:56:40 -06:00
height: 1.2rem;
display: flex;
align-items: center;
2023-09-15 16:09:08 -06:00
}
2023-11-16 23:44:32 -07:00
.rankings.classic div:nth-child(6n){
2023-09-27 17:56:40 -06:00
background-color: #ccc3;
2023-09-15 16:09:08 -06:00
}
2023-11-16 23:44:32 -07:00
.rankings.classic div:nth-child(6n+3) {
2023-09-27 17:56:40 -06:00
background-color: #0f03;
}
2023-11-16 23:44:32 -07:00
.rankings.classic span {
2023-09-27 17:56:40 -06:00
display: inline-block;
overflow: hidden;
}
2023-11-16 23:44:32 -07:00
.rankings.classic span.category {
2023-09-27 17:56:40 -06:00
font-size: 80%;
}
2023-11-16 23:44:32 -07:00
.rankings.classic span.teamname {
2023-09-15 16:09:08 -06:00
height: auto;
font-size: inherit;
color: white;
2023-09-15 16:09:08 -06:00
background-color: #000e;
border-radius: 3px;
position: absolute;
right: 0.2em;
}
2023-11-16 23:44:32 -07:00
.rankings.classic span.teamname:hover,
.rankings.classic span.category:hover {
2023-09-27 17:56:40 -06:00
width: inherit;
max-width: 100%;
}
.topscore::before {
content: "✩";
font-size: 75%;
vertical-align: top;
}
2023-09-27 17:56:40 -06:00
2023-11-16 23:44:32 -07:00
.rankings.category {
display: flex;
flex-wrap: wrap;
justify-content: space-evenly;
}
.rankings.category div {
border: solid black 2px;
min-width: 15em;
}
.rankings.category table {
width: 100%;
}
.rankings.category td.number {
text-align: right;
}
2023-09-27 17:56:40 -06:00
@media only screen and (max-width: 450px) {
2023-11-16 23:44:32 -07:00
.rankings.classic span.teamname {
2023-09-27 17:56:40 -06:00
max-width: 6em;
text-overflow: ellipsis;
}
span.teampoints {
max-width: 80%;
}
}
2023-11-16 22:37:05 -07:00
.rankings div * {white-space: nowrap;}
.cat0, .cat8, .cat16 {background-color: #a6cee3; color: black;}
.cat1, .cat9, .cat17 {background-color: #1f78b4; color: white;}
.cat2, .cat10, .cat18 {background-color: #b2df8a; color: black;}
.cat3, .cat11, .cat19 {background-color: #33a02c; color: white;}
.cat4, .cat12, .cat20 {background-color: #fb9a99; color: black;}
.cat5, .cat13, .cat21 {background-color: #e31a1c; color: white;}
.cat6, .cat14, .cat22 {background-color: #fdbf6f; color: black;}
.cat7, .cat15, .cat23 {background-color: #ff7f00; color: black;}