diff --git a/ZB.MOM.WW.Theme/src/ZB.MOM.WW.Theme/wwwroot/css/layout.css b/ZB.MOM.WW.Theme/src/ZB.MOM.WW.Theme/wwwroot/css/layout.css index dd30161..5283b09 100644 --- a/ZB.MOM.WW.Theme/src/ZB.MOM.WW.Theme/wwwroot/css/layout.css +++ b/ZB.MOM.WW.Theme/src/ZB.MOM.WW.Theme/wwwroot/css/layout.css @@ -209,8 +209,12 @@ color: var(--ink-faint); } .rail-btn { + /* Side inset, declared once. The full-width modifier below subtracts it from + 100%, so the two MUST agree; keeping it in a custom property means the rail + inset can be changed here alone. */ + --rail-btn-inset: 0.6rem; display: inline-block; - margin: 0 0.6rem; + margin: 0 var(--rail-btn-inset); padding: 0.3rem 0.7rem; font-size: 0.78rem; font-weight: 600; @@ -228,9 +232,10 @@ /* Full-width modifier for a rail-foot action (sign in / sign out), composed as class="rail-btn rail-btn-block". - The width is explicit — calc(100% - 1.2rem) — and NOT one of the two obvious - shorthands, because a rail foot typically holds BOTH element types: Sign In - is an , Sign Out is a form-submit