Files
gao-customer-h5/src/assets/styles/global.less
T
2026-09-23 13:40:45 +08:00

215 lines
3.1 KiB
Plaintext

:root {
--td-cell-group-title-padding-left: 32px;
}
html,
body,
#root {
--td-swiper-border-radius: 0;
height: 100%;
min-height: 100vh;
}
html {
color-scheme: light;
background: #F5F5F8;
}
html.theme-dark {
color-scheme: dark;
background: #10161f;
}
body {
margin: 0;
color: #111827;
background: #F5F5F8;
font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
transition: background .2s ease, color .2s ease;
}
html.theme-dark body {
color: #f3f4f6;
background: #10161f;
}
* {
box-sizing: border-box;
}
.loading {
margin: 1rem auto;
}
.cell-button {
--td-button-border-radius: 1rem;
width: calc(100% - 2rem);
margin: 0 1rem;
}
.content-margin {
margin: 0 1rem;
}
.form {
border-radius: 1rem;
}
.form-tips {
color: var(--td-text-color-secondary);
font-size: .8125rem;
line-height: 1.5;
}
.empty-cell-title-margin {
--td-spacer-2: .25rem;
}
.t-input--password {
letter-spacing: 0;
}
.t-form__label {
color: var(--td-gray-color-9);
flex: none;
min-width: unset;
white-space: nowrap;
text-overflow: unset;
}
.t-cell {
.t-cell__title {
.t-cell__title-text {
min-width: unset;
white-space: nowrap;
text-overflow: unset;
}
}
}
.t-dialog__footer {
gap: 1rem;
}
.t-pull-down-refresh {
height: auto;
overflow: visible;
}
.t-dropdown-menu {
&:after {
display: none !important;
}
:deep(.t-dropdown-menu__item) {
min-width: 0;
}
:deep(.t-dropdown-menu__title) {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
.center-tips {
color: var(--tui-gray);
margin: 0 auto;
padding: .75rem;
font-size: .875rem;
text-align: center;
}
.avatar {
flex: none;
display: block;
border-radius: .875rem !important;
&.fallback {
color: #FFF;
display: flex;
font-size: 1.25rem;
background: var(--td-brand-color);
align-items: center;
font-weight: 600;
justify-content: center;
}
}
.t-popover {
.t-popover__content {
border-radius: 1rem;
}
}
.fix-last-cell-line .item:last-child .t-cell:after {
display: none;
}
.fix-cell-title-clip {
.t-cell__title {
flex: 1 1 0;
min-width: 0;
overflow: hidden;
}
}
.glass-header,
.filters.glass {
&::after {
content: "";
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
position: absolute;
mask: linear-gradient(to top, transparent 0%, #000 60%);
-webkit-mask: linear-gradient(to top, transparent 0%, #000 60%);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
}
}
.glass-bottom {
&::after {
content: "";
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
position: absolute;
mask: linear-gradient(to bottom, transparent 0%, #000 60%);
-webkit-mask: linear-gradient(to bottom, transparent 0%, #000 60%);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
}
}
.entrance-fade-up-enter-active {
transition: opacity .4s ease, transform .4s ease;
transition-delay: var(--entrance-delay, 0ms);
}
.entrance-fade-up-enter-from {
opacity: 0;
transform: translate3d(0, 1rem, 0);
}
.entrance-fade-up-enter-to {
opacity: 1;
transform: translate3d(0, 0, 0);
}