All checks were successful
Deploy MineGeo to Dokploy / deploy (push) Successful in 8m58s
535 lines
10 KiB
CSS
535 lines
10 KiB
CSS
/* Responsive corrections shared by both languages. */
|
|
.language-switcher {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
color: var(--muted);
|
|
}
|
|
.language-switcher select {
|
|
color: var(--text);
|
|
background: #151e28;
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
padding: 8px 28px 8px 10px;
|
|
max-width: 100%;
|
|
cursor: pointer;
|
|
}
|
|
.language-switcher select:focus-visible,
|
|
textarea:focus-visible,
|
|
select:focus-visible {
|
|
outline: 2px solid var(--green);
|
|
outline-offset: 3px;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: MineGeoPixelCyrillic;
|
|
src: url("/fonts/Monocraft.ttf") format("truetype");
|
|
font-weight: 400;
|
|
font-style: normal;
|
|
font-display: swap;
|
|
}
|
|
/* Fallback for user-provided Cyrillic names on English pages. */
|
|
h1,
|
|
h2,
|
|
h3 {
|
|
font-family: MineGeoPixel, MineGeoPixelCyrillic, monospace;
|
|
}
|
|
html[lang="ru"] h1,
|
|
html[lang="ru"] h2,
|
|
html[lang="ru"] h3,
|
|
html[lang="ru"] .button,
|
|
html[lang="ru"] .header-account,
|
|
html[lang="ru"] .site-header nav,
|
|
html[lang="ru"] .world-stats strong {
|
|
font-family: MineGeoPixelCyrillic, monospace;
|
|
line-height: 1.45;
|
|
}
|
|
html[lang="ru"] h1 {
|
|
font-size: clamp(28px, 3vw, 42px);
|
|
letter-spacing: -1px;
|
|
}
|
|
html[lang="ru"] h2 {
|
|
font-size: clamp(22px, 2.1vw, 30px);
|
|
letter-spacing: -0.5px;
|
|
}
|
|
html[lang="ru"] h3 {
|
|
font-size: 18px;
|
|
letter-spacing: 0;
|
|
}
|
|
html[lang="ru"] .button,
|
|
html[lang="ru"] .header-account {
|
|
font-size: 14px;
|
|
}
|
|
html[lang="ru"] .site-header nav {
|
|
font-size: 12px;
|
|
gap: 24px;
|
|
}
|
|
html[lang="ru"] .world-stats strong {
|
|
font-size: 24px;
|
|
}
|
|
html[lang="ru"] .leaderboard-preview-copy h2 {
|
|
font-size: clamp(27px, 3.2vw, 42px);
|
|
}
|
|
html[lang="ru"] .mode-row h3 {
|
|
font-size: 14px;
|
|
flex-wrap: wrap;
|
|
}
|
|
html[lang="ru"] .mode-row h3 span {
|
|
font-family: Arial, sans-serif;
|
|
}
|
|
.header-inner > *,
|
|
.hero > *,
|
|
.section-heading > *,
|
|
.home-panels > *,
|
|
.contribute-banner > *,
|
|
.site-footer > * {
|
|
min-width: 0;
|
|
}
|
|
.site-footer > div:last-of-type {
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
}
|
|
.site-footer .disclaimer {
|
|
color: var(--muted);
|
|
}
|
|
.card-body h3,
|
|
.podium-player h2 {
|
|
overflow-wrap: anywhere;
|
|
}
|
|
.board-heading {
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
}
|
|
.mode-row h3 {
|
|
flex-wrap: wrap;
|
|
}
|
|
.tool-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.tool-card pre,
|
|
.token-box code {
|
|
max-width: 100%;
|
|
overflow-x: auto;
|
|
}
|
|
.tool-card .button {
|
|
align-self: flex-start;
|
|
}
|
|
.leaderboard-filters {
|
|
flex-wrap: wrap;
|
|
}
|
|
.hero-notes > span:last-child {
|
|
min-width: 0;
|
|
}
|
|
.round-blocks {
|
|
flex-shrink: 0;
|
|
}
|
|
.button,
|
|
.header-account {
|
|
text-align: center;
|
|
}
|
|
.auth-tabs button {
|
|
border-radius: var(--radius-control);
|
|
}
|
|
/* Keep catalog cards readable instead of squeezing long map names. */
|
|
.cards-grid {
|
|
grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
|
|
}
|
|
.map-card .card-body .map-credit {
|
|
display: block;
|
|
overflow: visible;
|
|
min-height: 0;
|
|
-webkit-line-clamp: unset;
|
|
}
|
|
.map-card .card-body .eyebrow {
|
|
overflow-wrap: anywhere;
|
|
}
|
|
.search-field:focus-within {
|
|
outline: 2px solid var(--green);
|
|
outline-offset: 4px;
|
|
}
|
|
.dashboard-toolbar {
|
|
flex-wrap: wrap;
|
|
}
|
|
.dashboard-toolbar > * {
|
|
min-width: 0;
|
|
}
|
|
@media (max-width: 850px) {
|
|
.site-header {
|
|
height: auto;
|
|
}
|
|
.header-inner {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
padding: 14px 20px;
|
|
gap: 14px;
|
|
}
|
|
.header-inner nav {
|
|
grid-column: 1 / -1;
|
|
grid-row: 2;
|
|
width: 100%;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 12px 22px;
|
|
padding: 12px 0 2px;
|
|
border-top: 1px solid var(--line);
|
|
justify-content: flex-start;
|
|
}
|
|
html[lang="ru"] .header-inner nav {
|
|
gap: 12px 20px;
|
|
font-size: 11px;
|
|
}
|
|
.header-account {
|
|
justify-self: end;
|
|
white-space: nowrap;
|
|
}
|
|
.site-header nav a {
|
|
padding-block: 6px;
|
|
}
|
|
.site-header nav a[aria-current="page"]::after {
|
|
bottom: 0;
|
|
}
|
|
}
|
|
@media (max-width: 700px) {
|
|
.section-heading {
|
|
flex-wrap: wrap;
|
|
align-items: flex-start;
|
|
gap: 12px;
|
|
}
|
|
.section-heading .text-link {
|
|
white-space: normal;
|
|
}
|
|
.world-stats {
|
|
margin-inline: auto;
|
|
}
|
|
.world-stats > div {
|
|
padding-left: 0;
|
|
}
|
|
.home-page .map-art-frame {
|
|
width: min(256px, 76vw);
|
|
height: auto;
|
|
aspect-ratio: 1;
|
|
}
|
|
.site-footer {
|
|
gap: 24px;
|
|
}
|
|
.site-footer > div:last-of-type {
|
|
width: 100%;
|
|
gap: 16px 24px;
|
|
}
|
|
.language-switcher {
|
|
flex-basis: 100%;
|
|
}
|
|
html[lang="ru"] .hero h1 {
|
|
font-size: clamp(26px, 7vw, 34px);
|
|
}
|
|
html[lang="ru"] .world-stats strong {
|
|
font-size: 20px;
|
|
}
|
|
html[lang="ru"] .card-body h3 {
|
|
font-size: 15px;
|
|
}
|
|
html[lang="ru"] .card-type {
|
|
font-size: 8px;
|
|
}
|
|
.hero-actions .text-link {
|
|
font-size: 12px;
|
|
}
|
|
.home-panel + .home-panel {
|
|
min-width: 0;
|
|
}
|
|
.map-card .card-body p {
|
|
display: -webkit-box;
|
|
}
|
|
.map-card .card-meta span:last-child {
|
|
display: flex;
|
|
}
|
|
}
|
|
.moderator-settings {
|
|
margin-bottom: 28px;
|
|
}
|
|
.moderation-page :is(.tool-card, .draft-row) {
|
|
margin-bottom: 32px;
|
|
}
|
|
.staff-page-switch {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 20px;
|
|
margin: 24px 0 32px;
|
|
}
|
|
|
|
/* Shared layout repairs: readable content, predictable cards, and touch targets. */
|
|
:is(a, button, input, select, textarea, summary):focus-visible {
|
|
outline: 2px solid var(--green);
|
|
outline-offset: 4px;
|
|
}
|
|
.page-content > h1 {
|
|
text-wrap: balance;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
.lead {
|
|
text-wrap: pretty;
|
|
}
|
|
.map-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
}
|
|
.map-card .card-body {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 20px;
|
|
gap: 12px;
|
|
}
|
|
.map-card .card-body .eyebrow {
|
|
font: 11px/1.5 monospace;
|
|
margin: 0;
|
|
}
|
|
.map-card .card-body h3,
|
|
html[lang="ru"] .map-card .card-body h3 {
|
|
font:
|
|
400 18px/1.6 MineGeoPixelCyrillic,
|
|
monospace;
|
|
letter-spacing: -0.3px;
|
|
text-shadow: none;
|
|
min-height: 4.8em;
|
|
margin: 0;
|
|
gap: 12px;
|
|
align-items: flex-start;
|
|
}
|
|
.map-card .card-body h3 > span {
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 3;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
min-width: 0;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
.map-card .card-body h3 svg {
|
|
margin-top: 4px;
|
|
}
|
|
.map-card .card-body p {
|
|
font-size: 13px;
|
|
line-height: 1.65;
|
|
margin: 0;
|
|
min-height: 3.3em;
|
|
}
|
|
.map-card .card-body .map-credit {
|
|
margin-top: auto;
|
|
padding-top: 4px;
|
|
}
|
|
.map-card .card-meta {
|
|
font-size: 11px;
|
|
gap: 8px;
|
|
padding-top: 14px;
|
|
}
|
|
.catalog-count {
|
|
margin: 0 0 20px;
|
|
font-size: 13px;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
.catalog-empty {
|
|
padding: 36px 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 16px;
|
|
}
|
|
.catalog-empty p {
|
|
margin: 0;
|
|
}
|
|
.catalog-controls .tabs button {
|
|
min-height: 44px;
|
|
}
|
|
.map-back-link {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
color: var(--muted);
|
|
margin-bottom: 28px;
|
|
min-height: 32px;
|
|
}
|
|
.map-back-link:hover {
|
|
color: var(--green);
|
|
}
|
|
.map-detail-page .map-detail-title {
|
|
font-family: MineGeoPixelCyrillic, monospace;
|
|
font-size: clamp(24px, 3vw, 34px);
|
|
line-height: 1.5;
|
|
max-width: 30ch;
|
|
text-wrap: pretty;
|
|
}
|
|
.map-detail-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 12px;
|
|
margin: 16px 0;
|
|
}
|
|
.map-detail-actions .map-export {
|
|
margin: 0;
|
|
}
|
|
.map-detail-id {
|
|
font-size: 12px;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
.detail-grid > * {
|
|
min-width: 0;
|
|
}
|
|
.start-panel .difficulty-options button {
|
|
min-width: 0;
|
|
overflow-wrap: anywhere;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
justify-content: flex-start;
|
|
}
|
|
.detail-grid .card-meta span:last-child {
|
|
display: flex;
|
|
}
|
|
.stat-cube.void-cube {
|
|
background: #9e6bc4;
|
|
border-color: #cca6ef;
|
|
}
|
|
.mode-row:has(.void-cube) {
|
|
border-color: #9163b080;
|
|
}
|
|
.world-stats strong,
|
|
.card-meta {
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
.loading-surface {
|
|
background: var(--panel2);
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--radius-control);
|
|
}
|
|
.loading-title {
|
|
width: min(440px, 75%);
|
|
height: 48px;
|
|
margin: 24px 0 36px;
|
|
}
|
|
.loading-card {
|
|
height: 420px;
|
|
}
|
|
.route-loading {
|
|
min-height: 85dvh;
|
|
}
|
|
.leaderboard-preview-placeholder {
|
|
min-height: 420px;
|
|
}
|
|
.leaderboard-preview-placeholder .loading-surface {
|
|
height: 240px;
|
|
}
|
|
@media (max-width: 960px) {
|
|
.map-detail-page .detail-grid {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
}
|
|
.detail-grid > div:first-child {
|
|
width: 100%;
|
|
max-width: 520px;
|
|
margin-inline: auto;
|
|
}
|
|
.start-panel .difficulty-options {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
}
|
|
@media (min-width: 701px) and (max-width: 960px) {
|
|
.home-page .hero {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
gap: 32px;
|
|
}
|
|
.hero-copy {
|
|
max-width: 620px;
|
|
}
|
|
.home-page .hero h1 {
|
|
font-size: clamp(40px, 5.8vw, 54px);
|
|
line-height: 1.12;
|
|
text-wrap: balance;
|
|
}
|
|
.hero-art {
|
|
min-height: 350px;
|
|
width: 100%;
|
|
max-width: 440px;
|
|
margin-inline: auto;
|
|
}
|
|
.hero-art .compass-art {
|
|
right: calc(50% - 150px);
|
|
top: 0;
|
|
}
|
|
}
|
|
@media (max-width: 600px) {
|
|
.section.page-content {
|
|
padding: 32px 20px 48px;
|
|
}
|
|
.catalog-search {
|
|
width: 100%;
|
|
}
|
|
.catalog-search .search-field {
|
|
min-height: 46px;
|
|
padding-inline: 12px;
|
|
}
|
|
.catalog-search input {
|
|
font-size: 16px;
|
|
}
|
|
.catalog-controls {
|
|
gap: 16px;
|
|
}
|
|
.catalog-controls .tabs {
|
|
gap: 4px;
|
|
}
|
|
.catalog-controls .tabs button {
|
|
padding-inline: 10px;
|
|
}
|
|
.map-card .card-body {
|
|
padding: 18px;
|
|
}
|
|
.map-detail-page .map-detail-title {
|
|
font-size: 22px;
|
|
}
|
|
.map-back-link {
|
|
margin-bottom: 20px;
|
|
}
|
|
.detail-grid {
|
|
gap: 28px;
|
|
margin-top: 28px;
|
|
}
|
|
.detail-grid .start-panel {
|
|
padding: 20px;
|
|
}
|
|
.start-panel .difficulty-options {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
.start-panel .difficulty-options span {
|
|
font-size: 12px;
|
|
}
|
|
.hero-actions {
|
|
align-items: stretch;
|
|
}
|
|
.hero-actions > .button {
|
|
width: 100%;
|
|
}
|
|
}
|
|
.moderator-setting-row {
|
|
display: flex;
|
|
gap: 24px;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-top: 24px;
|
|
}
|
|
.moderator-setting-row h3 {
|
|
margin: 0 0 8px;
|
|
}
|
|
.moderator-setting-row p {
|
|
margin: 6px 0;
|
|
}
|
|
.moderator-setting-row .button {
|
|
flex-shrink: 0;
|
|
}
|
|
@media (max-width: 600px) {
|
|
.moderator-setting-row {
|
|
align-items: stretch;
|
|
flex-direction: column;
|
|
}
|
|
}
|