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; | ||
gap: | gap: 10px; | ||
align-items: | align-items: center; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
margin: | margin: 1em 0; | ||
max-width: 100%; | max-width: 100%; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
justify-content: center; | |||
} | } | ||
| Line 18: | Line 19: | ||
.navcell-desc { | .navcell-desc { | ||
flex: 1 1 | flex: 1 1 100%; | ||
max-width: 560px; | |||
margin-bottom: 6px; | |||
box-sizing: border-box; | box-sizing: border-box; | ||
white-space: normal !important; | white-space: normal !important; | ||
overflow-wrap: anywhere !important; | overflow-wrap: anywhere !important; | ||
| Line 38: | Line 30: | ||
.navcell-ui { | .navcell-ui { | ||
flex: 0 0 auto; | flex: 0 0 auto; | ||
margin-top: 4px; | |||
} | } | ||
.nav-grid { | .nav-grid { | ||
display: grid; | display: grid; | ||
grid-template-columns: | grid-template-columns: 42px 42px 42px; | ||
grid-template-rows: | grid-template-rows: 42px 42px 42px; | ||
gap: | gap: 6px; | ||
justify-content: center; | justify-content: center; | ||
margin-bottom: | margin-bottom: 6px; | ||
} | } | ||
| Line 58: | Line 50: | ||
border-radius: 8px; | border-radius: 8px; | ||
color: #eee; | color: #eee; | ||
font-size: 0. | font-size: 0.75em; | ||
line-height: 1.05em; | line-height: 1.05em; | ||
text-align: center; | text-align: center; | ||
| Line 92: | Line 84: | ||
display: flex; | display: flex; | ||
justify-content: center; | justify-content: center; | ||
gap: | gap: 8px; | ||
margin-bottom: | margin-bottom: 6px; | ||
} | } | ||
.nav-vertical { | .nav-vertical { | ||
min-width: | min-width: 72px; | ||
padding: | padding: 5px 8px; | ||
font-size: 0. | font-size: 0.74em; | ||
} | } | ||
| Line 105: | Line 97: | ||
text-align: center; | text-align: center; | ||
opacity: 0.9; | opacity: 0.9; | ||
margin-top: 4px; | |||
} | } | ||
Revision as of 23:52, 19 December 2025
.navcell {
display: flex;
gap: 10px;
align-items: center;
flex-wrap: wrap;
margin: 1em 0;
max-width: 100%;
box-sizing: border-box;
justify-content: center;
}
.navcell-layout-right {
flex-direction: row;
}
.navcell-layout-left {
flex-direction: row-reverse;
}
.navcell-desc {
flex: 1 1 100%;
max-width: 560px;
margin-bottom: 6px;
box-sizing: border-box;
white-space: normal !important;
overflow-wrap: anywhere !important;
word-break: break-word !important;
}
.navcell-ui {
flex: 0 0 auto;
margin-top: 4px;
}
.nav-grid {
display: grid;
grid-template-columns: 42px 42px 42px;
grid-template-rows: 42px 42px 42px;
gap: 6px;
justify-content: center;
margin-bottom: 6px;
}
.nav-btn {
display: flex;
align-items: center;
justify-content: center;
background: #222;
border: 1px solid #444;
border-radius: 8px;
color: #eee;
font-size: 0.75em;
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: 8px;
margin-bottom: 6px;
}
.nav-vertical {
min-width: 72px;
padding: 5px 8px;
font-size: 0.74em;
}
.nav-nearby {
text-align: center;
opacity: 0.9;
margin-top: 4px;
}