Template:NavCell/styles.css: Difference between revisions
Template page
More actions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
.navcell { | .navcell { | ||
display: flex; | display: flex; | ||
flex-direction: column; | |||
align-items: center; | align-items: center; | ||
gap: 2px; | |||
margin: 0. | margin: 0.4em 0; | ||
max-width: 100%; | max-width: 100%; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
/* Description block */ | |||
/* Description | |||
.navcell-desc { | .navcell-desc { | ||
width: 100%; | |||
max-width: 560px; | max-width: 560px; | ||
margin | margin: 0 0 2px 0; | ||
padding: 10px 14px; | |||
box-sizing: border-box; | box-sizing: border-box; | ||
| Line 32: | Line 24: | ||
} | } | ||
.navcell-desc | /* Kill hidden margins inside description text */ | ||
.navcell-desc p, | |||
.navcell-desc div, | |||
.navcell-desc span { | |||
margin: 0; | |||
padding: 0; | |||
white-space: normal !important; | white-space: normal !important; | ||
} | } | ||
/* Compass container */ | |||
.navcell-ui { | .navcell-ui { | ||
margin: 2px 0 2px 0; | |||
padding: 0; | |||
} | } | ||
/* 3x3 compass grid */ | |||
.nav-grid { | .nav-grid { | ||
display: grid; | display: grid; | ||
grid-template-columns: | grid-template-columns: 40px 40px 40px; | ||
grid-template-rows: | grid-template-rows: 40px 40px 40px; | ||
gap: | gap: 4px; | ||
justify-content: center; | justify-content: center; | ||
margin | margin: 0; | ||
padding: 0; | |||
} | } | ||
/* Buttons */ | |||
.nav-btn { | .nav-btn { | ||
display: flex; | display: flex; | ||
| Line 59: | Line 57: | ||
background: #222; | background: #222; | ||
border: 1px solid #444; | border: 1px solid #444; | ||
border-radius: | border-radius: 7px; | ||
color: #eee; | color: #eee; | ||
font-size: 0. | font-size: 0.72em; | ||
line-height: 1.05em; | line-height: 1.05em; | ||
text-align: center; | text-align: center; | ||
| Line 82: | Line 80: | ||
} | } | ||
.nav-empty | .nav-empty, | ||
.nav-center { | .nav-center { | ||
background: transparent; | background: transparent; | ||
| Line 92: | Line 86: | ||
} | } | ||
/* Up / Down row */ | |||
.nav-vertical-row { | .nav-vertical-row { | ||
display: flex; | display: flex; | ||
justify-content: center; | justify-content: center; | ||
gap: | gap: 6px; | ||
margin | margin: 2px 0 2px 0; | ||
padding: 0; | |||
} | } | ||
.nav-vertical { | .nav-vertical { | ||
min-width: | min-width: 68px; | ||
padding: | padding: 4px 6px; | ||
font-size: 0. | font-size: 0.7em; | ||
} | } | ||
/* Nearby box */ | |||
.nav-nearby { | .nav-nearby { | ||
margin: 2px 0 0 0; | |||
padding: 8px 12px; | |||
text-align: center; | text-align: center; | ||
opacity: 0.9; | opacity: 0.9; | ||
margin- | } | ||
/* Mobile hard clamp */ | |||
@media (max-width: 600px) { | |||
.navcell { | |||
gap: 2px; | |||
} | |||
.navcell-desc { | |||
margin-bottom: 2px; | |||
} | |||
} | } | ||
Revision as of 23:58, 19 December 2025
.navcell {
display: flex;
flex-direction: column;
align-items: center;
gap: 2px;
margin: 0.4em 0;
max-width: 100%;
box-sizing: border-box;
}
/* Description block */
.navcell-desc {
width: 100%;
max-width: 560px;
margin: 0 0 2px 0;
padding: 10px 14px;
box-sizing: border-box;
white-space: normal !important;
overflow-x: hidden !important;
overflow-y: visible !important;
overflow-wrap: anywhere !important;
word-break: break-word !important;
}
/* Kill hidden margins inside description text */
.navcell-desc p,
.navcell-desc div,
.navcell-desc span {
margin: 0;
padding: 0;
white-space: normal !important;
}
/* Compass container */
.navcell-ui {
margin: 2px 0 2px 0;
padding: 0;
}
/* 3x3 compass grid */
.nav-grid {
display: grid;
grid-template-columns: 40px 40px 40px;
grid-template-rows: 40px 40px 40px;
gap: 4px;
justify-content: center;
margin: 0;
padding: 0;
}
/* Buttons */
.nav-btn {
display: flex;
align-items: center;
justify-content: center;
background: #222;
border: 1px solid #444;
border-radius: 7px;
color: #eee;
font-size: 0.72em;
line-height: 1.05em;
text-align: center;
box-sizing: border-box;
}
.nav-btn a {
color: inherit;
text-decoration: none;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.nav-btn:hover {
background: #333;
border-color: #777;
}
.nav-empty,
.nav-center {
background: transparent;
border: none;
}
/* Up / Down row */
.nav-vertical-row {
display: flex;
justify-content: center;
gap: 6px;
margin: 2px 0 2px 0;
padding: 0;
}
.nav-vertical {
min-width: 68px;
padding: 4px 6px;
font-size: 0.7em;
}
/* Nearby box */
.nav-nearby {
margin: 2px 0 0 0;
padding: 8px 12px;
text-align: center;
opacity: 0.9;
}
/* Mobile hard clamp */
@media (max-width: 600px) {
.navcell {
gap: 2px;
}
.navcell-desc {
margin-bottom: 2px;
}
}