Template:NavCell/styles.css: Difference between revisions
Template page
More actions
No edit summary Tag: Manual revert |
No edit summary |
||
| Line 13: | Line 13: | ||
} | } | ||
/* Text blocks: tighter, smaller | /* Text blocks: tighter, smaller */ | ||
.navcell-desc, | .navcell-desc, | ||
| Line 152: | Line 152: | ||
} | } | ||
/* Mobile: | /* Mobile: fixed bottom gamepad */ | ||
@media screen and (max-width: 759px) { | @media screen and (max-width: 759px) { | ||
| Line 158: | Line 158: | ||
position: fixed; | position: fixed; | ||
left: 50%; | left: 50%; | ||
bottom: | bottom: 74px; | ||
transform: translateX(-50%); | transform: translateX(-50%); | ||
z-index: | |||
z-index: 2147483647; | |||
margin: 0; | margin: 0; | ||
padding: 8px 10px; | padding: 8px 10px; | ||
background: rgba(0, 0, 0, 0. | background: rgba(0, 0, 0, 0.90); | ||
border: 1px solid rgba(255, 255, 255, 0. | border: 1px solid rgba(255, 255, 255, 0.10); | ||
border-radius: 14px; | border-radius: 14px; | ||
box-shadow: 0 0 0 1px rgba(255, 255, 255, 0. | box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06); | ||
} | } | ||
body.sk-navpad-on .navcell { | body.sk-navpad-on .navcell { | ||
padding-bottom: | padding-bottom: 170px; | ||
} | } | ||
body.sk-navpad-off .navcell-ui { | body.sk-navpad-off .navcell-ui { | ||
display: none; | display: none; | ||
} | |||
/* Force the navpad above any skin footer overlays */ | |||
body.sk-navpad-on .navcell-ui, | |||
body.sk-navpad-on .navcell-ui * { | |||
position: relative; | |||
} | } | ||
} | } | ||
Revision as of 01:03, 21 December 2025
/* Base */
.navcell {
width: 100%;
max-width: 980px;
margin: 0 auto;
box-sizing: border-box;
}
.navcell-top {
width: 100%;
box-sizing: border-box;
}
/* Text blocks: tighter, smaller */
.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,
.nav-nearby p,
.navcell-lore p,
.navcell-desc div,
.nav-nearby div,
.navcell-lore div {
margin: 0;
padding: 0;
}
/* Inline nav (desktop default) */
.navcell-ui {
width: 216px;
box-sizing: border-box;
margin: 10px auto 0 auto;
}
.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;
padding: 0 2px;
}
.nav-btn:hover {
background: #333;
border-color: #777;
}
.nav-empty,
.nav-center {
background: transparent;
border: none;
}
/* Gamepad layout inside the nav pad */
.nav-pad-inner {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
width: 216px;
box-sizing: border-box;
}
.nav-dpad {
display: grid;
grid-template-columns: 44px 44px 44px;
grid-template-rows: 36px 36px 36px;
gap: 4px;
margin: 0;
padding: 0;
}
.nav-dpad .nav-btn {
width: 44px;
height: 36px;
}
.nav-ud {
display: flex;
flex-direction: column;
gap: 6px;
}
.nav-ud .nav-btn {
width: 44px;
height: 36px;
font-size: 0.7em;
}
/* Desktop wide: keep text and inline nav side by side */
@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: 720px;
}
.navcell-ui {
flex: 0 0 auto;
margin-top: 8px;
}
}
/* Mobile: fixed bottom gamepad */
@media screen and (max-width: 759px) {
body.sk-navpad-on .navcell-ui {
position: fixed;
left: 50%;
bottom: 74px;
transform: translateX(-50%);
z-index: 2147483647;
margin: 0;
padding: 8px 10px;
background: rgba(0, 0, 0, 0.90);
border: 1px solid rgba(255, 255, 255, 0.10);
border-radius: 14px;
box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}
body.sk-navpad-on .navcell {
padding-bottom: 170px;
}
body.sk-navpad-off .navcell-ui {
display: none;
}
/* Force the navpad above any skin footer overlays */
body.sk-navpad-on .navcell-ui,
body.sk-navpad-on .navcell-ui * {
position: relative;
}
}