mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
Restyle the connected-peers list in the classic square, flat imageboard style, move it to the end of the panel, and open it by default. Add an offline approximate world map and per-peer country flags (sprite order taken from the original 4chan flags.css), plus codify the old-school design rules in DESIGN.md and point agents to them from AGENTS.md.
189 lines
2.8 KiB
CSS
189 lines
2.8 KiB
CSS
.content {
|
|
margin-left: 10px;
|
|
}
|
|
|
|
.setting {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.settingTip {
|
|
display: block;
|
|
font-size: 0.85em;
|
|
margin: 4px 0 0 20px;
|
|
}
|
|
|
|
.stats {
|
|
margin: 6px 0 0;
|
|
width: calc(100% - 8px);
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
.stats th {
|
|
text-align: left;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.stats th,
|
|
.stats td {
|
|
padding: 2px 4px 3px 0;
|
|
vertical-align: top;
|
|
}
|
|
|
|
.statName {
|
|
width: 34%;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.statValue {
|
|
word-break: break-word;
|
|
}
|
|
|
|
/* Connected peers span the full panel width instead of the narrow value column. */
|
|
.stats td.connectedPeersCell {
|
|
padding: 4px 4px 5px 0;
|
|
}
|
|
|
|
.connectedPeersSummary {
|
|
cursor: pointer;
|
|
padding: 1px 0;
|
|
}
|
|
|
|
.connectedPeerList {
|
|
display: grid;
|
|
gap: 5px;
|
|
margin-top: 6px;
|
|
}
|
|
|
|
.connectedPeer {
|
|
display: grid;
|
|
gap: 3px;
|
|
padding: 4px 6px;
|
|
border: 1px solid rgba(127, 127, 127, 0.28);
|
|
border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
|
|
}
|
|
|
|
.connectedPeerMeta {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 5px;
|
|
font-size: 0.85em;
|
|
}
|
|
|
|
.connectionTransport {
|
|
font-weight: 700;
|
|
}
|
|
|
|
.connectionDirection,
|
|
.connectionStatus {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
text-transform: capitalize;
|
|
opacity: 0.85;
|
|
}
|
|
|
|
.connectionDirection::before {
|
|
font-weight: 700;
|
|
}
|
|
|
|
.connectionDirection[data-direction*='out' i]::before {
|
|
content: '↑';
|
|
}
|
|
|
|
.connectionDirection[data-direction*='in' i]::before {
|
|
content: '↓';
|
|
}
|
|
|
|
.connectionStatus::before {
|
|
content: '';
|
|
width: 7px;
|
|
height: 7px;
|
|
background: #9aa0a6;
|
|
}
|
|
|
|
.connectionStatus[data-status*='open' i]::before {
|
|
background: #3fb950;
|
|
}
|
|
|
|
.peerId {
|
|
overflow: hidden;
|
|
font-family: monospace;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.connectionAddressRow {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.peerFlag {
|
|
flex-shrink: 0;
|
|
width: 16px;
|
|
height: 11px;
|
|
background-image: url("/assets/icons/flags-1.png");
|
|
background-repeat: no-repeat;
|
|
image-rendering: pixelated;
|
|
}
|
|
|
|
.connectionAddress {
|
|
flex: 1;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
font-size: 0.85em;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.connectedPeerEmpty {
|
|
padding: 6px 8px;
|
|
font-style: italic;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.peerWorldMap {
|
|
margin-top: 6px;
|
|
border: 1px solid rgba(127, 127, 127, 0.28);
|
|
border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
|
|
}
|
|
|
|
.peerWorldMapSvg {
|
|
display: block;
|
|
width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
.landDot {
|
|
fill: currentColor;
|
|
opacity: 0.18;
|
|
}
|
|
|
|
.peerMarker {
|
|
fill: #3fb950;
|
|
}
|
|
|
|
.peerWorldMapCaption {
|
|
padding: 1px 4px 2px;
|
|
font-size: 0.8em;
|
|
font-style: italic;
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.statsMeta {
|
|
margin-top: 5px;
|
|
font-size: 0.85em;
|
|
}
|
|
|
|
.statsMeta button {
|
|
margin-left: 5px;
|
|
}
|
|
|
|
.error {
|
|
color: var(--error-text-color, #b00020);
|
|
word-break: break-word;
|
|
}
|