t2-mapper/src/components/ServerBrowser.module.css
2026-03-14 17:12:37 -07:00

235 lines
3.7 KiB
CSS

.Dialog {
composes: Dialog from "./GameDialog.module.css";
width: 860px;
height: 560px;
display: grid;
grid-template-columns: 100%;
grid-template-rows: auto 1fr auto;
}
.Overlay {
composes: Overlay from "./GameDialog.module.css";
}
.Header {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 16px 10px;
border-bottom: 1px solid rgba(0, 190, 220, 0.25);
}
.Title {
font-size: 18px;
font-weight: 500;
color: #7dffff;
margin: 0;
text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
flex: 1;
}
.HiddenRadio {
position: absolute;
width: 0;
height: 0;
opacity: 0;
z-index: -1;
overflow: hidden;
pointer-events: none;
}
.RefreshButton {
composes: DialogButton from "./GameDialog.module.css";
padding: 3px 14px;
font-size: 12px;
}
.ServerCount {
font-size: 12px;
color: rgba(201, 220, 216, 0.4);
}
.TableWrapper {
overflow-y: auto;
min-height: 0;
}
.Table {
width: 100%;
min-height: 0;
border-collapse: collapse;
font-size: 13px;
user-select: none;
}
.Table th {
position: sticky;
z-index: 1;
top: 0;
background: rgba(10, 25, 26, 0.95);
padding: 6px 12px;
text-align: left;
cursor: pointer;
user-select: none;
border-bottom: 1px solid rgba(0, 190, 220, 0.2);
font-weight: 500;
font-size: 11px;
letter-spacing: 0.04em;
text-transform: uppercase;
color: rgba(125, 255, 255, 0.6);
}
.Table th:hover {
color: #7dffff;
}
.Table th:nth-child(2),
.Table td:nth-child(2),
.Table th:nth-child(3),
.Table td:nth-child(3) {
text-align: right;
}
.Table td {
position: relative;
z-index: 0;
padding: 3px 12px;
border-bottom: 1px solid rgba(255, 255, 255, 0.04);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 340px;
font-weight: 500;
}
.Table td.EmptyServer {
opacity: 0.4;
}
.Table tbody tr:not(.Empty) {
cursor: pointer;
}
.Table tbody tr:not(.Empty):hover {
background: rgba(65, 131, 139, 0.12);
}
.Table tbody tr:has(input:checked) {
background: rgba(93, 255, 225, 0.9) !important;
color: #1e2828;
}
.PasswordIcon {
color: rgba(255, 200, 60, 0.6);
margin-right: 4px;
font-size: 11px;
}
.Empty td {
text-align: center;
color: rgba(201, 220, 216, 0.3);
padding: 32px 12px !important;
font-style: italic;
}
.Footer {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
padding: 10px 12px;
border-top: 1px solid rgba(0, 190, 220, 0.25);
background: rgba(2, 20, 21, 0.7);
flex-shrink: 0;
}
.JoinButton {
composes: DialogButton from "./GameDialog.module.css";
min-width: 100px;
}
.CloseButton {
composes: Secondary from "./GameDialog.module.css";
}
.WarriorField {
display: flex;
align-items: center;
gap: 8px;
}
.WarriorLabel {
font-size: 12px;
color: rgba(125, 255, 255, 0.6);
font-weight: 500;
}
.WarriorInput {
width: 130px;
padding: 4px 6px;
background: rgba(0, 50, 60, 0.8);
border: 1px solid rgba(65, 131, 139, 0.5);
border-radius: 2px;
color: #b0d5c9;
font-family: inherit;
font-size: 13px;
outline: none;
}
.WarriorInput:focus {
border-color: rgba(125, 255, 255, 0.6);
}
.WarriorInput::placeholder {
color: rgba(201, 220, 216, 0.3);
}
.Hint {
font-size: 12px;
color: rgba(201, 220, 216, 0.3);
margin: 0 auto;
}
.Actions {
composes: Actions from "./GameDialog.module.css";
}
@media (max-width: 719px) {
.Hint {
display: none;
}
.Table td {
max-width: 200px;
}
.CloseButton {
margin-left: auto;
}
}
@media (max-width: 539px) {
.Footer {
flex-direction: column;
gap: 8px;
}
.Actions {
width: 100%;
}
.WarriorLabel {
font-size: 14px;
}
.WarriorInput {
font-size: 16px;
min-width: 12em;
}
.JoinButton,
.CloseButton {
flex: 1 0 auto;
height: 32px;
}
}