Template:NavCell/styles.css: Difference between revisions
Template page
More actions
No edit summary |
No edit summary |
||
| Line 9: | Line 9: | ||
} | } | ||
/* Description | /* Description box must wrap, never scroll sideways */ | ||
.navcell-desc { | .navcell-desc { | ||
width: | width: 94%; | ||
max-width: 560px; | max-width: 560px; | ||
margin: 0 0 2px 0; | margin: 0 0 2px 0; | ||
padding: 10px 14px; | padding: 10px 14px; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
display: block !important; | |||
overflow-x: hidden !important; | |||
white-space: normal !important; | white-space: normal !important; | ||
overflow-wrap: anywhere !important; | overflow-wrap: anywhere !important; | ||
word-break: break-word !important; | word-break: break-word !important; | ||
} | } | ||
/* | /* Hit the parser output and common children */ | ||
.navcell-desc, | |||
.navcell-desc .mw-parser-output, | |||
.navcell-desc p, | .navcell-desc p, | ||
.navcell-desc div, | .navcell-desc div, | ||
.navcell-desc span { | .navcell-desc span, | ||
.navcell-desc a { | |||
white-space: normal !important; | white-space: normal !important; | ||
overflow-wrap: anywhere !important; | |||
word-break: break-word !important; | |||
max-width: 100% !important; | |||
} | |||
/* Kill margins that create fake space */ | |||
.navcell-desc .mw-parser-output, | |||
.navcell-desc p, | |||
.navcell-desc div { | |||
margin: 0 !important; | |||
padding: 0 !important; | |||
} | } | ||
.navcell-ui { | .navcell-ui { | ||
margin: 2px 0 2px 0; | margin: 2px 0 2px 0; | ||
| Line 39: | Line 51: | ||
} | } | ||
.nav-grid { | .nav-grid { | ||
display: grid; | display: grid; | ||
| Line 50: | Line 61: | ||
} | } | ||
.nav-btn { | .nav-btn { | ||
display: flex; | display: flex; | ||
| Line 86: | Line 96: | ||
} | } | ||
.nav-vertical-row { | .nav-vertical-row { | ||
display: flex; | display: flex; | ||
| Line 101: | Line 110: | ||
} | } | ||
.nav-nearby { | .nav-nearby { | ||
width: 94%; | |||
max-width: 560px; | |||
margin: 2px 0 0 0; | margin: 2px 0 0 0; | ||
padding: 8px 12px; | padding: 8px 12px; | ||
text-align: center; | text-align: center; | ||
opacity: 0.9; | opacity: 0.9; | ||
box-sizing: border-box; | |||
} | } | ||
Revision as of 00:01, 20 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 box must wrap, never scroll sideways */
.navcell-desc {
width: 94%;
max-width: 560px;
margin: 0 0 2px 0;
padding: 10px 14px;
box-sizing: border-box;
display: block !important;
overflow-x: hidden !important;
white-space: normal !important;
overflow-wrap: anywhere !important;
word-break: break-word !important;
}
/* Hit the parser output and common children */
.navcell-desc,
.navcell-desc .mw-parser-output,
.navcell-desc p,
.navcell-desc div,
.navcell-desc span,
.navcell-desc a {
white-space: normal !important;
overflow-wrap: anywhere !important;
word-break: break-word !important;
max-width: 100% !important;
}
/* Kill margins that create fake space */
.navcell-desc .mw-parser-output,
.navcell-desc p,
.navcell-desc div {
margin: 0 !important;
padding: 0 !important;
}
.navcell-ui {
margin: 2px 0 2px 0;
padding: 0;
}
.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;
}
.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;
}
.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;
}
.nav-nearby {
width: 94%;
max-width: 560px;
margin: 2px 0 0 0;
padding: 8px 12px;
text-align: center;
opacity: 0.9;
box-sizing: border-box;
}