wyyl/resources/beike/admin/css/_global.scss

302 lines
5.1 KiB
SCSS

@charset "UTF-8";
//
// @copyright 2020 opencart.cn - All Rights Reserved
// @link http://www.guangdawangluo.com
// @author Sam Chen <sam.chen@opencart.cn>
// @created 2021-08-24 14:38:09
// @modified 2021-08-24 15:07:05
//
@font-face {font-family: 'poppins';
src: url('/fonts/poppins/Poppins-Regular.ttf');
}
@for $i from 1 through 6 {
.min-h#{$i} {
min-height: #{$i}00px;
}
}
// 生成 100 200 300 ... 1000 的宽度
@for $i from 1 through 10 {
.wp-#{$i}00 {
width: #{$i}00px;
}
}
// clac(100% - #{$i}00px)
@for $i from 1 through 10 {
.wp-#{$i}00- {
width: calc(100% - #{$i}00px);
}
}
// 生成 100 200 300 ... 1000 的最小高度
@for $i from 1 through 10 {
.h-min-#{$i}00 {
min-height: #{$i}00px;
}
}
// 生成 100 200 300 ... 1000 的最小宽度
@for $i from 1 through 10 {
.s-min-#{$i}00 {
min-width: #{$i}00px;
}
}
// 生成 100 200 300 ... 1000 的最大宽度
@for $i from 1 through 10 {
.w-max-#{$i}00 {
max-width: #{$i}00px;
}
}
// 生成 100 200 300 ... 1000 的高度
@for $i from 1 through 10 {
.hp-#{$i}00 {
height: #{$i}00px;
}
}
// 生成 10 20 30 ... 90 的高宽
@for $i from 1 through 10 {
.wh-#{$i}0 {
height: #{$i}0px;
width: #{$i}0px;
}
}
.col-form-label.required {
&::before {
content: "*";
color: #f56c6c;
font-size: 12px;
font-weight: bold;
margin-right: 5px;
}
}
.help-text {
color: #B2B2B2;
margin-top: 4px;
font-size: 12px;
}
.font-size-12 {
font-size: 12px;
}
.open-file-manager {
cursor: pointer;
}
.file-manager-box {
.layui-layer-title {
background-color: #293042;
color: #fff;
border-color: #404e72;
}
.layui-layer-ico {
background: url('/image/close.png') no-repeat;
background-size: cover;
background-position: center center;
}
}
.border-dashed {
border-style: dashed !important;
}
.set-product-img {
background-color: #f8f8f8;
border: 1px dashed #e2e2e2;
display: flex;
cursor: pointer;
align-items: center; // flex-start | center
justify-content: center; // flex-end | center | space-between
transition: all .2s ease;
&:hover {
background-color: #f1f1f1;
}
}
.main-content {
display: flex;
// flex-direction: column;
// min-height: 100vh;
transition: margin-left .25s ease-in-out,left .25s ease-in-out,margin-right .25s ease-in-out,right .25s ease-in-out;
width: 100%;
height: calc(100vh - 60px);
overflow: hidden;
@media screen and (max-width: 991px) {
margin-left: 260px;
}
&:not(.active) {
margin-left: 0;
}
> #content {
flex: 1;
padding: 0 1rem 4rem;
// margin-top: 44px;
overflow-y: auto;
@media screen and (max-width: 991px) {
padding: 0 1rem 1.5rem;
}
}
}
.page-title-box {
// position: fixed;
// top: 60px;
// left: 190px;
z-index: 9;
right: 0;
// height: 58px;
padding: 1.4rem 0 0;
// background-color: #fff;
// border-bottom: 1px solid #f1f1f1;
display: flex;
align-items: center;
.page-title {
font-size: 1rem;
margin: 0;
// line-height: 35px;
// color: #12263f;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
color: inherit;
}
}
.switch-plus {
position: relative;
width: 50px;
height: 24px;
margin-bottom: 1rem;
input {
position: absolute;
top: 0;
z-index: 2;
opacity: 0;
cursor: pointer;
height: 20px;
width: 50px;
left: 0;
margin: 0;
&:checked {
z-index: 1;
& + label {
opacity: 1;
cursor: default;
&:hover {
opacity: 0.5;
}
}
~ .toggle-outside .toggle-inside {
left: 0.25rem;
background-color: #fff;
box-shadow: 0 3px 6px 0 rgba(140,152,164,.25);
}
}
& ~ input:checked ~ .toggle-outside {
background-color: $primary;
.toggle-inside {
left: 23px;
background-color: #fff;
}
}
}
label {
color: #fff;
opacity: 0.33;
transition: opacity 0.25s ease;
cursor: pointer;
font-size: 1.5rem;
line-height: 3rem;
display: inline-block;
width: 50px;
height: 100%;
margin: 0;
text-align: center;
&:last-of-type {
margin-left: 50px;
}
}
.toggle-outside {
height: 100%;
border-radius: 2rem;
padding: 2px;
overflow: hidden;
transition: 0.25s ease all;
// background: #f1f3fa;
background-color: #e7eaf3;
position: absolute;
width: 46px;
left: 0;
}
.toggle-inside {
border-radius: 50%;
// background: #4a4a4a;
position: absolute;
transition: 0.25s ease all;
height: 20px;
width: 20px;
}
}
body.page-seller-product {
.share-link-pop {
.share-links-td {
padding-top: 4px;
padding-bottom: 4px;
}
.share-links-code {
width: 80px;
height: 80px;
overflow: hidden;
img {
max-width: 100%;
}
}
}
}
.filter-title {
flex: 0 0 56px;
margin-right: 10px;
text-align: right;
margin-bottom: 0;
}
.order-by-wrap {
i {
line-height: 0.6;
cursor: pointer;
&:hover {
color: #000;
}
&:active {
color: $primary;
}
}
}