Files
laws_chery_client/src/assets/less/common.less
T

1061 lines
19 KiB
Plaintext

/*用户信息部分的高度*/
@user-info-height: var(--user-info-height, 59px);
/*面包屑的高度,高度21,上下margin24 2023-12-06,面包屑挪到用户信息那一栏了,现在12px是margin的数值*/
@breadcrumb-height: var(--breadcrumb-height, 12px);
@footer-height: var(--footer-height, 38px);
/* 页面不出全局滚动条的高度,如果在vue文件使用,就只能在style里引入common.less */
@page-content-h: calc(100vh - @user-info-height - @breadcrumb-height - @footer-height);
/*列表上方操作按钮区域*/
/*.ant-card-body .table-operator {
margin-bottom: 8px;
}*/
/* 列表可拖拽改变列宽 begin */
.nio-header-th {
position: relative;
isolation: isolate;
}
.nio-drag-handler {
position: absolute;
right: 0;
top: 0;
height: 100%;
width: 5px;
z-index: 1;
border-right: 1px #e8e8e8 solid;
}
.nio-drag-handler:hover,
.nio-drag-handler:focus {
cursor: col-resize !important;
border-right: 2px solid #0bd9d9 !important;
}
/* 列表可拖拽改变列宽 end */
/*列表上方操作按钮区域*/
.ant-card-body .table-operator,
.table-operator {
margin-bottom: 15px;
font-size: 14px;
font-weight: 400;
color: #040B29;
}
.operator-text {
cursor: pointer;
margin-right: 53px;
display: inline-block;
.ant-upload {
font-size: 14px;
font-weight: 400;
color: #040B29;
}
}
.operator-text:last-child {
margin-right: 16px;
}
/deep/ .ant-table-pagination.ant-pagination {
margin-bottom: 0;
}
/** Button按钮间距 */
.table-operator .ant-btn {
margin: 0 8px 8px 0;
}
.table-operator .ant-btn-group .ant-btn {
margin: 0;
}
.table-operator .ant-btn-group .ant-btn:last-child {
margin: 0 8px 8px 0;
}
/*列表td的padding设置 可以控制列表大小*/
.ant-table-tbody .ant-table-row td {
padding-top: 15px;
padding-bottom: 15px;
}
// 表格内操作列按钮的样式
.ant-table-tbody .table-action a {
margin: 0 8px;
}
.ant-table-tbody .table-action a:nth-of-type(1) {
margin-left: 0;
}
.operate-icon-btn {
color: @primary-color;
}
.operate-icon-more {
cursor: pointer;
}
.operate-btn {
display: flex;
align-items: center;
font-family: PingFang SC-Regular, PingFang SC, sans-serif;
color: @primary-color;
&-icon {
margin-right: 8px;
color: @primary-color;
}
}
.operate-del-btn {
color: #C30D23 !important;
.operate-btn-icon {
color: #C30D23 !important;
}
}
.operate-del-btn[disabled] {
color: rgba(0, 0, 0, 0.25) !important;
.operate-btn-icon {
color: rgba(0, 0, 0, 0.25) !important;
}
}
.del-btn-disabled {
color: rgba(0, 0, 0, 0.25) !important;
.operate-btn-icon {
color: rgba(0, 0, 0, 0.25) !important;
}
}
.action-span-cell > a:first-child {
margin-left: 0;
}
/*列表页面弹出modal*/
.ant-modal-cust-warp {
height: 100%
}
/*弹出modal Y轴滚动条*/
.ant-modal-cust-warp .ant-modal-body {
height: calc(100% - 110px) !important;
overflow-y: auto
}
/*弹出modal 先有content后有body 故滚动条控制在body上*/
.ant-modal-cust-warp .ant-modal-content {
overflow-y: hidden
}
/*列表中有图片的加这个样式 参考用户管理*/
.anty-img-wrap {
height: 25px;
position: relative;
}
.anty-img-wrap > img {
max-height: 100%;
}
/*列表中范围查询样式*/
.query-group-cust {
width: calc(50% - 10px)
}
.query-group-split-cust:before {
content: "~";
width: 20px;
display: inline-block;
text-align: center
}
/*erp风格子表外框padding设置*/
.ant-card-wider-padding.cust-erp-sub-tab > .ant-card-body {
padding: 5px 12px
}
/* 内嵌子表背景颜色 */
.j-inner-table-wrapper /deep/ .ant-table-expanded-row .ant-table-wrapper .ant-table-tbody .ant-table-row {
background-color: #FFFFFF;
}
/**隐藏样式-modal确定按钮 */
.jee-hidden {
display: none
}
// 抽屉按钮区域
.drawer-bootom-button {
position: absolute;
bottom: 0;
z-index: 100;
width: 100%;
border-top: 1px solid #e8e8e8;
padding: 10px 16px;
text-align: right;
left: 0;
background: #fff;
border-radius: 0 0 2px 2px;
}
// 新增编辑表单样式
.form-add {
margin-bottom: 40px;
/deep/ .ant-form-item-label {
width: 130px;
}
/deep/ .ant-form-item-control-wrapper {
display: inline-block;
width: 100%;
}
}
.ant-drawer-content-wrapper .ant-form-item-label,
.j-modal-box .ant-form-item-label {
overflow: hidden;
text-overflow: ellipsis;
}
.box-title-text {
line-height: 1.4;
display: flex;
/*align-items: center;*/
.title-text {
width: 114px;
text-align: right;
display: inline-block;
font-weight: 500;
font-size: 14px;
margin-right: 16px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
height: 42px;
line-height: 42px;
.required {
color: red;
margin-right: 4px;
}
}
.item-model {
width: calc(100% - 130px);
display: inline-block;
margin-top: 2px;
//height: 40px;
margin-bottom: 24px;
/deep/ .ant-form-item-control-wrapper {
width: 100%;
}
}
.item-model-textarea {
width: calc(100% - 130px);
display: inline-block;
margin-top: 2px;
/deep/ .ant-form-item-control-wrapper {
width: 100% !important;
}
}
/*.box-input {
display: inline-block;
height: 38px;
width: 100%;
/deep/ .ant-select-selection--single {
height: 38px;
}
/deep/ .ant-select-selection--multiple {
height: 38px;
.ant-select-selection__rendered > ul > li {
margin-top: 6px;
}
}
/deep/ .ant-select-selection__rendered {
line-height: 38px;
height: 38px;
}
/deep/ .ant-calendar-picker {
line-height: 38px;
height: 38px;
}
/deep/ .ant-calendar-picker-input {
height: 38px;
}
/deep/ .ant-input-number-input-wrap {
line-height: 38px;
height: 38px;
}
}*/
}
.title-text-text {
margin-top: 9px;
}
.header-text {
font-size: 16px;
font-weight: bold;
margin-left: 15px;
/*border-bottom: 1px #d9d9d9 dashed;*/
height: 30px;
margin-bottom: 30px;
}
.button-text {
//height: 38px;
width: calc(100% - 100px);
//line-height: 38px;
background: #fff;
border: 1px @primary-color solid;
color: @primary-color;
}
// 新增编辑表单样式--完
// 左树右表布局
.left-tree-div {
.div-left {
/*height: 100%;*/
width: 230px;
float: left;
padding-right: 20px;
/*border-right: 1px solid #E6E7EC;*/
overflow-y: auto;
}
.div-right {
padding-left: 20px;
width: calc(100% - 230px);
float: right;
border-left: 1px solid #E6E7EC;
/*flex: 1;*/
.right-search-header {
margin-bottom: 20px;
.table-page-search-submitButtons {
display: flex;
}
}
}
}
/*表格中换行文本的样式*/
.table-text {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* 表格中需要标红的样式 */
.table-red-text {
color: @primary-color;
}
/* 表格中换行链接的样式 */
.link-a {
display: inline-block;
width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.can-click-table-text {
color: @primary-color;
cursor: pointer;
}
/* switch的样式 */
.table-operator-tab {
width: fit-content;
background-color: #F0F2F4;
border-radius: 4px;
overflow: hidden;
}
.table-operator-tab a {
border-radius: 4px;
display: inline-flex;
justify-content: center;
align-items: center;
width: 94px;
height: 32px;
color: #4E5969;
}
.table-operator-tab a.table-operator-tab-active {
background-color: @primary-color;
color: #FFFFFF;
}
.table-operator-tab a:not(:first-child) {
//transform: translateX(-8px);
margin-left: -8px;
}
.table-operator-tab .switch-item-en {
width: 200px;
}
/* switch的样式--end */
/*分页的样式start*/
.ant-pagination-prev, .ant-pagination-next, .ant-pagination-jump-prev, .ant-pagination-jump-next {
height: 24px !important;
min-width: 24px !important;
line-height: 24px !important;
}
.ant-pagination-item {
/* 不能设置宽度,设置宽度三位的时候选择标准弹框会飘 */
height: 24px !important;
min-width: 24px !important;
line-height: 22px !important;
a {
padding: 0 !important;
}
}
.ant-pagination-item-active a {
color: #ffffff !important;
background-color: @primary-color;
}
.ant-pagination-options-size-changer.ant-select {
height: 24px !important;
.ant-select-selection--single {
height: 24px;
.ant-select-selection__rendered {
line-height: 22px;
}
}
}
.ant-pagination-options-quick-jumper {
height: 24px !important;
line-height: 22px !important;
}
.ant-pagination-options-quick-jumper input {
height: 24px !important;
}
/*分页的样式end*/
/*页面左右布局*/
.page-left-right-layout {
height: @page-content-h;
width: 100%;
.ant-card-body {
width: 100%;
height: 100%;
padding: 0;
display: flex;
}
.page-left-box {
width: 248px;
height: 100%;
border-right: 1px solid #E5E6EB;
padding: 24px;
box-sizing: border-box;
}
.page-right-box {
flex: 1;
width: 0;
height: 100%;
padding: 24px;
box-sizing: border-box;
overflow-y: auto;
}
}
.page-tree-box {
height: 100%;
overflow: auto;
}
.page-tree-box-has-search {
height: calc(100% - 40px);
}
/*展开收起按钮颜色*/
.ant-tree.ant-tree-show-line li span.ant-tree-switcher {
color: #86909c;
}
.ant-tree-title {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
width: 100%;
height: 100%;
display: inline-block;
}
// 文件夹节点使用自定义
.tree-node {
display: flex;
align-items: center;
width: 100%;
&-icon {
width: 16px;
margin-right: 4px;
}
&-title {
flex: 1;
width: 0;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
.tree-node-custom-title {
display: inline-block;
width: 100%;
height: 100%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
flex: 1;
max-width: 140px;
}
// 鼠标移入树节点样式修改
.ant-tree li .ant-tree-node-content-wrapper:hover {
background: #FFFFFF;
box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.1);
border-radius: 4px 4px 4px 4px;
opacity: 1;
margin-left: -24px;
padding-left: 29px;
}
.ant-tree li .ant-tree-node-content-wrapper.ant-tree-node-selected {
//background-color: #ffd9d1 !important;
}
.tree-operate-node {
display: flex;
width: 100%;
height: 100%;
align-items: center;
&-btn-box {
display: inline-block;
.tree-operate-node-btn {
display: inline-block;
}
}
&-btn-box-hide {
opacity: 0;
pointer-events: none;
}
&-btn {
width: 24px;
height: 24px;
background: rgba(0, 100, 250, 0.08);
border-radius: 2px 2px 2px 2px;
border: none;
margin-left: 4px;
padding: 0;
/deep/ .anticon {
margin-top: 2px;
color: @primary-color;
}
i {
color: @primary-color;
height: 20px;
}
}
}
.tree-search-box {
display: flex;
align-items: center;
margin-bottom: 8px;
}
.tree-search-order {
font-size: 18px;
margin-left: 8px;
cursor: pointer;
}
.tree-search {
margin-bottom: 8px;
}
/*抽屉样式修改*/
.custom-drawer-style {
height: 100%;
overflow: auto;
.ant-drawer-body {
height: calc(100% - 55px);
padding: 0;
}
&-scroll {
height: calc(100% - 61px);
overflow: auto;
padding: 24px;
}
&-bottom-btn {
height: 60px;
padding: 12px 24px;
opacity: 1;
border-top: 1px solid #E5E6EB;
text-align: right;
.ant-btn {
margin-left: 12px;
}
.ant-btn:first-child {
margin-left: 0;
}
}
}
/*详情样式start*/
.detail-page {
padding: 24px;
}
.detail-page-title {
font-size: 20px;
font-family: PingFang SC-Medium, PingFang SC, sans-serif;
color: #1D2129;
font-weight: 600;
text-align: center;
margin-bottom: 24px;
}
.detail-page-part {
border-radius: 8px;
border: 1px solid #E5E6EB;
margin-bottom: 20px;
}
.detail-page-part-title {
height: 56px;
background: rgba(245, 245, 245, 0.6);
border-radius: 8px 8px 0 0;
opacity: 1;
border-bottom: 1px solid #E5E6EB;
padding: 0 20px;
display: flex;
align-items: center;
justify-content: space-between;
}
.detail-page-part-title > span {
font-size: 16px;
font-family: PingFang SC-Medium, PingFang SC, sans-serif;
font-weight: 550;
color: #1D2129;
}
.detail-page-part-title-operate-box {
.ant-btn > .anticon + span {
margin-left: 10px;
}
.ant-btn > .iconfont + span {
margin-left: 10px;
}
.ant-btn > .iconfont {
height: 20px;
}
}
.detail-page-part-form {
padding: 20px;
display: flex;
flex-wrap: wrap;
}
.detail-page-part-form-item {
width: calc((100% - 32px) / 3);
display: flex;
margin: 0 16px 16px 0;
}
.detail-page-part-form-item > label {
width: 7.5em;
font-size: 16px;
font-family: PingFang SC-Regular, PingFang SC, sans-serif;
font-weight: 400;
color: #86909C;
}
.detail-page-part-form-item > span {
word-break: break-all;
font-size: 16px;
font-family: PingFang SC-Regular, PingFang SC, sans-serif;
color: #1D2129;
flex: 1;
width: 0;
}
.detail-page-part-form-item:nth-child(3n) {
margin-right: 0;
}
/deep/ .detail-page-part-form-item {
width: calc((100% - 32px) / 3);
display: flex;
margin: 0 16px 16px 0;
label {
width: 40%;
font-size: 16px;
font-family: PingFang SC-Regular, PingFang SC, sans-serif;
font-weight: 400;
color: #86909C;
}
span {
white-space: pre-wrap;
word-break: break-all;
font-size: 16px;
font-family: PingFang SC-Regular, PingFang SC, sans-serif;
color: #1D2129;
}
}
/deep/ .detail-page-part-form-item:nth-child(3n) {
margin-right: 0;
}
.detail-page-process-manuscript {
padding: 20px;
&-item {
padding: 20px 0;
border-bottom: 1px solid #E5E6EB;
}
&-item:last-child {
border-bottom: none;
}
&-title {
font-size: 16px;
font-family: PingFang SC-Regular, PingFang SC, sans-serif;
color: #86909C;
display: flex;
align-items: center;
justify-content: flex-start;
gap: 20px;
margin-bottom: 16px;
}
&-file {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 12px;
}
&-file:last-child {
margin-bottom: 0;
}
&-file-info {
display: flex;
align-items: center;
color: @primary-color;
cursor: pointer;
flex: 1;
width: 0;
}
&-file-info > .anticon {
margin-right: 8px;
}
&-file-name {
white-space: nowrap;
overflow: hidden;
flex: 1;
width: 0;
text-overflow: ellipsis;
}
&-file-operate {
.ant-btn > .anticon + span, .ant-btn > .iconfont + span {
margin-left: 10px;
}
.ant-btn:first-child {
margin-left: 15px;
}
}
.disabled-file-info {
color: rgba(0, 0, 0, 0.25);
}
}
/*详情样式end*/
/*流程表单样式start*/
.process-part-title {
font-size: 16px;
font-family: PingFang SC-Medium, PingFang SC, sans-serif;
font-weight: 600;
color: #1D2129;
padding-left: 12px;
position: relative;
margin-top: 32px;
margin-bottom: 20px;
}
.process-part-title::before {
content: '';
width: 4px;
height: 20px;
background: @primary-color;
border-radius: 4px;
position: absolute;
left: 0;
top: 2px;
}
.process-part-title:first-child {
margin-top: 0;
}
/*流程表单样式end*/
/* 流程底部按钮中使用自定义图标的样式 */
.detail-page-bottom-operate-box {
/deep/ .ant-btn {
.iconfont {
margin-right: 8px;
font-size: 14px;
}
}
/deep/ .ant-btn-loading {
.iconfont {
display: none;
}
span {
margin-left: 8px;
}
}
}
/* 流程底部按钮中使用自定义图标的样式 end */
.detail-page-bottom-operate-box {
height: 52px;
padding: 10px 32px;
text-align: right;
border-top: 1px solid #E5E6EB;
box-sizing: border-box;
.ant-btn {
margin-left: 15px;
}
}
.detail-page-scroll-content {
height: calc(100% - 52px);
box-sizing: border-box;
overflow: auto;
padding: 32px;
}
.form-flex-box {
display: flex;
flex-wrap: wrap;
}
.form-flex-item-line {
width: 100%;
}
.form-flex-item {
width: calc(100% / 3);
padding: 0 20px;
}
.custom-flex-form-item {
.ant-form-item {
display: flex;
.ant-form-item-label {
width: 9rem;
text-align: left;
}
.ant-form-item-control-wrapper {
flex: 1;
width: 0;
}
}
}
.collapsible-panel-form {
margin-top: 20px;
&-header {
height: 56px;
line-height: 56px;
background: rgba(245, 245, 245, 0.6);
border-radius: 8px 8px 0 0;
border: 1px solid #E5E6EB;
padding: 0 20px;
font-size: 16px;
font-family: PingFang SC-Medium, PingFang SC, sans-serif;
font-weight: 600;
color: #1D2129;
display: flex;
justify-content: space-between;
.retractable-btn {
cursor: pointer;
font-size: 14px;
font-family: PingFang SC-Regular, PingFang SC, sans-serif;
color: @primary-color;
}
.anticon {
margin-right: 8px;
}
.pack-up-btn {
transform: rotate(-90deg);
}
.unfold-btn {
transform: rotate(90deg);
}
}
&-content {
border: 1px solid #E5E6EB;
border-top: none;
border-radius: 0 0 8px 8px;
padding: 20px;
}
}
.p-0 {
padding: 0;
}
/* 搜索区域查询按钮样式 */
.table-page-search-wrapper {
.ant-form-item-label {
max-width: 50%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.table-page-search-submitButtons {
margin-right: 11px;
& > a {
margin-right: 11px;
}
}
}
// 表格表头的必填标识
.table-header-required {
color: #FF0000;
}
// 解决表头错位问题
/deep/ .ant-table-fixed-header .ant-table-scroll .ant-table-header {
margin-bottom: -8px !important;
}
// 火狐单独处理
@-moz-document url-prefix() {
/deep/ .ant-table-fixed-header .ant-table-scroll .ant-table-header {
margin-bottom: 0px !important;
padding-bottom: 0 !important;
overflow-x: hidden !important;
}
}
/deep/ .ant-table-hide-scrollbar {
scrollbar-color: unset;
}
// 日期选择框 右侧重叠的问题
.ant-calendar-picker-input.ant-input {
padding-right: 30px;
}
/deep/.ant-select-dropdown-menu-item:hover:not(.ant-select-dropdown-menu-item-disabled) {
background-color: rgba(0, 100, 250, 0.08);
}
:global(.tooltip-style .ant-tooltip-inner) {
max-height: 40vh;
overflow: auto;
}
// 列表左侧树结构可折叠样式
.page-left-box {
position: relative;
}
.page-left-box-hide {
width: 0 !important;
min-width: 0 !important;
padding: 0 !important;
border: none !important;
}
.control-left-tree-expand {
width: 12px;
height: 24px;
border-radius: 0 12px 12px 0;
background-color: @primary-color;
color: white;
position: absolute;
z-index: 3;
left: 100%;
top: calc(50% - 52px);
.anticon {
position: absolute;
top: 50%;
left: -2px;
transform: translateY(-50%);
cursor: pointer;
}
}