VoiceDialogue / frontend /src /style.scss
hzeng412
Add external mic array support, UI i18n, glass settings redesign, and fixes
afd6c89
Raw
History Blame Contribute Delete
5.47 kB
:root {
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
line-height: 1.5;
font-weight: 400;
color-scheme: light dark;
color: rgba(255, 255, 255, 0.87);
background-color: #242424;
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-text-size-adjust: 100%;
}
a {
font-weight: 500;
color: #646cff;
text-decoration: inherit;
}
a:hover {
color: #535bf2;
}
body {
margin: 0;
display: flex;
place-items: center;
min-width: 320px;
height: 100%;
min-height: auto;
color: #333;
background: #fff;
}
h1 {
font-size: 3.2em;
line-height: 1.1;
}
button {
border-radius: 8px;
border: 1px solid transparent;
padding: 0.6em 1.2em;
font-size: 1em;
font-weight: 500;
font-family: inherit;
background-color: #1a1a1a;
cursor: pointer;
transition: border-color 0.25s;
}
//button:hover {
// border-color: #646cff;
//}
//button:focus,
//button:focus-visible {
// outline: 4px auto -webkit-focus-ring-color;
//}
$FormMaxWidth: 1024px;
$FormItemWidth: 1022px;
.card {
border-bottom: solid 2px lightgray;
//border-radius: 4px;
align-items: center;
justify-content: center;
/* padding: 2em; */
margin-top: 40px;
display: flex;
max-width: $FormMaxWidth;
width: 100%;
}
.seg-title {
margin: 24px 0;
font-size: 20px;
font-weight: 500;
}
.seg-co {
width: 1022px;
text-align: left;
border-left: solid 6px midnightblue;
padding-left: 8px;
margin-left: 2px;
margin-top: 36px;
line-height: 24px;
}
#app {
margin: 0 auto;
padding: 0 ;
text-align: center;
width: 100%;
height: 100%;
}
.ant-btn {
padding: 4px 12px;
}
@media (prefers-color-scheme: light) {
:root {
color: #213547;
background-color: #ffffff;
}
a:hover {
color: #747bff;
}
button {
background-color: #f9f9f9;
}
}
.ant-card {
background: #f5f6fa;
height: 100%;
}
.ant-card-body {
padding: 24px 36px 12px 36px !important;
border-radius: 0 0 8px 8px;
}
.ant-card .ant-card-actions {
background-color: rgba(232, 232, 248, 0.8) !important;
}
.ant-popover {
max-width: 800px !important;
}
.ant-form-item {
background: transparent;
margin-bottom: 40px !important;
.ant-form-item-explain-error {
color: #ff4d4f;
text-align: left !important;
}
}
.ant-form-item-label {
label {
font-size: 18px !important;
color: #1a1a1a !important;
font-weight: 500 !important;
}
}
.ant-tooltip {
max-width: $FormItemWidth !important;
}
.ant-page-header-heading {
width: 1022px !important;
}
.highlight {
//background: #feffe6;
background: ghostwhite;
}
/* 折叠时隐藏整个 Sider */
.ant-layout-sider-collapsed {
width: 0 !important;
min-width: 0 !important;
overflow: hidden;
}
/* 隐藏折叠后的图标栏 */
.ant-layout-sider-collapsed .ant-menu-item,
.ant-layout-sider-collapsed .ant-menu-submenu-title {
display: none;
}
/* ============================================================
Liquid Glass —— 苹果风格玻璃拟态(全局)
半透明 + 背景模糊 + 柔和描边/阴影;圆角由主题 token 统一
============================================================ */
/* 弹窗使用 Ant 内置 fade 过渡(纯 opacity 动画、无 transform),
避免 transform 动画期间 backdrop-filter 失效导致的闪烁;面板与其模糊一起平滑淡入 */
/* 弹窗:磨砂玻璃面板 */
.ant-modal .ant-modal-content {
background: rgba(255, 255, 255, 0.62) !important;
backdrop-filter: blur(28px) saturate(140%);
-webkit-backdrop-filter: blur(28px) saturate(140%);
border: 1px solid rgba(255, 255, 255, 0.6);
border-radius: 22px !important;
box-shadow: 0 16px 48px rgba(31, 38, 135, 0.18);
}
.ant-modal .ant-modal-header {
background: transparent !important;
}
/* 遮罩:整屏磨砂——轻微变暗 + 背景模糊。
遮罩用 ant-fade(opacity)淡入,模糊随之平滑出现,背景文字与画面一起糊掉,不再"闪出去" */
.ant-modal-mask {
background: rgba(20, 22, 30, 0.12) !important;
backdrop-filter: blur(14px) saturate(120%);
-webkit-backdrop-filter: blur(14px) saturate(120%);
}
/* 输入类控件:半透明玻璃 */
.ant-select .ant-select-selector,
.ant-input,
textarea.ant-input,
.ant-input-affix-wrapper {
background: rgba(255, 255, 255, 0.45) !important;
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
border: 1px solid rgba(255, 255, 255, 0.7) !important;
}
/* 按钮:统一形状(圆角来自 token)+ 柔和阴影;默认按钮做玻璃质感,主按钮保持实色
文本/链接按钮(如音色试听的小喇叭)保持透明无阴影 */
.ant-btn:not(.ant-btn-text):not(.ant-btn-link) {
box-shadow: 0 2px 10px rgba(31, 38, 135, 0.10);
}
.ant-btn-default {
background: rgba(255, 255, 255, 0.5) !important;
border: 1px solid rgba(255, 255, 255, 0.75) !important;
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
}
.ant-btn-text {
box-shadow: none !important;
background: transparent !important;
}
/* 分段单选(中文/英文 等)两端圆角,去掉方正感 */
.ant-radio-group-solid .ant-radio-button-wrapper:first-child {
border-top-left-radius: 12px;
border-bottom-left-radius: 12px;
}
.ant-radio-group-solid .ant-radio-button-wrapper:last-child {
border-top-right-radius: 12px;
border-bottom-right-radius: 12px;
}