branded header, nav, footer for OTB
https://outsidethebox.top
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
300 lines
4.7 KiB
300 lines
4.7 KiB
/* ===== OTB shared branding ===== */ |
|
html[data-theme="dark"]{ |
|
--otb-bg:#081225; |
|
--otb-bg2:#09172d; |
|
--otb-text:#e8eefc; |
|
--otb-muted:#aab6d6; |
|
--otb-panel:rgba(18,24,37,.98); |
|
--otb-panel-soft:rgba(18,24,37,.78); |
|
--otb-line:rgba(255,255,255,.08); |
|
} |
|
|
|
html[data-theme="light"]{ |
|
--otb-bg:#f4f7fb; |
|
--otb-bg2:#eef3f9; |
|
--otb-text:#0f172a; |
|
--otb-muted:#475569; |
|
--otb-panel:rgba(255,255,255,.98); |
|
--otb-panel-soft:rgba(255,255,255,.88); |
|
--otb-line:rgba(15,23,42,.10); |
|
} |
|
|
|
body{ |
|
padding-bottom:56px; |
|
} |
|
|
|
.site-container{ |
|
max-width:1100px; |
|
margin:0 auto; |
|
padding:20px 18px 0 18px; |
|
} |
|
|
|
.site-header{ |
|
width:100%; |
|
} |
|
|
|
.site-nav{ |
|
display:flex; |
|
align-items:center; |
|
justify-content:space-between; |
|
gap:18px; |
|
padding:12px 0 22px 0; |
|
} |
|
|
|
.site-brand{ |
|
display:flex; |
|
align-items:center; |
|
gap:14px; |
|
text-decoration:none; |
|
color:inherit; |
|
} |
|
|
|
.site-brand img{ |
|
height:60px; |
|
width:auto; |
|
display:block; |
|
object-fit:contain; |
|
background:rgba(255,255,255,0.92); |
|
padding:6px 12px; |
|
border-radius:999px; |
|
box-shadow:0 8px 24px rgba(0,0,0,0.35); |
|
} |
|
|
|
.site-title{ |
|
display:flex; |
|
flex-direction:column; |
|
line-height:1.1; |
|
} |
|
|
|
.site-title strong{ |
|
letter-spacing:.2px; |
|
color:var(--otb-text); |
|
} |
|
|
|
.site-title span{ |
|
color:var(--otb-muted); |
|
font-size:13px; |
|
margin-top:2px; |
|
} |
|
|
|
.site-nav-right{ |
|
display:flex; |
|
align-items:center; |
|
gap:14px; |
|
flex-wrap:wrap; |
|
justify-content:flex-end; |
|
} |
|
|
|
.site-navlinks{ |
|
display:flex; |
|
gap:12px; |
|
flex-wrap:wrap; |
|
justify-content:flex-end; |
|
align-items:center; |
|
} |
|
|
|
.site-navlinks > a, |
|
.dropdown-toggle{ |
|
text-decoration:none; |
|
padding:8px 10px; |
|
border-radius:12px; |
|
color:var(--otb-muted); |
|
border:1px solid transparent; |
|
} |
|
|
|
.site-navlinks > a:hover, |
|
.dropdown-toggle:hover{ |
|
color:var(--otb-text); |
|
border-color:var(--otb-line); |
|
background:rgba(255,255,255,.03); |
|
} |
|
|
|
.dropdown{ |
|
position:relative; |
|
display:inline-block; |
|
} |
|
|
|
.dropdown-toggle{ |
|
display:inline-block; |
|
cursor:pointer; |
|
} |
|
|
|
.dropdown-menu{ |
|
position:absolute; |
|
top:calc(100% + 8px); |
|
right:0; |
|
min-width:220px; |
|
display:none; |
|
padding:10px; |
|
border-radius:14px; |
|
background:var(--otb-panel); |
|
border:1px solid var(--otb-line); |
|
box-shadow:0 16px 40px rgba(0,0,0,.35); |
|
z-index:9999; |
|
} |
|
|
|
.dropdown:hover .dropdown-menu, |
|
.dropdown:focus-within .dropdown-menu{ |
|
display:block; |
|
} |
|
|
|
.dropdown-menu a{ |
|
display:block; |
|
padding:9px 10px; |
|
border-radius:10px; |
|
color:var(--otb-muted); |
|
text-decoration:none; |
|
white-space:nowrap; |
|
margin:0; |
|
} |
|
|
|
.dropdown-menu a + a{ |
|
margin-top:4px; |
|
} |
|
|
|
.dropdown-menu a:hover{ |
|
color:var(--otb-text); |
|
background:rgba(255,255,255,.04); |
|
} |
|
|
|
.otb-theme-switch{ |
|
position:relative; |
|
display:inline-block; |
|
width:54px; |
|
height:30px; |
|
flex:0 0 auto; |
|
} |
|
|
|
.otb-theme-switch input{ |
|
opacity:0; |
|
width:0; |
|
height:0; |
|
} |
|
|
|
.otb-theme-slider{ |
|
position:absolute; |
|
inset:0; |
|
cursor:pointer; |
|
background:rgba(255,255,255,.10); |
|
border:1px solid var(--otb-line); |
|
transition:.2s; |
|
border-radius:999px; |
|
} |
|
|
|
.otb-theme-slider:before{ |
|
content:""; |
|
position:absolute; |
|
height:22px; |
|
width:22px; |
|
left:3px; |
|
top:3px; |
|
background:var(--otb-text); |
|
transition:.2s; |
|
border-radius:50%; |
|
} |
|
|
|
.otb-theme-switch input:checked + .otb-theme-slider:before{ |
|
transform:translateX(24px); |
|
} |
|
|
|
.otb-statusbar{ |
|
position:fixed; |
|
left:0; |
|
right:0; |
|
bottom:0; |
|
z-index:9999; |
|
display:flex; |
|
align-items:center; |
|
justify-content:center; |
|
min-height:42px; |
|
padding:8px 14px; |
|
background:var(--otb-panel); |
|
border-top:1px solid var(--otb-line); |
|
backdrop-filter:blur(8px); |
|
box-shadow:0 -8px 24px rgba(0,0,0,.28); |
|
} |
|
|
|
.otb-statusbar-inner{ |
|
width:100%; |
|
max-width:1100px; |
|
display:flex; |
|
gap:10px; |
|
align-items:center; |
|
justify-content:center; |
|
flex-wrap:wrap; |
|
text-align:center; |
|
color:var(--otb-muted); |
|
font-size:12px; |
|
line-height:1.35; |
|
} |
|
|
|
.otb-statusbar strong{ |
|
color:var(--otb-text); |
|
font-weight:700; |
|
} |
|
|
|
.otb-statusbar a{ |
|
color:#62e6b7; |
|
text-decoration:none; |
|
font-weight:600; |
|
} |
|
|
|
.otb-statusbar a:hover{ |
|
text-decoration:underline; |
|
} |
|
|
|
.otb-dot{ |
|
width:6px; |
|
height:6px; |
|
border-radius:999px; |
|
display:inline-block; |
|
background:rgba(255,255,255,.25); |
|
flex:0 0 auto; |
|
} |
|
|
|
@media (max-width: 900px){ |
|
.site-nav{ |
|
align-items:flex-start; |
|
flex-direction:column; |
|
} |
|
|
|
.site-nav-right{ |
|
width:100%; |
|
justify-content:space-between; |
|
} |
|
|
|
.site-navlinks{ |
|
justify-content:flex-start; |
|
} |
|
|
|
.dropdown{ |
|
width:100%; |
|
} |
|
|
|
.dropdown-toggle{ |
|
width:100%; |
|
} |
|
|
|
.dropdown-menu{ |
|
position:static; |
|
right:auto; |
|
top:auto; |
|
min-width:100%; |
|
margin-top:6px; |
|
} |
|
|
|
.site-brand img{ |
|
height:54px; |
|
} |
|
} |
|
|
|
@media (max-width: 700px){ |
|
body{ |
|
padding-bottom:72px; |
|
} |
|
|
|
.otb-statusbar-inner{ |
|
font-size:11px; |
|
line-height:1.25; |
|
} |
|
}
|
|
|