mirror of
https://codeberg.org/demostf/frontend.git
synced 2026-06-03 18:24:12 +02:00
252 lines
No EOL
3.9 KiB
CSS
252 lines
No EOL
3.9 KiB
CSS
table.chat, table.players {
|
|
table-layout: fixed;
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
table.players {
|
|
& td, & th {
|
|
padding: 5px 9px;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
}
|
|
|
|
& tr:nth-child(odd) {
|
|
background-color: var(--primary-color-accent);
|
|
}
|
|
|
|
& tr:nth-child(even) {
|
|
background-color: var(--primary-color);
|
|
}
|
|
|
|
& th {
|
|
padding: 7px 9px;
|
|
}
|
|
}
|
|
|
|
p.demo-info .time {
|
|
float: right;
|
|
font-weight: bold;
|
|
}
|
|
|
|
p.demo-download {
|
|
margin-top: 40px;
|
|
}
|
|
|
|
p.demo-download button, p.demo-download a {
|
|
margin-right: 40px;
|
|
}
|
|
|
|
@media (max-width: 450px) {
|
|
p.demo-download button, p.demo-download a {
|
|
margin-right: 0;
|
|
}
|
|
|
|
p.demo-download button {
|
|
float: right;
|
|
}
|
|
}
|
|
|
|
div.teams {
|
|
margin: 0 -30px;
|
|
padding: 10px 0 0;
|
|
height: 72px;
|
|
color: white;
|
|
|
|
& div {
|
|
display: inline-block;
|
|
padding: 10px 30px;
|
|
width: 50%;
|
|
}
|
|
|
|
& span {
|
|
font-family: Arial, sans-serif;
|
|
font-weight: bold;
|
|
font-size: 45px;
|
|
}
|
|
|
|
& > div {
|
|
height: 72px;
|
|
}
|
|
|
|
& .red {
|
|
padding-right: 15px;
|
|
float: left;
|
|
background: #a75d50;
|
|
}
|
|
|
|
& .red span.name,
|
|
& .blue span.name {
|
|
display: inline-block;
|
|
overflow: hidden;
|
|
max-width: calc(100% - 30px);
|
|
}
|
|
|
|
& .red .score {
|
|
float: right;
|
|
}
|
|
|
|
& .blue {
|
|
padding-left: 15px;
|
|
float: right;
|
|
background: #5b818f;
|
|
}
|
|
|
|
& .blue .name {
|
|
float: right;
|
|
color: '#fff';
|
|
}
|
|
}
|
|
|
|
.playerTable {
|
|
width: 100%;
|
|
}
|
|
|
|
.playerTable th {
|
|
text-align: left;
|
|
}
|
|
|
|
table.players {
|
|
width: 100%;
|
|
|
|
& .name {
|
|
vertical-align: top;
|
|
}
|
|
|
|
& .name a {
|
|
text-decoration: none;
|
|
color: var(--text-primary);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
& .name a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
& .team {
|
|
width: 20px;
|
|
}
|
|
|
|
& .team.red {
|
|
background: #a75d50;
|
|
}
|
|
|
|
& .team.blue {
|
|
background: #5b818f;
|
|
}
|
|
|
|
& .stat {
|
|
text-align: right;
|
|
}
|
|
|
|
& .stat {
|
|
width: 40px;
|
|
vertical-align: top;
|
|
}
|
|
|
|
& .class {
|
|
width: 40px;
|
|
}
|
|
|
|
& .blue.name {
|
|
text-align: right;
|
|
padding-right: 0;
|
|
}
|
|
|
|
& .red.name {
|
|
text-align: left;
|
|
padding-left: 0;
|
|
}
|
|
|
|
& th {
|
|
border-bottom: solid 1px var(--secondary-color-accent);
|
|
}
|
|
|
|
& th.team {
|
|
border-bottom: none;
|
|
}
|
|
|
|
& tr:last-child td.red {
|
|
border-bottom: 1px solid #a75d50;
|
|
}
|
|
|
|
& tr:last-child td.blue {
|
|
border-bottom: 1px solid #5b818f;
|
|
}
|
|
|
|
& tr:last-child td.class {
|
|
border-bottom: 1px solid #666;
|
|
}
|
|
|
|
& td.pov {
|
|
background-color: var(--secondary-color-accent);
|
|
}
|
|
|
|
& .demo-info {
|
|
margin: 20px 0;
|
|
font-size: 20px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
& .demo-info .time {
|
|
float: right;
|
|
}
|
|
|
|
@media (max-width: 650px) {
|
|
.stat {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
|
|
& .highlight-red .red:not(.team) {
|
|
background-color: #a75d5066;
|
|
}
|
|
|
|
& .highlight-blue .blue:not(.team) {
|
|
background-color: #5b818f66;
|
|
}
|
|
}
|
|
|
|
table.chat {
|
|
& td {
|
|
padding: 0 6px;
|
|
}
|
|
|
|
& td.user {
|
|
white-space: nowrap;
|
|
vertical-align: top;
|
|
width: 20%;
|
|
color: var(--text-secondary);
|
|
text-align: right;
|
|
border-right: 1px solid #ccc;
|
|
}
|
|
|
|
& td.message {
|
|
word-break: break-all;
|
|
}
|
|
|
|
& td.duration {
|
|
width: 80px;
|
|
text-align: right;
|
|
color: var(--text-secondary);
|
|
}
|
|
}
|
|
|
|
details.chat {
|
|
margin-top: -55px;
|
|
|
|
& > summary {
|
|
float: right;
|
|
}
|
|
|
|
& > div {
|
|
padding-top: 45px;
|
|
}
|
|
}
|
|
|
|
h3.warning {
|
|
background-color: var(--button-critical);
|
|
margin: 0 -30px;
|
|
padding: 30px;
|
|
} |