t2-mapper/src/components/ServerBrowser.module.css

179 lines
3 KiB
CSS
Raw Normal View History

2026-03-09 12:38:40 -07:00
.Dialog {
position: relative;
width: 860px;
height: 560px;
max-width: calc(100dvw - 40px);
max-height: calc(100dvh - 40px);
display: grid;
grid-template-columns: 100%;
grid-template-rows: auto 1fr auto;
background: rgba(20, 37, 38, 0.8);
border: 1px solid rgba(65, 131, 139, 0.6);
border-radius: 4px;
box-shadow:
0 0 50px rgba(0, 0, 0, 0.4),
inset 0 0 60px rgba(1, 7, 13, 0.6);
color: #b0d5c9;
font-size: 14px;
line-height: 1.5;
overflow: hidden;
outline: none;
user-select: text;
-webkit-touch-callout: default;
}
.Overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.7);
z-index: 10;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
}
.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;
}
.RefreshButton {
composes: DialogButton from "./DialogButton.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%;
border-collapse: collapse;
font-size: 13px;
}
.Table th {
position: sticky;
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 {
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 tbody tr {
cursor: pointer;
}
.Table tbody tr:hover {
background: rgba(65, 131, 139, 0.12);
}
.Selected {
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 {
text-align: center;
color: rgba(201, 220, 216, 0.3);
padding: 32px 12px !important;
font-style: italic;
}
.Footer {
display: flex;
align-items: center;
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 "./DialogButton.module.css";
}
.CloseButton {
composes: Secondary from "./DialogButton.module.css";
}
.Hint {
font-size: 12px;
color: rgba(201, 220, 216, 0.3);
margin-left: auto;
}
@media (max-width: 719px) {
.Dialog {
width: 100%;
height: 100%;
max-width: 100dvw;
max-height: 100dvh;
border-radius: 0;
}
.Hint {
display: none;
}
.Table td {
max-width: 200px;
}
}