Files
intc-website/src/components/less/page.less
2025-12-10 22:56:08 +08:00

110 lines
1.9 KiB
Plaintext

@import './reset.less';
:root {
--color-bg: #edf7f7;
--color-text: #1f2a37;
--color-accent: #35A3BA;
--color-accent-strong: #0ea5b7;
--space-1: 4px;
--space-2: 8px;
--space-3: 12px;
--space-4: 16px;
--radius-1: 10px;
--radius-2: 16px;
--shadow-1: 0 2px 8px rgba(16,24,40,.06);
--shadow-2: 0 8px 24px rgba(16,24,40,.08);
--transition-fast: 180ms;
}
.zui-page {
width: 100%;
min-height: 100%;
margin: 0 auto;
font-family: "微软雅黑", "Helvetica Neue", Helvetica, Arial, sans-serif;
background: var(--color-bg);
color: var(--color-text);
a {
text-decoration: none;
}
a:hover {
color: #35A3BA;
text-decoration: underline;
}
.zui-nav-link {
text-decoration: none;
color: inherit;
margin-left: 12px;
}
.zui-nav-link:hover {
text-decoration: underline;
color: #35A3BA;
}
.zui-nav-link--mobile {
font-size: 12px;
}
.clear:after {
content: '';
display: table;
clear: both;
}
}
/* Drawer menu */
.zui-drawer-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.45);
z-index: 999;
}
.zui-drawer {
position: fixed;
top: 0;
right: 0;
width: 70%;
max-width: 300px;
height: 100%;
background: #fff;
box-shadow: -2px 0 8px rgba(0, 0, 0, 0.06);
z-index: 1000;
padding: 16px;
}
.zui-drawer__header {
font-size: 16px;
font-weight: bold;
margin-bottom: 12px;
color: #333;
}
.zui-drawer__list {
list-style: none;
margin: 0;
padding: 0;
}
.zui-drawer__list li {
padding: 12px 8px;
border-bottom: 1px solid #f0f0f0;
}
.zui-drawer__list li:hover {
background: #f6f8fa;
cursor: pointer;
}
@media (max-width: 600px) {
.zui-page {
overflow-x: hidden;
}
}
@media (min-width: 1200px) {
.zui-drawer,
.zui-drawer-overlay {
display: none;
}
}
@media (min-width: 1200px) {
.zui-page {
min-width: 1200px;
}
}