Files
aida_front/src/assets/style/style.less

775 lines
16 KiB
Plaintext
Raw Normal View History

2023-01-06 16:00:15 +08:00
html,body,#app{
margin: 0;
padding: 0;
height: 100%;
font-family: 'Roboto', sans-serif;
2023-10-20 17:21:45 +08:00
overflow: hidden;
2023-09-25 10:09:00 +08:00
// --antd-wave-shadow-color: #341e57;
2023-01-06 16:00:15 +08:00
}
2023-07-26 15:54:34 +08:00
input{
outline:none
}
2023-09-12 10:11:27 +08:00
ul,li{
list-style: none;
padding: 0;
}
2023-01-06 16:00:15 +08:00
.page_content{
2023-09-25 10:09:00 +08:00
// width: 1440px;
2023-01-06 16:00:15 +08:00
max-width: 100%;
height: 100%;
margin: 0 auto;
}
.button_first{
2023-11-03 11:16:42 +08:00
width: 11.85rem;
2023-01-06 16:00:15 +08:00
text-align: center;
2023-08-23 17:50:09 +08:00
// background: #343579;
2023-01-06 16:00:15 +08:00
height: 4rem;
line-height: 4rem;
2023-08-23 17:50:09 +08:00
font-size: 1.4rem;
2023-01-06 16:00:15 +08:00
font-weight: 400;
2023-08-23 17:50:09 +08:00
color: #000;
2023-01-06 16:00:15 +08:00
cursor: pointer;
2023-08-23 17:50:09 +08:00
border-radius: 1.5rem;
border: 2px solid;
2023-01-06 16:00:15 +08:00
}
.button_second{
2023-11-03 11:16:42 +08:00
width: 11.85rem;
2023-01-06 16:00:15 +08:00
text-align: center;
2023-08-05 12:52:56 +08:00
// background: #343579;
2023-01-06 16:00:15 +08:00
height: 4rem;
line-height: 4rem;
font-size: 1.4rem;
font-weight: 400;
2023-08-05 12:52:56 +08:00
color: #000;
2023-01-06 16:00:15 +08:00
cursor: pointer;
2023-08-05 12:52:56 +08:00
border-radius: 1.5rem;
border: 2px solid;
2023-01-06 16:00:15 +08:00
}
.system_silder{
width: 100%;
.ant-slider{
margin: 0;
width: 12rem;
.ant-slider-rail{
height: 0.6rem;
border-radius: 0.3rem;
background: #F2F0FD;
}
.ant-slider-track{
height: 0.6rem;
border-radius: 0.3rem;
background: #343579;
}
.ant-slider-handle{
margin-top: -0.4rem;
border: solid 0.2rem #343579;
}
}
}
.ant-tooltip{
// top: 74px !important;
z-index: 2;
.ant-tooltip-inner{
background: #343579;
border-radius: 5px;
padding: 0.6rem 0.5rem;
}
}
.select_block{
.ant-select:not(.ant-select-customize-input) .ant-select-selector{
background: transparent;
height: 4rem;
2023-10-11 17:34:14 +08:00
border: 0.1rem solid rgba(0,0,0,0) !important;
// border: 0.1rem solid #000 !important;
2023-01-06 16:00:15 +08:00
border-radius: 0;
box-shadow: none !important;
2023-10-11 17:34:14 +08:00
width: 15rem;
background: #FFFFFF;
border-radius: 1rem;
margin: 0 1rem;
2023-01-06 16:00:15 +08:00
}
.ant-select-single .ant-select-selector .ant-select-selection-item, .ant-select-single .ant-select-selector .ant-select-selection-placeholder{
line-height: 3.8rem;
color: #1A1A1A;
font-size: 1.3rem;
font-weight: bold;
}
2023-10-11 17:34:14 +08:00
.ant-select-single:not(.ant-select-customize-input) .ant-select-selector{
padding: 0 1rem;
}
2023-01-06 16:00:15 +08:00
}
2023-08-05 12:52:56 +08:00
//started公共按钮样式
.started_btn{
padding: .5rem 2rem;
display: inline-block;
border-radius: 2rem;
2023-10-20 17:21:45 +08:00
font-size: 1.2rem;
2023-08-05 12:52:56 +08:00
color: #fff;
background-color: #39215b;
cursor: pointer;
zoom: .9;
}
2023-07-26 15:54:34 +08:00
2023-11-03 11:16:42 +08:00
//Library多级菜单
.ant-select-allow-clear{
font-size: 1.2rem;
height: 3rem;
.ant-select-selector{
height: 100%;
.ant-select-selection-overflow{
height: 100%;
.ant-select-selection-overflow-item{
height: 80%;
.ant-select-selection-item{
align-items: center;
height: 100%;
margin: 0;
margin-right: .4rem;
2023-11-03 14:02:17 +08:00
background-color: #e1d9ec;
2023-11-03 11:16:42 +08:00
.ant-select-selection-item-content{
height: 100%;
line-height: 1.7;
}
.ant-select-selection-item-remove{
height: 100%;
font-size: 1rem;
display: flex;
align-items: center;
}
}
}
}
}
.ant-select-selector::after{
line-height: 1;
}
&.ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input) .ant-select-selector{
box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.0);
2023-11-03 14:02:17 +08:00
border: 1px solid #d9d9d9;
2023-11-03 11:16:42 +08:00
}
}
.ant-select:not(.ant-select-disabled):hover .ant-select-selector{
2023-11-03 14:02:17 +08:00
border: 1px solid #d9d9d9;
}
.ant-select-dropdown{
font-size: 1.4rem;
.ant-cascader-menu-item{
padding: .5rem 1.2rem;
line-height: 2.2rem;
.ant-cascader-checkbox{
font-size: 1.4rem;
:hover .ant-cascader-checkbox-inner{
border: 1px solid #d9d9d9;
}
.ant-cascader-checkbox-inner{
width: 1.6rem;
height: 1.6rem;
}
.ant-cascader-checkbox-inner::after{
width: .8rem;
height: .8rem;
}
}
}
}
.ant-cascader-checkbox-checked .ant-cascader-checkbox-inner{
background-color: #767676;
border-color: #d9d9d9 !important;
}
.ant-cascader-checkbox-checked::after{
border-color: #d9d9d9 ;
}
.ant-cascader-checkbox-wrapper:hover .ant-cascader-checkbox-inner, .ant-cascader-checkbox:hover .ant-cascader-checkbox-inner, .ant-cascader-checkbox-input:focus + .ant-cascader-checkbox-inner{
border-color: #d9d9d9 ;
}
.ant-cascader-checkbox-indeterminate .ant-cascader-checkbox-inner::after{
background-color: #767676;
2023-11-03 11:16:42 +08:00
}
2023-11-13 09:52:57 +08:00
//禁止选中状态
.ant-checkbox-wrapper-disabled{
.ant-checkbox-disabled{
.ant-checkbox-inner{
background-color: #d9d9d9;
}
.ant-checkbox-inner::after{
border-color: #eeeeee ;
}
}
}
2023-11-07 09:30:25 +08:00
.ant-modal-mask{
background: linear-gradient(45deg, #eee4f3, #f3f4e6);
2023-11-13 09:52:57 +08:00
// min-width: 1440px;
2023-11-07 09:30:25 +08:00
border-radius: 1rem;
overflow: hidden;
height: calc(100% - 7rem);
bottom: 0;
top: auto;
margin: 0 9rem;
}
2023-01-06 16:00:15 +08:00
//弹窗公共样式
.modal_component{
&.ant-modal{
top: 0;
}
.ant-modal-content{
overflow: hidden;
.ant-modal-header{
padding: 2.4rem 2.6rem;
background: #F7F7F7;
.ant-modal-title{
font-size: 1.8rem;
line-height: 1.8rem;
color: #030303;
}
}
.ant-modal-body{
padding: 0;
}
}
}
2023-10-11 17:34:14 +08:00
.ant-modal-body{
font-size: 1.4rem;
}
2023-08-23 17:50:09 +08:00
//衣服类型下拉菜单
.operate_file_block{
width: 100%;
height: 3rem;
font-size: 1.6rem;
color: #FFFFFF;
position: absolute;
left: 0;
bottom: 0;
.select_img_type{
height: 100%;
line-height: 3rem;
text-align: center;
background: rgba(0,0,0,0.6);
position: relative;
2023-01-06 16:00:15 +08:00
2023-08-23 17:50:09 +08:00
.select_category{
display: flex;
align-items: center;
justify-content: center;
.icon-xiala{
margin-left: 0.8rem;
}
}
.icon_rotate{
-moz-transform:rotate(180deg);
-webkit-transform:rotate(180deg);
transform: rotate(180deg);
animation-direction: 0.5s;
}
.category_list{
position: absolute;
width: 100%;
cursor: pointer;
position: absolute;
// top: 3.1rem;
margin-top: .2rem;
left: 0;
// background: rgba(0,0,0,0.4);
background-color: rgb(177 177 177);
border: 1px solid #343579;
border-radius: 0.8rem;
// overflow: hidden;
z-index: 3;
height: 9rem;
overflow-x: hidden;
&.category_list::-webkit-scrollbar{display: none;}
.category_item{
text-align: left;
font-size: 1.4rem;
padding: 1rem 1.5rem;
line-height: 1.6rem;
font-weight: 600;
color: #595959;
&.select_category_item{
background: linear-gradient(-137deg, #eeefdb, #e7dbed);
}
&:hover{
background: linear-gradient(-137deg, #eeefdb, #e7dbed);
}
}
}
}
}
2023-09-25 10:09:00 +08:00
//提示框样式
.ant-modal-root{
.ant-modal-wrap{
.ant-modal-confirm-confirm{
.ant-modal-content{
.ant-modal-body{
.ant-modal-confirm-body-wrapper{
2023-09-25 10:09:00 +08:00
}
}
}
}
}
}
2023-11-03 11:16:42 +08:00
.habit :deep(.ant-btn:hover),
:deep(.ant-btn:focus),
:deep(.ant-btn:active),
:deep(.ant-btn::after) {
color: #000;
border-color: #000 !important;
box-shadow: none !important;
}
:deep(.ant-switch-checked) {
background-color: #000;
.ant-switch-handle{
left: calc(100% - 1.8rem - .2rem);
}
}
:deep(.ant-switch){
min-width: 4.4rem;
height: 2.2rem;
line-height: 2.2rem;
.ant-switch-handle{
width: 1.8rem;
height: 1.8rem;
}
}
2023-10-31 16:04:40 +08:00
.ant-message{
z-index: 1049 !important;
top: 6rem;
}
.ant-modal-confirm-btns{
.ant-btn:hover{
color: #39215b !important;
border-color: #39215b !important;
}
.ant-btn-primary{
background: #39215b !important;
border-color: #39215b !important;
}
.ant-btn-primary:hover{
color: #fff !important;
border-color: #543087 !important;
background: #543087 !important;
}
}
2023-10-11 17:34:14 +08:00
//loding样式
.ant-spin-dot-item{
background-color: #543087;
}
.ant-spin{
color: #000;
}
2023-08-23 17:50:09 +08:00
.pin_block{
text-align: center;
margin-top:.5rem;
.ant-checkbox-wrapper{
height: 2.2rem;
align-items: center;
span{
font-size: 1.4rem;
height: 100%;
line-height: 2.3rem;
2023-11-03 14:02:17 +08:00
.ant-checkbox-input::after{
height: auto;
}
&.ant-checkbox-checked::after{
border: 1px solid rgba(0,0,0,0);
}
}
.ant-checkbox-inner{
width: 1.6rem;
height: 1.6rem;
}
.ant-checkbox-inner::after{
width: .571428571rem;
height: .914285714rem;
}
}
2023-08-23 17:50:09 +08:00
}
2023-11-09 10:16:18 +08:00
.ant-checkbox-wrapper{
2023-11-08 13:01:45 +08:00
font-size: 1.4rem;
2023-11-09 10:16:18 +08:00
span{
font-size: 1.4rem;
}
2023-11-08 13:01:45 +08:00
}
.ant-checkbox-checked::after{
border: 1px solid rgba(0,0,0,.65);
}
2023-11-06 15:19:52 +08:00
.ant-select-multiple .ant-select-selection-search{
height: 100%;
}
.ant-select-multiple .ant-select-selection-search-input{
height: 100%;
}
2023-11-03 14:02:17 +08:00
.ant-checkbox-checked .ant-checkbox-inner{
background-color: #767676;
border-color: #d9d9d9 !important;
}
.ant-checkbox-wrapper:hover .ant-checkbox-inner, .ant-checkbox:hover .ant-checkbox-inner, .ant-checkbox-input:focus + .ant-checkbox-inner{
border-color: #d9d9d9 !important;
}
2023-11-06 15:19:52 +08:00
.libraryPageCascader{
border-radius: 1rem;
.cascader_btn_max{
height: 4rem;
position: absolute;
width: 100%;
border-bottom: 1px solid rgb(225 225 225);
display: flex;
align-items: center;
.cascader_btn1{
margin: 0 1rem;
}
}
.ant-cascader-menu{
margin-top: 4rem;
}
}
2023-01-06 16:00:15 +08:00
//collection 弹窗
2023-10-20 17:21:45 +08:00
.collection_modal,.design_detail_modal_component,.designOpenrtion_modal,.library_page{
2023-01-06 16:00:15 +08:00
.ant-modal-body{
overflow-y: hidden;
}
2023-09-12 10:11:27 +08:00
.design_title_text{
font-size: 1.8rem;
font-weight: 900;
color: rgba(0,0,0,.65);
align-items: center;
margin-bottom: 2rem;
.design_title_text_intro{
font-size: 1.2rem;
font-weight: 400;
color: rgba(0,0,0,.45);
}
}
2023-01-06 16:00:15 +08:00
.ant-upload.ant-upload-select-picture-card{
background: #FFFFFF;
2023-08-21 10:55:39 +08:00
width: 6rem;
height: 6rem;
border: 0.3rem solid #ededed;
2023-10-20 17:21:45 +08:00
border-radius: 1rem;
2023-08-21 10:55:39 +08:00
margin: 0;
2023-01-06 16:00:15 +08:00
.upload_tip_block{
.icon-jiahao{
font-size: 3.2rem;
color: #B7B7B7;
}
}
.ant-upload-text{
font-size: 1.6rem;
color: #B7B7B7;
}
}
.ant-upload-list-picture-card-container{
display: none !important;
}
.ant-upload-picture-card-wrapper{
width: auto;
vertical-align: top;
}
}
2023-09-12 10:11:27 +08:00
//desing 关闭按钮
.designOpenrtion_modal,.design_detail_modal_component{
.design_closeIcon{
top: 2rem;
right: 2rem;
cursor: pointer;
width: 4rem;
height: 4rem;
display: flex;
align-items: center;
justify-content: center;
position: absolute;
.fi-rr-cross-small::before{
padding: .2rem;
border-radius: 5px;
border: solid 2px rgba(0, 0, 0, 0.25);
transition: 1s all;
color: rgba(0, 0, 0, 0.55);
}
&.collection_closeIcon:hover .fi-rr-cross-small::before{
border: solid 2px rgba(0, 0, 0, 0.55);
color: rgba(0, 0, 0, 1);
}
}
}
.design_detail_modal_component,.designOpenrtion_modal{
.ant-upload-list-picture-card-container{
display: none !important;
}
.ant-upload-picture-card-wrapper{
width: auto;
vertical-align: top;
}
.subitOkPreviewBtn{
background-color: #38205b;
color: #fff;
cursor: pointer;
left: 50%;
position: absolute;
transform: translateX(-50%);
padding: .5rem 2rem;
border-radius: 2rem;
2023-10-20 17:21:45 +08:00
font-size: 1.2rem;
2023-09-12 10:11:27 +08:00
display: inline-block;
}
}
2023-10-20 17:21:45 +08:00
.ant-upload{
font-size: 1.4rem;
}
i{
font-size: 1.4rem;
}
2023-08-21 10:55:39 +08:00
//设计input和上传按钮样式
2023-10-20 17:21:45 +08:00
.collection_modal_body,.design_detail_modal_component,.library_page{
2023-08-21 10:55:39 +08:00
.input_box{
display: flex;
align-items: center;
position: sticky;
top: 0;
background: #fff;
padding-top: 2.5rem;
padding-bottom: 2rem;
2023-09-12 10:11:27 +08:00
z-index: 2;
2023-08-21 10:55:39 +08:00
input{
2023-10-20 17:21:45 +08:00
font-size: 1.2rem;
2023-08-21 10:55:39 +08:00
border-radius: .5rem;
width: 70%;
border: 1px solid rgba(0,0,0,.15);
padding-left: 1.5rem;
border: 0.1rem solid #F1F1F1;
font-size: 1.2rem;
font-weight: 400;
&input:-moz-placeholder{
color: rgba(0,0,0,.15);
}
&input:-ms-input-placeholder {
color: rgba(0,0,0,.15);
}
&input::-webkit-input-placeholder {
color: rgba(0,0,0,.15);
}
}
2023-10-20 17:21:45 +08:00
span{
position: absolute;
bottom: 0rem;
font-size: 1.2rem;
color: red;
opacity: 0;
transform: scale(.7);
transform-origin: left bottom;
}
&.active{
input{
// color: rgb(255, 0, .7);
border: 1px solid rgb(255, 0, .7);
box-shadow: 0px 0px 3px 1px rgba(255, 0, 0, 0.2);
}
span{
opacity: 1;
}
}
2023-08-21 10:55:39 +08:00
.generage_btn{
margin: 0 auto;
}
}
.upload_item{
display: flex;
flex-wrap: wrap;
.upload_file_item {
margin: 0 2rem 2rem 0;
display: inline-block;
// width: 16.5rem;
// height: 16.5rem;
width: 10rem;
height: 10rem;
border: 1px solid #f5f5f5;
vertical-align: top;
position: relative;
2023-10-20 17:21:45 +08:00
cursor: pointer;
&.active {
opacity: 0.5;
// border: 2px solid;
border-radius: 1rem;
transform: scale(0.9);
.delete_file_block{
pointer-events:none;
}
.operate_file_block{
pointer-events:none;
}
img {
}
}
2023-08-21 10:55:39 +08:00
&.upload_component {
border: none;
display: flex;
align-items: center;
justify-content: center;
}
:deep(.ant-upload-picture-card-wrapper) {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
:deep(.ant-upload-select-picture-card) {
width: 6rem;
height: 6rem;
border: 0.3rem solid #ededed;
2023-10-20 17:21:45 +08:00
border-radius: 1rem;
2023-08-21 10:55:39 +08:00
margin: 0;
}
.upload_file_item_content {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
width: 100%;
position: relative;
&:hover .delete_file_block {
display: block;
}
.upload_img {
display: block;
height: 100%;
2023-10-20 17:21:45 +08:00
width: auto;
max-width: 100%;
object-fit: cover;
2023-08-21 10:55:39 +08:00
}
.delete_file_block {
display: none;
width: 100%;
cursor: pointer;
height: 3rem;
background: rgba(0, 0, 0, 0.2);
font-size: 1.6rem;
color: #ffffff;
line-height: 3rem;
text-align: center;
position: absolute;
left: 0;
bottom: 0;
2023-10-20 17:21:45 +08:00
&.rightTop {
width: 3.2rem;
height: 3.2rem;
background: rgba(0, 0, 0, 0.6);
border-radius: 0.4rem;
position: absolute;
top: 0.9rem;
right: 0.9rem;
text-align: center;
line-height: 3.2rem;
left: auto;
.icon-shanchu {
font-size: 1.6rem;
color: #fff;
}
}
2023-08-21 10:55:39 +08:00
}
}
.upload_img_icon {
width: 4.6rem;
}
}
}
}
2023-01-06 16:00:15 +08:00
//剪裁弹窗
.cut_pricture_modal{
2023-09-12 10:11:27 +08:00
.ant-modal-content{
2023-10-20 17:21:45 +08:00
border-radius: 1rem;
2023-09-12 10:11:27 +08:00
}
2023-01-06 16:00:15 +08:00
.ant-modal-body{
2023-09-12 10:11:27 +08:00
height: 65rem;
padding: 8rem 5rem !important;
2023-01-06 16:00:15 +08:00
overflow-y: hidden;
}
}
.scroll_style{
&::-webkit-scrollbar-button:single-button {
// background-color: #ffffff;
display: block;
border-style: solid;
height: 1.3rem;
width: 1.4rem;
}
&::-webkit-scrollbar-button:single-button:vertical:decrement {
border-width: 0 0.8rem 0.8rem 0.8rem;
border-color: transparent transparent #555555 transparent;
}
&::-webkit-scrollbar-button:single-button:vertical:decrement:hover {
border-color: transparent transparent #777777 transparent;
}
&::-webkit-scrollbar-button:single-button:vertical:increment {
border-width: 0.8rem 0.8rem 0 0.8rem;
border-color: #555555 transparent transparent transparent;
}
&::-webkit-scrollbar-button:vertical:single-button:increment:hover {
border-color: #777777 transparent transparent transparent;
}
&::-webkit-scrollbar {
/*滚动条整体样式*/
width: 1.4rem; /*高宽分别对应横竖滚动条的尺寸*/
}
&::-webkit-scrollbar-thumb {
/*滚动条里面小方块*/
background: #c2c2c2;
opacity: 0.8;
border-radius: 0.7rem;
}
&::-webkit-scrollbar-track {
// background: #ffffff;
}
}
//蒙层样式
.mark_loading{
position: fixed;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.2);
left: 0;
top: 0;
z-index: 99999;
display: flex;
align-items: center;
justify-content: center;
}