Template:NavCell/styles.css: Difference between revisions
Template page
More actions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* Compact base layout that TemplateStyles will accept */ | |||
.navcell { | .navcell { | ||
width: 100%; | |||
max-width: 900px; | |||
margin: 0 auto; | |||
margin: 0 | |||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
.navcell-top { | .navcell-top { | ||
width: 100%; | width: 100%; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
/* Compact | /* Compact text blocks */ | ||
.navcell-desc { | .navcell-desc, | ||
.nav-nearby, | |||
.navcell-lore { | |||
width: 94%; | width: 94%; | ||
margin: 8px auto 0 auto; | |||
margin: 0; | padding: 8px 10px; | ||
padding: | |||
font-size: 0.88em; | |||
line-height: 1.12; | |||
white-space: normal; | |||
overflow-wrap: anywhere; | |||
word-break: break-word; | |||
background: transparent; | |||
border: 1px solid rgba(120, 140, 180, 0.25); | |||
border-radius: 12px; | |||
box-sizing: border-box; | |||
. | |||
} | } | ||
.navcell-desc p, | .navcell-desc p, | ||
.navcell-desc div | .navcell-desc div, | ||
.nav-nearby p, | |||
.nav-nearby div, | |||
.navcell-lore p, | |||
.navcell-lore div { | |||
margin: 0; | |||
.nav-nearby | |||
margin: | |||
padding: 0; | padding: 0; | ||
} | } | ||
/* D pad */ | |||
.navcell-ui { | .navcell-ui { | ||
margin: | width: 100%; | ||
margin: 10px auto 0 auto; | |||
box-sizing: border-box; | |||
} | } | ||
.nav-grid { | .nav-grid { | ||
display: grid; | display: grid; | ||
| Line 113: | Line 65: | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
background: #222; | background: #222; | ||
border: 1px solid #444; | border: 1px solid #444; | ||
border-radius: 7px; | border-radius: 7px; | ||
color: #eee; | color: #eee; | ||
text-align: center; | |||
font-size: 0.72em; | font-size: 0.72em; | ||
line-height: 1.05em; | line-height: 1.05em; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
| Line 144: | Line 100: | ||
} | } | ||
.nav-vertical-row { | .nav-vertical-row { | ||
display: flex; | display: flex; | ||
| Line 154: | Line 109: | ||
.nav-vertical { | .nav-vertical { | ||
min-width: | min-width: 74px; | ||
padding: 6px 8px; | padding: 6px 8px; | ||
font-size: 0.7em; | font-size: 0.7em; | ||
} | } | ||
/* | /* Desktop layout: D pad to the right of text */ | ||
@media screen and (min-width: | @media screen and (min-width: 760px) { | ||
.navcell-top { | .navcell-top { | ||
flex | display: flex; | ||
align-items: flex-start; | align-items: flex-start; | ||
justify-content: center; | justify-content: center; | ||
gap: | gap: 16px; | ||
padding: 0 10px; | padding: 0 10px; | ||
} | } | ||
.navcell-left { | .navcell-left { | ||
flex: 1 1 auto; | |||
max-width: 640px; | max-width: 640px; | ||
} | } | ||
.navcell-ui { | .navcell-ui { | ||
flex: 0 0 auto; | |||
width: auto; | |||
margin-top: 8px; | margin-top: 8px; | ||
} | } | ||
} | } | ||
Revision as of 09:04, 20 December 2025
/* Compact base layout that TemplateStyles will accept */
.navcell {
width: 100%;
max-width: 900px;
margin: 0 auto;
box-sizing: border-box;
}
.navcell-top {
width: 100%;
box-sizing: border-box;
}
/* Compact text blocks */
.navcell-desc,
.nav-nearby,
.navcell-lore {
width: 94%;
margin: 8px auto 0 auto;
padding: 8px 10px;
font-size: 0.88em;
line-height: 1.12;
white-space: normal;
overflow-wrap: anywhere;
word-break: break-word;
background: transparent;
border: 1px solid rgba(120, 140, 180, 0.25);
border-radius: 12px;
box-sizing: border-box;
}
.navcell-desc p,
.navcell-desc div,
.nav-nearby p,
.nav-nearby div,
.navcell-lore p,
.navcell-lore div {
margin: 0;
padding: 0;
}
/* D pad */
.navcell-ui {
width: 100%;
margin: 10px auto 0 auto;
box-sizing: border-box;
}
.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;
text-align: center;
font-size: 0.72em;
line-height: 1.05em;
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: 10px;
margin: 10px 0 0 0;
padding: 0;
}
.nav-vertical {
min-width: 74px;
padding: 6px 8px;
font-size: 0.7em;
}
/* Desktop layout: D pad to the right of text */
@media screen and (min-width: 760px) {
.navcell-top {
display: flex;
align-items: flex-start;
justify-content: center;
gap: 16px;
padding: 0 10px;
}
.navcell-left {
flex: 1 1 auto;
max-width: 640px;
}
.navcell-ui {
flex: 0 0 auto;
width: auto;
margin-top: 8px;
}
}