Traced against the running site (docker theme at AKSRT-theme) with real
computed styles:
- theme_main_radius defaulted to 12, so --main-radius was 12px and every
dropdown panel, card and button was rounder than the reference, which
sets 8px. Default is now 8 in the runtime reader and both schemas.
- The public bundle loads after main.min.css. Its bare img rule replaced
the inline image baseline the menu relies on, and html{overflow-x} made
the root a clipping context that crops the fixed senior mega menu.
Reset is now scoped to content; the horizontal-overflow guard is on body.
- The senior mega menu renders a .container inside the dropdown where the
reference keeps Bootstrap's 15px gutter; the padding-free site-shell
.container rule stripped it, running the card/link grid to the edges.
Rebuilt public.css / public.min.css and the admin SPA.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
131 lines
2.4 KiB
CSS
131 lines
2.4 KiB
CSS
/**
|
|
* Jio Reset
|
|
* 现代精简 reset,结合 box-sizing 与 a11y 友好的默认值。
|
|
*/
|
|
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html {
|
|
font-size: 16px;
|
|
scroll-behavior: smooth;
|
|
-webkit-text-size-adjust: 100%;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
text-rendering: optimizeLegibility;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
font-family: var(--font-body);
|
|
font-size: var(--text-base);
|
|
line-height: var(--leading-normal);
|
|
background-color: var(--surface-page);
|
|
color: var(--color-ink-2);
|
|
transition: background-color 0.25s ease, color 0.25s ease;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
/* 媒体元素
|
|
*
|
|
* 导航树排除在外:main.css 的导航依赖 Bootstrap 的 inline 图片基线
|
|
* (img{vertical-align:middle} + max-height),裸 img 的 display:block
|
|
* 会把菜单图标和图文卡片从行内排版里拽出来,撑乱菜单行的高度与基线。 */
|
|
img,
|
|
picture,
|
|
video,
|
|
canvas {
|
|
display: block;
|
|
max-width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
.header img,
|
|
.mobile-header img {
|
|
display: inline;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
/* 表单元素继承字体 */
|
|
input,
|
|
button,
|
|
textarea,
|
|
select {
|
|
font: inherit;
|
|
color: inherit;
|
|
}
|
|
|
|
button {
|
|
background: none;
|
|
border: 0;
|
|
padding: 0;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* 链接 */
|
|
a {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
transition: color var(--dur-fast) var(--ease);
|
|
}
|
|
|
|
a:hover {
|
|
color: var(--color-primary);
|
|
}
|
|
|
|
/* 取消浏览器默认聚焦描边;组件按需声明自己的焦点状态。 */
|
|
:focus {
|
|
outline: none;
|
|
}
|
|
|
|
/* 选区色 */
|
|
::selection {
|
|
background: var(--color-primary-soft);
|
|
color: var(--color-ink);
|
|
}
|
|
|
|
/* 屏幕阅读器隐藏 */
|
|
.screen-reader-text,
|
|
.sr-only {
|
|
position: absolute !important;
|
|
width: 1px;
|
|
height: 1px;
|
|
padding: 0;
|
|
margin: -1px;
|
|
overflow: hidden;
|
|
clip: rect(0, 0, 0, 0);
|
|
white-space: nowrap;
|
|
border: 0;
|
|
}
|
|
|
|
.screen-reader-text:focus,
|
|
.sr-only:focus {
|
|
position: fixed !important;
|
|
top: 16px;
|
|
left: 16px;
|
|
width: auto;
|
|
height: auto;
|
|
padding: 8px 16px;
|
|
background: var(--surface-1);
|
|
color: var(--color-ink);
|
|
z-index: 100000;
|
|
clip: auto;
|
|
box-shadow: var(--shadow-lg);
|
|
border-radius: var(--radius);
|
|
}
|
|
|
|
/* 减少动效偏好 */
|
|
@media (prefers-reduced-motion: reduce) {
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
animation-duration: 0.01ms !important;
|
|
animation-iteration-count: 1 !important;
|
|
transition-duration: 0.01ms !important;
|
|
scroll-behavior: auto !important;
|
|
}
|
|
}
|