init
This commit is contained in:
524
src/style/common.styl
Normal file
524
src/style/common.styl
Normal file
@@ -0,0 +1,524 @@
|
||||
@import 'mixin.styl'
|
||||
@import 'iconfont.styl'
|
||||
@font-face {
|
||||
font-family: 'iconfont';
|
||||
src: url('iconfont/iconfont.woff2?t=1631676179964') format('woff2'),
|
||||
url('iconfont/iconfont.woff?t=1631676179964') format('woff'),
|
||||
url('iconfont/iconfont.ttf?t=1631676179964') format('truetype');
|
||||
}
|
||||
[class*=" icon_"],[class^=icon_]
|
||||
font-family: "iconfont" !important;
|
||||
speak: none;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-variant: normal;
|
||||
text-transform: none;
|
||||
line-height: 1;
|
||||
vertical-align: baseline;
|
||||
display: inline-block;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
|
||||
::-webkit-scrollbar-track
|
||||
{
|
||||
-webkit-box-shadow: inset 0 0 0px rgba(0,0,0,0.3);
|
||||
border-radius: 10px;
|
||||
background-color: #F5F5F5;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar
|
||||
{
|
||||
width: 0px;
|
||||
background-color: #F5F5F5;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb
|
||||
{
|
||||
border-radius: 10px;
|
||||
-webkit-box-shadow: inset 0 0 0px rgba(0,0,0,.3);
|
||||
background-color: #e5e5e5;
|
||||
}
|
||||
|
||||
.body-conatiner
|
||||
_fj()
|
||||
_wh(100%, 100%)
|
||||
padding-top 80px
|
||||
.side-bar-container
|
||||
_wh(240px, 100%)
|
||||
border-right solid 1px #e6e6e6
|
||||
.main-container
|
||||
_wh(calc(100% - 240px), 100%)
|
||||
|
||||
.site_container
|
||||
_fj()
|
||||
_wh(100%, 100%)
|
||||
overflow hidden
|
||||
.left_side
|
||||
_wh(2.72rem, 100%)
|
||||
|
||||
.filter-table
|
||||
width 100%
|
||||
border-collapse separate
|
||||
border-spacing 0
|
||||
border: 1px#eeeeee
|
||||
text-align center
|
||||
th,td
|
||||
color #323232
|
||||
background-color #ffffff
|
||||
border-right 2px dotted #eeeeee
|
||||
border-bottom 2px dotted #eeeeee
|
||||
// &::first-child, :last-child
|
||||
// border-left 0 dotted #e1e1e1
|
||||
// border-bottom 0 dotted #e1e1e1
|
||||
.filter-table th
|
||||
font-size .24rem
|
||||
line-height .8rem
|
||||
background-color #DFE1E6
|
||||
.filter-table td
|
||||
height 0.3rem
|
||||
line-height .8rem
|
||||
font-size .25rem
|
||||
.filter-table tr:first-child th:first-child
|
||||
border-top-left-radius .1rem
|
||||
.filter-table tr:first-child th:last-child
|
||||
border-top-right-radius .1rem
|
||||
.filter-table tr:last-child td:first-child
|
||||
border-bottom-left-radius .1rem
|
||||
.filter-table tr:last-child td:last-child
|
||||
border-bottom-right-radius .1rem
|
||||
.filter-table th:last-child, .filter-table td:last-child
|
||||
border-right none
|
||||
|
||||
/** 开发者选项 */
|
||||
.right_side_box
|
||||
_wh(10.4rem,calc(100% - 90px - .48rem))
|
||||
margin-top .48rem
|
||||
padding .17rem .4rem
|
||||
background rgba(223,225,230,.2)
|
||||
border-radius .08rem
|
||||
overflow hidden
|
||||
h2
|
||||
_font(.32rem,.45rem,#FA6400,,)
|
||||
margin-bottom .15rem
|
||||
.info_wrapper
|
||||
_wh(100%, calc(100% - .94rem))
|
||||
.ifconfig_info
|
||||
_wh(100%,100%)
|
||||
_font(.24rem,.44rem,#323232,,)
|
||||
white-space pre-line
|
||||
word-break break-all
|
||||
overflow-y auto
|
||||
|
||||
// 公用
|
||||
.row:before, .row:before
|
||||
display table
|
||||
content ""
|
||||
.row:after
|
||||
clear: both
|
||||
.button
|
||||
display: inline-block;
|
||||
line-height: 1;
|
||||
white-space: nowrap;
|
||||
cursor: pointer;
|
||||
background: #fff;
|
||||
border: 1px solid #dcdfe6;
|
||||
color: #606266;
|
||||
-webkit-appearance: none;
|
||||
text-align: center;
|
||||
box-sizing: border-box;
|
||||
outline: none;
|
||||
margin: 0;
|
||||
transition: .1s;
|
||||
font-weight: 500;
|
||||
-moz-user-select: none;
|
||||
-webkit-user-select: none;
|
||||
-ms-user-select: none;
|
||||
padding: 12px 20px;
|
||||
font-size: 14px;
|
||||
border-radius: 20px;
|
||||
&:disabled
|
||||
color: #fff;
|
||||
background-color: $gray;
|
||||
border-color: $gray1;
|
||||
.button+.button
|
||||
margin-left: 10px;
|
||||
.button--primary
|
||||
color: #fff;
|
||||
background-color: $red;
|
||||
border-color: $red1;
|
||||
.button--info
|
||||
color: #fff;
|
||||
background-color: $gray;
|
||||
border-color: $gray1;
|
||||
.modal
|
||||
position: fixed;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
opacity: .5;
|
||||
background: #000;
|
||||
z-index: 201;
|
||||
.dialog_wrapper
|
||||
position: fixed;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
overflow: auto;
|
||||
z-index: 202;
|
||||
.dialog
|
||||
position: relative;
|
||||
margin: 0 auto 50px;
|
||||
background: #fff;
|
||||
border-radius: 16px;
|
||||
box-shadow: 0 1px 3px rgba(0,0,0,.3);
|
||||
box-sizing: border-box;
|
||||
width: 65%;
|
||||
margin-top: 15%;
|
||||
.dialog_header
|
||||
padding: 20px 20px 10px;
|
||||
.dialog_title
|
||||
line-height: 24px;
|
||||
font-size: 18px;
|
||||
color: #303133;
|
||||
.dialog_headerbtn
|
||||
position: absolute;
|
||||
top: 20px;
|
||||
right: 20px;
|
||||
padding: 0;
|
||||
background: transparent;
|
||||
border: none;
|
||||
outline: none;
|
||||
cursor: pointer;
|
||||
font-size: 16px;
|
||||
.dialog_body
|
||||
padding: 30px 20px;
|
||||
color: #606266;
|
||||
font-size: 14px;
|
||||
line-height: 32px
|
||||
word-break: break-all;
|
||||
.form_wraper
|
||||
width 100%
|
||||
.form
|
||||
width 100%
|
||||
_fj(flex-start, flex-start)
|
||||
.form_item
|
||||
width 48%
|
||||
margin-bottom: 20px
|
||||
.form_item+.form_item
|
||||
margin-left 4%
|
||||
.form_item__label
|
||||
width: 100px;
|
||||
text-align: left;
|
||||
vertical-align: middle;
|
||||
float: left;
|
||||
font-size: 14px;
|
||||
color: #606266;
|
||||
line-height: 32px;
|
||||
padding: 0 10px;
|
||||
box-sizing: border-box;
|
||||
i
|
||||
color $red2
|
||||
.form_item__content
|
||||
width: calc(100% - 100px)
|
||||
margin-left: 100px;
|
||||
line-height: 32px;
|
||||
position: relative;
|
||||
font-size: 14px;
|
||||
.form_item__input
|
||||
width 100%
|
||||
-webkit-appearance: none;
|
||||
background-color: #fff;
|
||||
background-image: none;
|
||||
border-radius: 4px;
|
||||
border: 1px solid $gray1;
|
||||
box-sizing: border-box;
|
||||
color: #696969;
|
||||
display: inline-block;
|
||||
font-size: 14px;
|
||||
height: 32px;
|
||||
line-height: 30px;
|
||||
outline: none;
|
||||
padding: 0 10px;
|
||||
transition: border-color .2s cubic-bezier(.645,.045,.355,1);
|
||||
width: 100%;
|
||||
border-radius: 8px
|
||||
.form_item__textarea
|
||||
line-height 30px
|
||||
height 120px
|
||||
padding 10px
|
||||
.form_item__radio
|
||||
color: #606266;
|
||||
font-weight: 500;
|
||||
line-height: 32px;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
white-space: nowrap;
|
||||
outline: none;
|
||||
font-size: 14px;
|
||||
margin-right: 30px;
|
||||
-moz-user-select: none;
|
||||
-webkit-user-select: none;
|
||||
-ms-user-select: none;
|
||||
.radio__input
|
||||
white-space: nowrap;
|
||||
cursor: pointer;
|
||||
outline: none;
|
||||
display: inline-block;
|
||||
padding: 2px
|
||||
position: relative;
|
||||
vertical-align: middle;
|
||||
border 1px solid $green1
|
||||
background-color #fff
|
||||
border-radius 50%
|
||||
.radio__label
|
||||
display: inline-block;
|
||||
font-size: 14px;
|
||||
padding-left: 20px;
|
||||
.icon_radio_checked
|
||||
background-color $green1
|
||||
.radio__original
|
||||
opacity: 0;
|
||||
outline: none;
|
||||
position: absolute;
|
||||
z-index: -1;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
margin: 0;
|
||||
.el-select
|
||||
width 100%
|
||||
.el-input, .el-select .el-input .el-select__caret, .el-select-dropdown__item
|
||||
font-size 14px
|
||||
line-height 30px
|
||||
height 30px
|
||||
.el-select:hover .el-input__inner, .el-input__inner
|
||||
border-color $gray1
|
||||
.el-select .el-input__inner:focus, .el-select .el-input.is-focus .el-input__inner
|
||||
border-color $red1
|
||||
.el-select-dropdown__item.selected
|
||||
color $red2
|
||||
.el-input__inner
|
||||
color #696969
|
||||
font-size 14px
|
||||
line-height 30px
|
||||
height 30px
|
||||
.dialog_footer
|
||||
padding: 10px 20px 20px;
|
||||
text-align: center;
|
||||
box-sizing: border-box;
|
||||
#keyboard
|
||||
position fixed
|
||||
left 0
|
||||
right 0
|
||||
bottom 0
|
||||
z-index 1000
|
||||
width 100%
|
||||
// max-width 1366px
|
||||
margin 0 auto
|
||||
padding 1em
|
||||
background-color #EEE
|
||||
box-shadow 0px -3px 10px rgba(black, 0.3)
|
||||
border-radius 10px
|
||||
|
||||
// 用户管理
|
||||
.right_side
|
||||
_wh(100%, 100%)
|
||||
padding 20px 20px 30px 20px
|
||||
.buttons_wrapper
|
||||
margin-bottom 30px
|
||||
.grid_wrapper
|
||||
width 100%
|
||||
table
|
||||
table-layout: fixed;
|
||||
min-width: 100%;
|
||||
border-collapse: separate;
|
||||
border-spacing: 0;
|
||||
border: 0
|
||||
th
|
||||
box-sizing: border-box;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
text-align: center;
|
||||
position: sticky;
|
||||
top: -1px;
|
||||
background: #d7d7d7;
|
||||
font-size: 14px;
|
||||
line-height: 23px;
|
||||
color: #323232;
|
||||
font-weight: bold;
|
||||
z-index: 99;
|
||||
padding 12px 10px;
|
||||
td
|
||||
box-sizing: border-box;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
padding: 12px 10px;
|
||||
border-bottom: 1px dashed $gray1;
|
||||
border-right: 1px dashed $gray1;
|
||||
text-align: center;
|
||||
font-size: 14px;
|
||||
line-height: 23px;
|
||||
color: #323232;
|
||||
background: #fff;
|
||||
&:last-child
|
||||
border-right: none;
|
||||
.grid_wrapper table .tr_selected td
|
||||
background-color #ffc3a7
|
||||
.grid_wrapper table th:first-child
|
||||
position: sticky;
|
||||
left: 0;
|
||||
z-index: 100;
|
||||
.grid_wrapper table td:first-child
|
||||
position: sticky;
|
||||
left: 0;
|
||||
z-index: 99;
|
||||
.grid_button
|
||||
padding 12px 20px
|
||||
|
||||
// tree
|
||||
.el-checkbox__inner:hover, .el-checkbox__input.is-focus .el-checkbox__inner
|
||||
border-color $green1
|
||||
.el-checkbox__input.is-checked .el-checkbox__inner, .el-checkbox__input.is-indeterminate .el-checkbox__inner
|
||||
background-color $green1
|
||||
border-color $green1
|
||||
|
||||
// 车辆信息
|
||||
.content_wrap
|
||||
_wh(100%, 100%)
|
||||
overflow-y auto
|
||||
.state_wrap
|
||||
width 100%
|
||||
_fj(, flex-start)
|
||||
.state_tip
|
||||
_wh(200px, 100px)
|
||||
_fj(center)
|
||||
_font(32px, 45px, #ffffff,,center)
|
||||
border 1px solid $red
|
||||
background-color #ffc3a7
|
||||
border-radius 6px
|
||||
margin-right 70px
|
||||
overflow hidden
|
||||
.state_content
|
||||
width calc(100% - 270px)
|
||||
height 100px
|
||||
margin-bottom 20px
|
||||
_fj(flex-start)
|
||||
flex-wrap wrap
|
||||
.state_item_1
|
||||
_wh(260px, 100px)
|
||||
_fj(center)
|
||||
border 1.6px solid #54C0B3
|
||||
background-color #fff
|
||||
_font(32px,33px,#54C0B3,,center)
|
||||
border-radius 16px
|
||||
margin-bottom 20px
|
||||
margin-right 24px
|
||||
.state_item_2
|
||||
_wh(calc(33.333333% - 16px), 100px)
|
||||
_fj(center)
|
||||
border 10px solid #DFE1E6
|
||||
background-color #fff
|
||||
border-radius 16px
|
||||
margin-bottom 20px
|
||||
margin-right 24px
|
||||
&:nth-child(3n)
|
||||
margin-right 0
|
||||
.state_item_2_dot
|
||||
display block
|
||||
_wh(24px,24px)
|
||||
background-color #ffffff
|
||||
border-radius 50%
|
||||
margin-right 24px
|
||||
.state_item_2_txt
|
||||
display block
|
||||
_font(32px,33px,#696969,,)
|
||||
.state_item_3
|
||||
_wh(calc(33.333333% - 16px), 100px)
|
||||
_fj(flex-start)
|
||||
border 1.6px solid #8B90A6
|
||||
background-color #fff
|
||||
border-radius 16px
|
||||
margin-bottom 20px
|
||||
margin-right 24px
|
||||
padding 10px 20px
|
||||
&:nth-child(3n)
|
||||
margin-right 0
|
||||
.state_item_3_txt1
|
||||
display block
|
||||
_font(32px,33px,#696969,,)
|
||||
margin-right 12px
|
||||
.state_item_3_txt2
|
||||
display block
|
||||
_font(32px,33px,#FA6400,,)
|
||||
.state_item_switch
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
line-height: 100px;
|
||||
height: 100px;
|
||||
vertical-align: middle;
|
||||
margin-bottom 20px
|
||||
margin-right 24px
|
||||
outline none
|
||||
background none
|
||||
cursor pointer
|
||||
.switch__input
|
||||
position: absolute;
|
||||
width: 0;
|
||||
height: 0;
|
||||
opacity: 0;
|
||||
margin: 0;
|
||||
.switch_core
|
||||
margin: 0;
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
width: 260px;
|
||||
height: 100px;
|
||||
border: 1px solid #dcdfe6;
|
||||
outline: none;
|
||||
border-radius: 60px;
|
||||
box-sizing: border-box;
|
||||
background: #dcdfe6;
|
||||
cursor: pointer;
|
||||
transition: border-color .3s,background-color .3s;
|
||||
vertical-align: middle;
|
||||
border-color: $gray2;
|
||||
background-color: $gray3;
|
||||
&::after
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 1px;
|
||||
left: 1px;
|
||||
border-radius: 100%;
|
||||
transition: all .3s;
|
||||
width: 97px;
|
||||
height: 97px;
|
||||
background-color: #fff;
|
||||
.is-checked
|
||||
.switch_core
|
||||
border-color: rgb(19, 206, 102);
|
||||
background-color: rgb(19, 206, 102);
|
||||
&::after
|
||||
left: 100%;
|
||||
margin-left: -98px;
|
||||
|
||||
// tree
|
||||
// .el-tree-node__content
|
||||
// height 60px
|
||||
// .el-tree-node__expand-icon,.el-checkbox,.el-tree-node__label
|
||||
// font-size 28px
|
||||
// .el-checkbox__inner
|
||||
// width 28px
|
||||
// height 28px
|
||||
// .el-checkbox__input.is-indeterminate .el-checkbox__inner::before
|
||||
// top 12px
|
||||
// .el-checkbox__input.is-checked .el-checkbox__inner::after
|
||||
// left: 11px;
|
||||
// top: 9px;
|
||||
// transform: rotate(45deg) scaleY(2)
|
||||
Reference in New Issue
Block a user