mirror of
https://github.com/solcloud/Counter-Strike.git
synced 2025-02-24 03:42:39 +01:00
353 lines
6.0 KiB
CSS
353 lines
6.0 KiB
CSS
#hud {
|
|
font-family: Arial;
|
|
pointer-events: none;
|
|
user-select: none;
|
|
--color-attackers: #ff9145;
|
|
--color-defenders: #43b4fd;
|
|
--color-me: #afde68;
|
|
--color-me-hsl: 84, 64%, 64%;
|
|
--color-opponent: #de6868;
|
|
--color-opponent-hsl: 0, 64%, 64%;
|
|
}
|
|
|
|
#hud .color-me {
|
|
color: var(--color-me);
|
|
}
|
|
|
|
#hud .color-opponent {
|
|
color: var(--color-opponent);
|
|
}
|
|
|
|
#hud #equipped-item {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
}
|
|
|
|
#hud #equipped-item img[data-slot] {
|
|
width: 30vw;
|
|
}
|
|
|
|
#hud #equipped-item img[data-shot] {
|
|
position: absolute;
|
|
bottom: -160px;
|
|
}
|
|
|
|
#hud #cross {
|
|
position: absolute;
|
|
color: #d31b1b;
|
|
font-size: 2rem;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
}
|
|
|
|
#hud section {
|
|
text-shadow: 0px 0px 2px #626262;
|
|
display: flex;
|
|
flex-direction: row;
|
|
height: 100%;
|
|
}
|
|
|
|
#hud .left, #hud .right {
|
|
width: 30%;
|
|
min-width: 250px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
#hud .right {
|
|
text-align: right;
|
|
padding-right: 4px;
|
|
}
|
|
|
|
#hud .middle {
|
|
width: 40%;
|
|
min-width: 300px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: flex-start;
|
|
text-align: center;
|
|
}
|
|
|
|
#hud #scoreboard,
|
|
#hud #buy-menu {
|
|
font-size: 16px;
|
|
padding: 1rem;
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
background: rgba(0, 0, 0, 0.86);
|
|
min-width: 700px;
|
|
max-width: 1200px;
|
|
max-height: 1200px;
|
|
color: white;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
#hud #buy-menu {
|
|
pointer-events: initial;
|
|
}
|
|
|
|
#hud #buy-menu p.disabled {
|
|
pointer-events: none;
|
|
text-decoration: line-through;
|
|
background-color: #7e6262;
|
|
}
|
|
|
|
#hud #buy-menu .title {
|
|
font-size: 22px;
|
|
text-align: center;
|
|
}
|
|
|
|
#hud #buy-menu h3 {
|
|
border-bottom: 2px solid #317000;
|
|
margin: 0;
|
|
padding: 12px 20px;
|
|
}
|
|
|
|
#hud #buy-menu a {
|
|
color: #43b4fd;
|
|
cursor: pointer;
|
|
}
|
|
|
|
#hud #buy-menu a:hover {
|
|
color: #c4646c;
|
|
}
|
|
|
|
#hud #scoreboard small {
|
|
color: #efefef;
|
|
}
|
|
|
|
#hud #scoreboard table {
|
|
width: 100%;
|
|
border: 0;
|
|
}
|
|
|
|
#hud #scoreboard .score-my,
|
|
#hud #scoreboard .score-opponent {
|
|
font-size: 50px;
|
|
padding-right: 8px;
|
|
text-align: center;
|
|
width: 70px;
|
|
padding-top: 22px;
|
|
}
|
|
|
|
#hud #scoreboard .score-my p,
|
|
#hud #scoreboard .score-opponent p {
|
|
font-size: 14px;
|
|
text-align: center;
|
|
margin-top: 0;
|
|
}
|
|
|
|
#hud #scoreboard table thead {
|
|
text-align: center;
|
|
}
|
|
|
|
#hud #scoreboard table.player-stats.team-my tbody tr {
|
|
background-color: hsla(var(--color-me-hsl), .4);
|
|
}
|
|
|
|
#hud #scoreboard table.player-stats.team-other tbody tr {
|
|
background-color: hsla(var(--color-opponent-hsl), .4);
|
|
}
|
|
|
|
#hud #scoreboard table.player-stats tr:hover {
|
|
filter: brightness(150%);
|
|
}
|
|
|
|
#hud #scoreboard table.player-stats tbody tr.player-dead {
|
|
background-color: rgba(232, 11, 11, 0.45);
|
|
}
|
|
|
|
#hud #scoreboard .rounds-history {
|
|
height: 40px;
|
|
clear: both;
|
|
padding: 4px;
|
|
margin: 12px 10px;
|
|
}
|
|
|
|
#hud #scoreboard .rounds-history .round-number {
|
|
width: 20px;
|
|
height: 20px;
|
|
float: left;
|
|
position: relative;
|
|
margin: 0 2px;
|
|
text-align: center;
|
|
}
|
|
|
|
#hud #scoreboard .rounds-history .round-number div {
|
|
font-size: 12px;
|
|
position: absolute;
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
|
|
#hud #scoreboard .rounds-history .round-number span {
|
|
border: 0px solid transparent;
|
|
display: block;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(222, 209, 209, 0.2);
|
|
}
|
|
|
|
#hud #scoreboard .rounds-history .round-number span.round-win-0 {
|
|
color: var(--color-defenders);
|
|
border-color: var(--color-defenders);
|
|
}
|
|
|
|
#hud #scoreboard .rounds-history .round-number span.round-win-1 {
|
|
color: var(--color-attackers);
|
|
border-color: var(--color-attackers);
|
|
}
|
|
|
|
#hud #scoreboard .rounds-history .round-number span.round-win-my-team {
|
|
top: -10px;
|
|
border-bottom-width: 2px;
|
|
}
|
|
|
|
#hud #scoreboard .rounds-history .round-number span.round-win-other-team {
|
|
top: 10px;
|
|
border-top-width: 2px;
|
|
}
|
|
|
|
#hud .radar {
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
#hud .bg {
|
|
background: rgba(0, 0, 0, 0.6);
|
|
}
|
|
|
|
#hud .health {
|
|
padding: .6rem .8rem;
|
|
max-width: 250px;
|
|
color: #ddb9b9;
|
|
}
|
|
|
|
#hud .hp {
|
|
padding-right: 1rem;
|
|
float: left;
|
|
width: 50%;
|
|
}
|
|
|
|
#hud .hp:last-child {
|
|
padding-right: 0;
|
|
}
|
|
|
|
#hud .money {
|
|
display: inline;
|
|
padding: .2rem .4rem;
|
|
color: #9a0438;
|
|
font-weight: bold;
|
|
}
|
|
|
|
#hud .timer {
|
|
margin: 0 auto;
|
|
display: flex;
|
|
width: 200px;
|
|
height: 60px;
|
|
flex-direction: row;
|
|
justify-content: center;
|
|
padding-top: 2px;
|
|
}
|
|
|
|
#hud .team-me-alive, #hud .team-opponent-alive {
|
|
width: 50px;
|
|
line-height: 60px;
|
|
font-size: 1.4rem;
|
|
font-weight: bold;
|
|
color: #f5f5f5;
|
|
}
|
|
|
|
#hud .team-me-alive {
|
|
background-color: var(--color-me);
|
|
}
|
|
|
|
#hud .team-me-score {
|
|
color: var(--color-me);
|
|
border-right: 1px solid #dadada;
|
|
}
|
|
|
|
#hud .team-opponent-alive {
|
|
background-color: var(--color-opponent);
|
|
}
|
|
|
|
#hud .team-opponent-score {
|
|
color: var(--color-opponent);
|
|
}
|
|
|
|
#hud #time {
|
|
padding: 2px 0 4px 0;
|
|
color: white;
|
|
font-weight: bold;
|
|
border-bottom: 1px solid #dadada;
|
|
}
|
|
|
|
#hud .timer-center {
|
|
width: 100px;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
#hud .timer-center .row * {
|
|
float: left;
|
|
width: 50%;
|
|
padding: 2px 4px;
|
|
}
|
|
|
|
#hud #message-top {
|
|
padding: 2rem 0;
|
|
flex-grow: 1;
|
|
font-size: 130%;
|
|
}
|
|
|
|
#hud #message-bottom {
|
|
padding-bottom: 4rem;
|
|
font-size: 90%;
|
|
font-style: italic;
|
|
}
|
|
|
|
#hud .ammo {
|
|
display: inline;
|
|
padding: 2px 4px;
|
|
}
|
|
|
|
#hud .kill-feed {
|
|
max-height: 220px;
|
|
font-size: .9rem;
|
|
line-height: 80%;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
color: #ffffff;
|
|
padding: 12px 4px;
|
|
}
|
|
|
|
#hud .kill-feed .highlight {
|
|
font-weight: bold;
|
|
background-color: rgba(0, 0, 0, .3);
|
|
}
|
|
|
|
#hud .inventory {
|
|
font-size: 80%;
|
|
}
|
|
|
|
#hud .inventory .highlight {
|
|
font-weight: bold;
|
|
color: #ffebc5;
|
|
}
|
|
|
|
#hud .kill-feed .team-me {
|
|
color: var(--color-me);
|
|
}
|
|
|
|
#hud .kill-feed .team-opponent {
|
|
color: var(--color-opponent);
|
|
}
|
|
|