diff --git a/client/css/style.css b/client/css/style.css index ce1f0f9..e193212 100644 --- a/client/css/style.css +++ b/client/css/style.css @@ -144,7 +144,6 @@ input:focus, select:focus { border-color: var(--accent); } background-repeat: no-repeat; background-size: 441px 56px; } -.hex.territory { pointer-events: none; } .hex.fog { pointer-events: none; } .fog-unexplored { background: #04040a; } .fog-explored { background: rgba(4, 6, 18, 0.62); } @@ -192,6 +191,14 @@ input:focus, select:focus { border-color: var(--accent); } display: block; filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.9)); } +.unit .status-icon { + width: calc(var(--unit-size, 38px) / 3); + height: calc(var(--unit-size, 38px) / 3); +} +.city .status-icon { + width: calc(var(--city-size, 26px) / 3); + height: calc(var(--city-size, 26px) / 3); +} .unit .body { width: 100%; height: 100%; @@ -219,12 +226,13 @@ input:focus, select:focus { border-color: var(--accent); } .unit .health .fill { height: 100%; background: #46d36a; } .city { + --city-size: 26px; transform: translate(-50%, -50%); text-align: center; } .city .marker { - width: 26px; - height: 26px; + width: var(--city-size); + height: var(--city-size); margin: 0 auto; border-radius: 5px; border: 2px solid rgba(255, 255, 255, 0.8); @@ -238,8 +246,8 @@ input:focus, select:focus { border-color: var(--accent); } .city-label-layer { pointer-events: none; } .city-label { position: absolute; - transform: translate(-50%, 0); - margin-top: 15px; + transform: translate(-50%, -100%); + margin-top: -21px; font-size: 11px; color: #fff; text-align: center; @@ -247,6 +255,11 @@ input:focus, select:focus { border-color: var(--accent); } white-space: nowrap; pointer-events: none; } +.city-label.capital::before { + content: "\2605"; + color: #ffd54a; + margin-right: 3px; +} .path-seg { position: absolute; @@ -376,6 +389,8 @@ input:focus, select:focus { border-color: var(--accent); } box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7); overflow: hidden; } +.modal-card-small { width: 420px; } +.modal-card-small .row { padding-bottom: 18px; } .modal-head { display: flex; justify-content: space-between; @@ -436,6 +451,18 @@ input:focus, select:focus { border-color: var(--accent); } .progress { height: 14px; margin-top: 8px; background: rgba(0, 0, 0, 0.5); border-radius: 7px; overflow: hidden; } #train-progress, #buildings-progress { height: 100%; width: 0; background: linear-gradient(180deg, #7fc4ff, #2f7fd0); } +.news-item { + padding: 10px 12px; + margin-bottom: 8px; + border-radius: 9px; + background: rgba(255, 255, 255, 0.05); + border: 1px solid rgba(255, 255, 255, 0.05); +} +.news-item .news-text { font-weight: 600; } +.news-item .news-date { color: var(--muted); font-size: 12px; margin-top: 3px; } +.news-empty { color: var(--muted); padding: 8px 0; } +#news-button { flex: 0 0 auto; } + .banner { position: absolute; left: 50%; diff --git a/client/index.html b/client/index.html index a37fbd9..9ec5bd2 100644 --- a/client/index.html +++ b/client/index.html @@ -82,7 +82,6 @@
-
@@ -96,6 +95,7 @@ +
—
@@ -167,7 +167,33 @@
- + + + + + + +