Template:NavCell/styles.css: Difference between revisions
Template page
More actions
No edit summary |
No edit summary |
||
| Line 23: | Line 23: | ||
width: 100%; | width: 100%; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
white-space: normal !important; | white-space: normal !important; | ||
overflow-x: hidden !important; | overflow-x: hidden !important; | ||
| Line 110: | Line 109: | ||
@media (max-width: 720px) { | @media (max-width: 720px) { | ||
.navcell { | .navcell { | ||
gap: | flex-wrap: nowrap; | ||
justify-content: | gap: 12px; | ||
justify-content: space-between; | |||
align-items: flex-start; | |||
} | } | ||
.navcell-desc { | .navcell-desc { | ||
flex: 1 1 | flex: 1 1 auto; | ||
min-width: 0; | min-width: 0; | ||
max-width: | max-width: none; | ||
} | |||
.navcell-ui { | |||
flex: 0 0 170px; | |||
} | |||
.nav-grid { | |||
grid-template-columns: 40px 40px 40px; | |||
grid-template-rows: 40px 40px 40px; | |||
gap: 7px; | |||
} | |||
.nav-btn { | |||
font-size: 0.72em; | |||
border-radius: 8px; | |||
} | |||
.nav-vertical { | |||
min-width: 78px; | |||
font-size: 0.76em; | |||
} | } | ||
} | } | ||
Revision as of 21:38, 19 December 2025
.navcell {
display: flex;
gap: 18px;
align-items: flex-start;
flex-wrap: wrap;
margin: 1.2em 0;
max-width: 100%;
box-sizing: border-box;
}
.navcell-layout-right {
flex-direction: row;
}
.navcell-layout-left {
flex-direction: row-reverse;
}
.navcell-desc {
flex: 1 1 300px;
min-width: 240px;
max-width: 520px;
width: 100%;
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;
}
.navcell-desc * {
white-space: normal !important;
overflow-wrap: anywhere !important;
word-break: break-word !important;
}
.navcell-ui {
flex: 0 0 auto;
box-sizing: border-box;
}
.nav-grid {
display: grid;
grid-template-columns: 44px 44px 44px;
grid-template-rows: 44px 44px 44px;
gap: 8px;
justify-content: center;
margin-bottom: 0.8em;
}
.nav-btn {
display: flex;
align-items: center;
justify-content: center;
background: #222;
border: 1px solid #444;
border-radius: 8px;
color: #eee;
font-size: 0.78em;
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 {
background: transparent;
border: none;
}
.nav-center {
background: transparent;
border: none;
}
.nav-vertical-row {
display: flex;
justify-content: center;
gap: 10px;
margin-bottom: 0.8em;
}
.nav-vertical {
min-width: 84px;
padding: 6px 10px;
font-size: 0.8em;
}
.nav-nearby {
text-align: center;
opacity: 0.9;
}
@media (max-width: 720px) {
.navcell {
flex-wrap: nowrap;
gap: 12px;
justify-content: space-between;
align-items: flex-start;
}
.navcell-desc {
flex: 1 1 auto;
min-width: 0;
max-width: none;
}
.navcell-ui {
flex: 0 0 170px;
}
.nav-grid {
grid-template-columns: 40px 40px 40px;
grid-template-rows: 40px 40px 40px;
gap: 7px;
}
.nav-btn {
font-size: 0.72em;
border-radius: 8px;
}
.nav-vertical {
min-width: 78px;
font-size: 0.76em;
}
}