Files
new-cashier/jeepay-ui-merchant/src/global.less
2024-05-23 14:39:33 +08:00

643 lines
13 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
@import '../node_modules/ant-design-vue/es/style/themes/default.less';
// @import './default.less';
html,
body,
#app,
#root {
height: 100%;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
'Helvetica Neue', Helvetica, 'Microsoft YaHei', 'PingFang SC',
'Hiragino Sans GB', SimSun, sans-serif;
font-size: 13px;
letter-spacing: 1.6px;
letter-spacing: 0.4px;
overflow: auto;
}
// jee主题颜色class列表, 用于文字颜色
.jee-theme {
color: @jee-theme; //主题色
}
.jee-back {
color: @jee-back; //主要背景色
}
.jee-card-back {
color: @jee-card-back; //卡片底色
}
.jee-theme-mask {
color: @jee-theme-mask; //主体遮罩色(10% 透明度)
}
.jee-strengthen {
color: @jee-strengthen; //强化色
}
.jee-theme-hover {
color: @jee-theme-hover; //主题Hover
}
.jee-warning {
color: @jee-warning; //危险,强化警告色
}
.jee-inside-link {
color: @jee-inside-link; //内部链接
}
.jee-external-link {
color: @jee-external-link; //外部链接
}
// jee主题颜色class列表, 用于文字颜色
.jee-theme {
color: @jee-theme; //主题色
}
.jee-back {
color: @jee-back; //主要背景色
}
.jee-card-back {
color: @jee-card-back; //卡片底色
}
.jee-theme-mask {
color: @jee-theme-mask; //主体遮罩色(10% 透明度)
}
.jee-strengthen {
color: @jee-strengthen; //强化色
}
.jee-theme-hover {
color: @jee-theme-hover; //主题Hover
}
.jee-warning {
color: @jee-warning; //危险,强化警告色
}
.jee-inside-link {
color: @jee-inside-link; //内部链接
}
.jee-external-link {
color: @jee-external-link; //外部链接
}
// jee主题颜色class列表, 用于背景颜色
.jee-theme-back-color {
background-color: @jee-theme; //主题色
}
.jee-back-color {
background-color: @jee-back; //主要背景色
}
.jee-card-back-color {
background-color: @jee-card-back; //卡片底色
}
.jee-theme-mask-back-color {
background-color: @jee-theme-mask; //主体遮罩色(10% 透明度)
}
.jee-strengthen-back-color {
background-color: @jee-strengthen; //强化色
}
.jee-theme-hover-back-color {
background-color: @jee-theme-hover; //主题Hover
}
.jee-warning-back-color {
background-color: @jee-warning; //危险,强化警告色
}
.jee-inside-link-back-color {
background-color: @jee-inside-link; //内部链接
}
.jee-external-link-back-color {
background-color: @jee-external-link; //外部链接
}
.colorWeak {
filter: invert(80%);
}
// 内容区整体的背景颜色
.ant-layout {
height: auto;
min-height: 100vh;
background: @background-color;
.layout-basic {
height: 100vh;
min-height: 100vh;
}
}
canvas {
display: block;
}
body {
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
background: #f0f2f5;
}
ul,
ol {
list-style: none;
}
// 滚动条高度 和宽度
::-webkit-scrollbar {
width: 10px;
height: 10px;
}
// 滚动条颜色
::-webkit-scrollbar-thumb {
background: #b3b3b3;
}
// 滑块区域底色
::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0.03);
}
// 滚动条hover色
::-webkit-scrollbar-thumb:hover {
background: #a6a6a6;
}
// 滚动条选中色
::-webkit-scrollbar-thumb:active {
background: #8c8c8c;
}
// 结合 表格组件中的 :scroll ,让表格在收缩时,展示滚动条
.ant-table-body {
overflow-x: auto !important;
}
// /*显示滚动条上方以及下方的渐增按钮*/
// ::-webkit-scrollbar-button:start:decrement,
// ::-webkit-scrollbar-button:end:increment {
// display: block;
// }
// /* 定义垂直滚动条渐增按扭的样式 */
// ::-webkit-scrollbar-button:vertical:end:increment {
// background-image: url(~@/assets/svg/scroll_down.svg);
// background-size: cover;
// background-position: center;
// }
// /* 定义垂直滚动条渐减按扭的样式 */
// ::-webkit-scrollbar-button:vertical:start:decrement {
// background-image: url(~@/assets/svg/scroll_up.svg);
// background-size: cover;
// background-position: center;
// }
// /* 定义水平滚动条渐增按扭的样式 */
// ::-webkit-scrollbar-button:horizontal:end:increment {
// background-image: url(~@/assets/svg/scroll_right.svg);
// background-size: cover;
// background-position: center;
// }
// /* 定义水平滚动条渐减按扭的样式 */
// ::-webkit-scrollbar-button:horizontal:start:decrement {
// background-image: url(~@/assets/svg/scroll_left.svg);
// background-size: cover;
// background-position: center;
// }
.ant-drawer-title {
width: 100%;
}
.ant-drawer-header-title {
width: 100%;
}
// 隐藏面包屑底下的标题
.ant-page-header-heading {
display: none;
}
// 数据列表 样式
.table-alert {
margin-bottom: 16px;
}
.ant-table-thead > tr > th {
//表头背景色
background-color: #fafafa !important;
}
//表格下的分页样式
.ant-pagination-options-size-changer.ant-select {
//调整分页宽度避免展开时出现省略号
min-width: 110px;
}
// 数据列表 操作
.table-operator {
margin-bottom: 18px;
button {
margin-right: 8px;
}
}
// 表格隐藏空白行
.ant-table-measure-row {
display: none;
}
// 表格宽度
.ant-table-wrapper {
margin: 0 30px 15px 30px;
}
.ant-table-expanded-row-fixed {
padding: 0 !important;
}
// 数据列表 搜索条件
.table-page-search-wrapper {
border-top-left-radius: 10px;
border-top-right-radius: 10px;
padding: 20px;
// border-bottom: 1px solid #EEF0F6;
background: #fff;
.ant-form-inline {
.ant-form-item {
display: flex;
// margin-bottom: 24px;
margin-right: 0;
.ant-form-item-control-wrapper {
flex: 1 1;
display: inline-block;
vertical-align: middle;
}
> .ant-form-item-label {
line-height: 32px;
padding-right: 8px;
width: auto;
}
.ant-form-item-control {
height: 32px;
line-height: 32px;
}
}
}
.table-page-search-submitButtons {
display: block;
white-space: nowrap;
}
}
//
.table-page-search-wrapper
.ant-form-inline
.ant-form-item
.ant-form-item-control {
height: 34px;
line-height: 34px;
}
.ant-table {
border: 1px solid #f0f0f0;
border-bottom: none;
.ant-table-expanded-row-fixed {
max-width: 100%;
margin: 0 !important;
}
}
@media (max-width: @screen-xs) {
.ant-table {
width: 100%;
overflow-x: auto;
&-thead > tr,
&-tbody > tr {
> th,
> td {
white-space: pre;
> span {
display: block;
}
}
}
}
}
// jee自定义卡片样式
.jeepay-card-content {
box-shadow: 0 6px 12px rgb(140 152 164 / 8%);
border: 0.0625rem solid #e7eaf3 !important;
}
// 删除卡片的内边距
.ant-card-body {
padding: 0 !important;
}
// 增加内容区域的边框圆角
.ant-card {
box-shadow: 0 6px 12px rgb(140 152 164 / 8%);
border: 0.0625rem solid #e7eaf3 !important;
border-radius: 10px !important;
overflow: hidden;
}
// table页单独的card样式
.table-card {
margin: 0 0 !important;
}
.ant-tabs-nav-list {
margin-left: 20px;
}
// 下拉框 与 下拉菜单
.ant-select-dropdown,
.ant-dropdown-menu {
padding: 10px 10px 5px !important;
box-sizing: border-box;
background-color: rgba(255, 255, 255, 0.85) !important;
backdrop-filter: blur(15px);
box-shadow: 0 10px 30px rgba(53, 65, 77, 0.15) !important;
}
// .ant-select-item, .ant-dropdown-menu-item {
// margin-bottom: 5px !important;
// }
.ant-dropdown-menu-item {
padding: 0 12px !important;
height: 40px;
line-height: 40px !important;
}
.ant-select-item-option-active,
.ant-dropdown-menu-item:hover {
border-radius: 3px;
background: @primary-glass !important;
color: var(--ant-primary-color) !important;
}
.ant-select-item-option-selected:not(.ant-select-item-option-disabled) {
border-radius: 3px;
background-color: var(--ant-primary-color) !important;
color: #fff !important;
}
.ant-select-selector {
box-shadow: none !important; // 下拉选择框取消boxshadow
}
.ant-select:not(.ant-select-customize-input) .ant-select-selector {
height: 34px !important;
}
.ant-select:not(.ant-select-customize-input)
.ant-select-selector
.ant-select-selection-search-input {
height: 100%;
}
// 文字分割线去掉默认的上下边距
// .ant-divider-horizontal {
// margin: 0 !important
// }
// 登录页输入框fcous hover事件边框为jee主题蓝
.ant-input-affix-wrapper:hover .ant-input:not(.ant-input-disabled) {
border-color: @jee-theme;
}
.ant-input:focus {
border-color: @jee-theme;
box-shadow: none !important;
}
// 抽屉,按钮板块,居中
.drawer-btn-center {
// display: flex;
// justify-content: space-between;
position: absolute;
right: 0px;
bottom: 0px;
width: 100%;
border-top: 1px solid rgb(233, 233, 233);
padding: 10px 16px;
background: rgb(255, 255, 255);
text-align: center;
z-index: 160;
&:first-child {
margin-right: 80px;
}
button {
margin: 0;
padding: 3px 20px;
}
}
.els {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
// 最外层的大卡片 内容区域去掉最外层的magin 24px ,改为 padding 15px
.ant-pro-basicLayout-content {
//60px的顶部padding可以撑开固定header下的区域
padding: 0 15px;
margin-bottom: 24px !important;
}
// 按条件筛选
.conditional-filtering {
margin: 0 10px 5px;
width: 100%;
}
// 向下50margin
.m-b-50 {
margin-bottom: 50px !important;
}
// 向下20 margin
.m-b-20 {
margin-bottom: 20px !important;
}
.ant-table-align-left {
padding-left: 38px;
}
// 向下的30外边距
.mg-b-30 {
margin-bottom: 30px;
}
// 表格,搜索框板块布局
.table-head-ground {
display: flex;
justify-content: start;
flex-wrap: wrap;
}
// 404 500 403
.result-err {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
width: 100%;
overflow: auto;
div {
margin: 20px 0;
text-align: center;
font-size: 16px;
p.big-text {
font-size: 36px;
font-weight: 700;
}
}
}
// 字体图标居中
.bi {
display: flex;
justify-content: center;
align-items: center;
transition: 0.3s ease;
}
// 去掉输入框获得焦点时 阴影
.ant-input:focus,
.ant-input:active {
box-shadow: none;
}
// 左侧公用margin
.ref-left-10 {
margin-left: 10px;
}
// 表格固定列的边框阴影
.ant-table-ping-right .ant-table-cell-fix-right-first::after,
.ant-table-ping-right .ant-table-cell-fix-right-last::after,
.ant-table-ping-left .ant-table-cell-fix-left-first::after,
.ant-table-ping-left .ant-table-cell-fix-left-last::after {
box-shadow: inset -1px 0 1px 0px rgba(0, 0, 0, 0.07) !important;
}
.ant-table-cell-fix-left-first::after,
.ant-table-cell-fix-left-last::after {
width: 1px !important;
}
// 表格标题
.table-name {
// padding: 0 0 10px 10px;
}
// jee通用抽屉内容标题
.jee-drawer-title {
font-size: 16px;
font-weight: 600;
width: 100%;
margin-bottom: 15px;
}
// 表格头部筛选板块的响应式布局
.table-layer {
display: flex;
flex-wrap: wrap;
flex-direction: row;
justify-content: flex-start;
align-items: center;
width: 100%;
.table-search-item {
width: 100%;
padding: 10px;
height: auto;
display: flex;
justify-content: center;
.ant-btn {
flex-grow: 1;
height: 34px !important;
}
}
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
.table-layer {
.table-search-item {
width: calc(100% / 3);
}
}
}
@media screen and (min-width: 1025px) and (max-width: 1366px) {
.table-layer {
.table-search-item {
width: calc(100% / 4);
}
}
}
@media screen and (min-width: 1367px) and (max-width: 1600px) {
.table-layer {
.table-search-item {
width: calc(100% / 5);
}
}
}
@media screen and (min-width: 1601px) {
.table-layer {
.table-search-item {
width: calc(100% / 7);
}
}
}
// 数据统计部分样式
.statistics-list {
display: flex;
flex-direction: row;
justify-content: space-around;
.item {
.title {
color: #808080;
margin-bottom: 10px;
}
.amount {
margin-bottom: 10px;
.amount-num {
padding-right: 3px;
font-weight: 600;
font-size: 20px;
}
}
.symbol {
padding-right: 3px;
}
.detail-text {
color: var(--ant-primary-color);
padding-left: 5px;
}
}
.line {
width: 1px;
height: 100%;
border-right: 1px solid #efefef;
}
}
// 菜单栏颜色
// .ant-menu-submenu > .ant-menu {
// background-color:transparent !important;
// }
.ant-menu-sub.ant-menu-inline {
background-color: transparent !important;
}
.ant-pro-sider-light {
background-color: #f2f5f7 !important;
}
.ant-layout-sider-light {
background: transparent !important;
}
// 全局提示文字样式
.jeepay-tip-text {
font-size: 10px !important;
border-radius: 5px;
background: #ffeed8;
color: #c57000 !important;
padding: 5px 10px;
display: inline-block;
max-width: 100%;
position: relative;
margin-top: 15px;
&::before {
content: '';
width: 0;
height: 0;
border: 10px;
border-style: solid;
border-color: transparent transparent #ffeed8 transparent;
position: absolute;
top: -20px;
left: 30px;
}
}
.ant-badge-status-processing,
.ant-switch-checked {
background-color: var(--ant-primary-color) !important;
}