@import './color'; /*************************右侧内容窗口样式*************************/ .app-container{ flex:1; display: flex; flex-direction: column; background: $acquiesceThemeColorE; border-radius:10px; overflow: hidden; padding:0; margin:5px 20px 20px 10px; box-shadow: 0 0 8px 1px rgba(0, 0, 0, 0.1); .page-container{ flex:1; display:flex; flex-direction: column; overflow: hidden; } } //===========================右侧内容窗口页面公共样式=========================== //普通查询条件 .page-form-title-box{ height:80px; border-bottom:1px solid #dedede; padding:20px 20px 0 20px; } //高级查询条件 .page-advanced-form-title-box{ height:140px; padding:20px 10px 0 20px; } .page-content-box{ flex: 1; display: flex; flex-direction: column; padding:20px; overflow: hidden; } /*************************表单表格样式*************************/ .el-form-item{ margin-bottom:20px; } .el-form-item--medium .el-form-item__label{ color:#333; font-weight:500; } .pt5 { padding-top: 5px; } .pr5 { padding-right: 5px; } .pb5 { padding-bottom: 5px; } .mt5 { margin-top: 5px; } .mr5 { margin-right: 5px; } .mb5 { margin-bottom: 5px; } .mb8 { margin-bottom: 8px; } .ml5 { margin-left: 5px; } .mt10 { margin-top: 10px; } .mr10 { margin-right: 10px; } .mb10 { margin-bottom: 10px; } .ml0 { margin-left: 10px; } .mt20 { margin-top: 20px; } .mr20 { margin-right: 20px; } .mb20 { margin-bottom: 20px; } .m20 { margin-left: 20px; } .h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 { font-family: inherit; font-weight: 500; line-height: 1.1; color: inherit; } .el-dialog:not(.is-fullscreen){ margin-top: 6vh !important; } //table 过长文本浮层样式 .el-tooltip__popper.is-dark{ max-width:60%!important; } //*****************************表格***************************** //el-table 表头/内容文字对齐方向 .table-box{ border-right:1px solid $acquiesceThemeTableB; background-color: $acquiesceThemeColorF; //表头 th{ background-color: #f5f5f5; .cell{ color:#333; font-size:14px; font-weight:700; text-align: center; } } td{ .cell{ padding:0 10px 0 12px; } div{ font-size:14px; font-weight:500; } //勾选框 .el-checkbox{ display: block; height:22px; width:14px; margin: 6px auto; overflow: hidden; span{ display: block; height: 24px; width: 14px; overflow: hidden; span{ height: 14px; width: 14px; margin: 0 auto; } } } } //默认对齐方向 .cell{ text-align: left; height:27px; line-height:27px; } //向左对齐方向 .is-table-left{ .cell{ text-align: left; } } //居中对齐方向 .is-table-center{ .cell{ text-align: center; } } //向右对齐方向 .is-table-right{ .cell{ text-align: right; } } .caret-wrapper{ height:20px; } .sort-caret.ascending{ top:-3px; } .sort-caret.descending{ bottom:-1px; } .el-table__header-wrapper{ width: calc(100% - 9px); border-right:1px solid $acquiesceThemeTableA; height:40px; th, td{ padding:6px 0; } } .el-table__header-wrapper, .el-table__fixed-header-wrapper { th { word-break: break-word; background-color: $acquiesceThemeTableD; color: $acquiesceThemeTableE; height: 40px; } } .el-table__header-wrapper th, .el-table__fixed-header-wrapper th{ color:$acquiesceThemeTableF; background-color:$acquiesceThemeTableA; line-height:20px; } .el-table__body-wrapper { background-color: $acquiesceThemeTableC; flex: 1; overflow-y: scroll!important; th, td{ padding:6px 0; } .el-button [class*="el-icon-"] + span { margin-left: 1px; } } //表格内switch按钮样式 .el-switch{ height:26px; line-height: 26px; } .switch .el-switch__label { position: absolute; display: none; color: #fff !important; } .switch .el-switch__label--right { z-index: 1; } .switch .el-switch__label--right span{ margin-left: 10px; } .switch .el-switch__label--left { z-index: 1; } .switch .el-switch__label--left span{ margin-left: 24px; } .switch .el-switch__label.is-active { display: block; } .switch.el-switch .el-switch__core, .el-switch .el-switch__label { width: 64px !important; margin: 0; height:26px; line-height: 26px; border-radius:14px; } .el-switch__core:after{ top: 4px; left: 4px; } .el-switch.is-checked .el-switch__core::after{ margin-left:-20px; } } //*****************************无高度限制表格***************************** .table-box-no-height{ border-right:1px solid $acquiesceThemeTableB; background-color: $acquiesceThemeColorF; //表头 th{ background-color: #f5f5f5; .cell{ color:#333; font-size:14px; font-weight:700; text-align: center; } } td{ .cell{ padding:0 10px 0 12px; } div{ font-size:14px; font-weight:500; } //勾选框 .el-checkbox{ display: block; height:22px; width:14px; margin: 6px auto; overflow: hidden; span{ display: block; height: 24px; width: 14px; overflow: hidden; span{ height: 14px; width: 14px; margin: 0 auto; } } } } //默认对齐方向 .cell{ text-align: left; } //向左对齐方向 .is-table-left{ .cell{ text-align: left; } } //居中对齐方向 .is-table-center{ .cell{ text-align: center; } } //向右对齐方向 .is-table-right{ .cell{ text-align: right; } } .caret-wrapper{ height:20px; } .sort-caret.ascending{ top:-3px; } .sort-caret.descending{ bottom:-1px; } .el-table__header-wrapper{ width: calc(100% - 9px); border-right:1px solid $acquiesceThemeTableA; height:40px; th, td{ padding:6px 0; } } .el-table__header-wrapper, .el-table__fixed-header-wrapper { th { word-break: break-word; background-color: $acquiesceThemeTableD; color: $acquiesceThemeTableE; height: 40px; } } .el-table__header-wrapper th, .el-table__fixed-header-wrapper th{ color:$acquiesceThemeTableF; background-color:$acquiesceThemeTableA; line-height:20px; } .el-table__body-wrapper { background-color: $acquiesceThemeTableC; flex: 1; overflow-y: scroll!important; th, td{ padding:6px 0; } .el-button [class*="el-icon-"] + span { margin-left: 1px; } } //表格内switch按钮样式 .el-switch{ height:26px; line-height: 26px; } .switch .el-switch__label { position: absolute; display: none; color: #fff !important; } .switch .el-switch__label--right { z-index: 1; } .switch .el-switch__label--right span{ margin-left: 10px; } .switch .el-switch__label--left { z-index: 1; } .switch .el-switch__label--left span{ margin-left: 24px; } .switch .el-switch__label.is-active { display: block; } .switch.el-switch .el-switch__core, .el-switch .el-switch__label { width: 64px !important; margin: 0; height:26px; line-height: 26px; border-radius:14px; } .el-switch__core:after{ top: 4px; left: 4px; } .el-switch.is-checked .el-switch__core::after{ margin-left:-20px; } } .table-null-img-10{ .el-table__empty-text{ background-size: 10%!important; } } .table-null-img-15{ .el-table__empty-text{ background-size: 15%!important; } } .table-null-img-20{ .el-table__empty-text{ background-size: 20%!important; } } .table-null-img-30{ .el-table__empty-text{ background-size: 30%!important;; } } .table-null-img-40{ .el-table__empty-text{ background-size: 40%!important;; } } .table-null-img-50{ .el-table__empty-text{ background-size: 50%!important;; } } .table-null-img-60{ .el-table__empty-text{ background-size: 60%!important;; } } //表格滚动条样式 .el-table__body-wrapper::-webkit-scrollbar{ width: 6px; /*高宽分别对应横竖滚动条的尺寸*/ height: 6px; } .el-table__body-wrapper::-webkit-scrollbar-thumb{ border-radius: 5px; background: $acquiesceThemeScrollbarB; } .el-table__body-wrapper::-webkit-scrollbar-track{ -webkit-box-shadow: inset 0 0 5px $acquiesceThemeScrollbarA; border-radius: 0; background: $acquiesceThemeScrollbarA; } //表格缺省样式 .el-table__empty-text{ font-size:0; color:rgba(0,0,0,0); width:100%; height:100%; background: url("../ZDimages/basicsModules/null-data-1.png") no-repeat 50% 50%; background-color: $acquiesceThemeTableC; background-size: 10%; } .el-table--group::after, .el-table--border::after{ width:0; } .el-table--fit{ flex: 1; display: flex; flex-direction: column; } .el-table__row{ color:$acquiesceThemeTableF; } .el-table__fixed { height: calc(100% - 8px)!important; } .el-table__fixed, .el-table__fixed-right{ top:0; left:0; } .el-table__fixed::before, .el-table__fixed-right::before{ background-color: rgba(255,255,255,0); } .el-table__fixed-body-wrapper{ height: calc(100% - 48px); overflow-y: auto; } .el-table--medium th, .el-table--medium td { padding: 6px 0; border-right: 0 solid #dfe6ec; border-left: 1px solid #dfe6ec; } .el-table--medium{ th:nth-child(1){ border-left: 0px solid #dfe6ec !important; } td:nth-child(1){ border-left: 0px solid #dfe6ec !important; } } //表头 .el-table__fixed-header-wrapper{ th, td{ padding:6px 0; } .el-table--medium th, .el-table--medium td{ padding:12px 0!important; border-top: 1px solid $acquiesceThemeTableB !important; } } // 表格更多操作下拉样式 .el-table .el-dropdown-link { cursor: pointer; color: $acquiesceThemeTableH; margin-left: 5px; } .el-table .el-dropdown, .el-icon-arrow-down { font-size: 12px; } /****************************表单布局****************************/ .form-header { font-size:15px; color:#6379bb; border-bottom:1px solid #dddddd; margin:8px 10px 25px 10px; padding-bottom:5px } /* tree border */ .tree-border { margin-top: 5px; border: 1px solid #e5e6e7; background: #fff none; border-radius:4px; } .el-table .fixed-width .el-button--mini { padding-left: 0; padding-right: 0; width: inherit; } .el-tree-node__content > .el-checkbox { margin-right: 8px; } .list-group-striped > .list-group-item { border-left: 0; border-right: 0; border-radius: 0; padding-left: 0; padding-right: 0; } .list-group { padding-left: 0; list-style: none; } .list-group-item { border-bottom: 1px solid #e7eaec; border-top: 1px solid #e7eaec; margin-bottom: -1px; padding: 11px 0; font-size: 13px; } .pull-right { float: right !important; } .el-card__header { padding: 14px 15px 7px; min-height: 40px; } .el-card__body { padding: 15px 20px 20px 20px; } .card-box { padding-right: 15px; padding-left: 15px; margin-bottom: 10px; } /* button color */ .el-button--cyan.is-active, .el-button--cyan:active { background: #20B2AA; border-color: #20B2AA; color: #FFFFFF; } .el-button--cyan:focus, .el-button--cyan:hover { background: #48D1CC; border-color: #48D1CC; color: #FFFFFF; } .el-button--cyan { background-color: #20B2AA; border-color: #20B2AA; color: #FFFFFF; } /* text color */ .text-navy { color: #1ab394; } .text-primary { color: inherit; } .text-success { color: #1c84c6; } .text-info { color: #23c6c8; } .text-warning { color: #f8ac59; } .text-danger { color: #ed5565; } .text-muted { color: #888888; } /* image */ .img-circle { border-radius: 50%; } .img-lg { width: 120px; height: 120px; } .avatar-upload-preview { position: absolute; top: 50%; transform: translate(50%, -50%); width: 200px; height: 200px; border-radius: 50%; box-shadow: 0 0 4px #ccc; overflow: hidden; } /* 拖拽列样式 */ .sortable-ghost{ opacity: .8; color: #fff!important; background: #42b983!important; } .top-right-btn { position: relative; float: right; } /*************************表格翻页样式*************************/ .el-pagination.is-background .btn-next, .el-pagination.is-background .btn-prev, .el-pagination.is-background .el-pager li{ background-color: $acquiesceThemeColorE; color: $acquiesceThemeColorG; font-weight:700; } .el-pagination.is-background .el-pager li:not(.disabled).active{ background-color: $acquiesceThemeColorE; color: $acquiesceThemeColorC; } .pagination-container{ padding:20px 0 0 0!important; .el-pagination__sizes{ width: 120px !important; overflow: hidden!important; .teacher .el-select{ width: 120px !important; } input{ border:none; } } .el-pagination{ display: flex; width:100%; } } .el-pagination__total{ flex:1; text-align: right; } @media ( max-width : 768px) { .pagination-container .el-pagination > .el-pagination__jump { display: none !important; } .pagination-container .el-pagination > .el-pagination__sizes { display: none !important; } } /*************************顶部导航样式*************************/ /*顶部按钮滚动条*/ .tags-view-container{ padding:0!important; margin:0!important; overflow: hidden; .scroll-container{ padding:0!important; margin:0!important; overflow: hidden; .el-scrollbar__wrap{ padding:0!important; margin:0!important; overflow: hidden; .el-scrollbar__view{ margin-top:16px; height:50px; overflow-x: scroll; overflow-y: hidden; } //滚动条样式 .el-scrollbar__view::-webkit-scrollbar{ width: 6px; /*高宽分别对应横竖滚动条的尺寸*/ height: 6px; } .el-scrollbar__view::-webkit-scrollbar-thumb{ border-radius: 5px; -webkit-box-shadow: inset 0 0 5px $acquiesceThemeScrollbarB; background: $acquiesceThemeScrollbarA } .el-scrollbar__view::-webkit-scrollbar-track{ -webkit-box-shadow: inset 0 0 5px rgba(255,255,255,0); border-radius: 0; background: rgba(255,255,255,0); } } } } .el-dropdown-menu{ .el-dropdown-menu__item{ min-width:80px; text-align: center; min-height:30px; line-height:30px; } } .el-dropdown-menu .popper__arrow{ left:65px!important; } //*************************顶部导航-更多下啦列表************************* .el-menu--horizontal{ .el-menu{ padding:10px 0; margin:0; border-bottom-left-radius: 6px; border-bottom-right-radius: 6px; overflow: hidden; background: $acquiesceThemeColorF!important; box-shadow: 0 0 8px 1px rgba(0, 0, 0, 0.2); } } .all-menu{ font-size:16px; font-weight:500; margin:5px 10px; background: $acquiesceThemeColorF!important; color:$acquiesceThemeColorD!important; border-radius:10px; } .all-menu:hover{ background: $acquiesceThemeColorA!important; color:$acquiesceThemeColorE!important; border-radius:10px; } .el-menu--horizontal > .el-menu-item:not(.is-disabled):hover, .el-menu--horizontal > .el-menu-item:not(.is-disabled):focus{ background: $acquiesceThemeColorB !important; } //框架样式 #app { .main-container { flex:1; margin-left:300px; background: $acquiesceThemeColorE; display: flex; flex-direction: column; transition: margin-left .28s; position: relative; overflow: hidden; } /*************************顶部导航样式*************************/ .top-submenu{ background: $acquiesceThemeColorA; border:0!important; //顶部导航选中 .is-active{ background: $acquiesceThemeColorB; --theme: $acquiesceThemeColorB; } //顶部导航按钮 .el-menu-item{ padding:0 20px!important; margin:0!important; font-size:16px; font-weight:500; } //顶部导航悬浮 .el-menu-item:hover{ background: $acquiesceThemeColorB; } //顶部导航-更多按钮 .el-submenu__title{ color:$acquiesceThemeColorE!important; height:80px!important; line-height:80px!important; margin:0!important; padding:0 20px!important; font-size:16px; font-weight:500; .el-submenu__icon-arrow{ margin-top:-2px!important; } } //顶部导航-更多悬浮 .el-submenu__title:hover{ background: $acquiesceThemeColorB; } } /*************************左侧导航样式*************************/ .sidebar-container { width:300px; -webkit-transition: width .28s; transition: width 0.28s; background-color: $acquiesceThemeColorE; height: 100%; font-size: 0; top: 0; bottom: 0; left: 0; z-index: 11; -webkit-box-shadow: 2px 0 6px rgba(0,21,41,.35); overflow: hidden; padding:0 20px; box-shadow: 0 0 8px 1px rgba(0, 0, 0, 0.1); //logo栏 .sidebar-logo-container{ background:$acquiesceThemeColorE; } .theme-dark{ .nest-menu{ svg{ display: none; } span{ margin-left:30px; font-size:14px; } } } .horizontal-collapse-transition { transition: 0s width ease-in-out, 0s padding-left ease-in-out, 0s padding-right ease-in-out; } .scrollbar-wrapper { overflow-x: hidden !important; //padding-right:17px; } .scrollbar-wrapper::-webkit-scrollbar{ display: none; } .el-scrollbar__bar.is-vertical { right: 0; display: none; } .el-scrollbar { height: 100%; } &.has-logo { .el-scrollbar { height: calc(100% - 50px); } } .is-horizontal { display: none; } .svg-icon { margin-right: 16px; } .el-menu { background: $acquiesceThemeColorE; font-family: Microsoft YaHei; font-weight: bold; border: none; height: 100%; width:260px; span{ font-weight: 700; } } //左侧菜单 .el-menu-item, .submenu-title-noDropdown, .el-submenu__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background:$acquiesceThemeColorE!important; color:$acquiesceThemeColorD!important; font-size:16px; font-weight:700; margin:10px 0 0 0; border-radius:10px; height:40px; line-height:40px; svg{ color:$acquiesceThemeColorA!important; } span{ display: inline-block; margin-top:-3px; } i{ display: inline-block; } } //左侧菜单-悬浮/选中 .el-menu-item:hover, .submenu-title-noDropdown:hover, .el-submenu__title:hover{ background:$acquiesceThemeColorA!important; color:$acquiesceThemeColorE!important; span{ color:$acquiesceThemeColorE!important; } i{ color:$acquiesceThemeColorE!important; } svg{ color:$acquiesceThemeColorE!important; } } .check-menu-box { display: inline-block; width:260px; overflow: hidden; //左侧选中样式 .is-active{ background:$acquiesceThemeColorA!important; color:$acquiesceThemeColorE!important; span{ color:$acquiesceThemeColorE!important; } i{ color:$acquiesceThemeColorE!important; } svg{ color:$acquiesceThemeColorE!important; } } } a { display: inline-block; width: 100%; overflow: hidden; //左侧选中样式 .is-active{ background:$acquiesceThemeColorA!important; color:$acquiesceThemeColorE!important; span{ color:$acquiesceThemeColorE!important; } i{ color:$acquiesceThemeColorE!important; } svg{ color:$acquiesceThemeColorE!important; } } } } .hideSidebar { .sidebar-container { width: 54px !important;//屏幕适配 } .main-container { margin-left: 54px; } .submenu-title-noDropdown { padding: 0 !important; position: relative; .el-tooltip { padding: 0 !important; .svg-icon { margin-left: 20px; } } } .el-submenu { overflow: hidden; &>.el-submenu__title { padding: 0 !important; .svg-icon { margin-left: 20px; } } } .el-menu--collapse { .el-submenu { &>.el-submenu__title { &>span { height: 0; width: 0; overflow: hidden; visibility: hidden; display: inline-block; } } } } } // mobile responsive .mobile { .main-container { margin-left: 0; } .sidebar-container { transition: transform .28s; width: 200px !important; } &.hideSidebar { .sidebar-container { pointer-events: none; transition-duration: 0.3s; transform: translate3d(-200px, 0, 0); } } } .withoutAnimation { .main-container, .sidebar-container { transition: none; } } } // when menu collapsed .el-menu--vertical { &>.el-menu { .svg-icon { margin-right: 16px; } } .nest-menu .el-submenu>.el-submenu__title, .el-menu-item { &:hover { background-color: rgba(0, 0, 0, 0.06) !important; } } >.el-menu--popup { max-height: 100vh; overflow-y: auto; &::-webkit-scrollbar-track-piece { background: $acquiesceThemeScrollbarC; } &::-webkit-scrollbar { width: 6px; } &::-webkit-scrollbar-thumb { background: $acquiesceThemeScrollbarC; border-radius: 20px; } } } //右侧小图标-菜单关闭 .el-submenu>.el-submenu__title .el-submenu__icon-arrow{ -webkit-transform: rotateZ(-90deg); -ms-transform: rotate(-90deg); transform: rotateZ(-90deg); margin-top: -10px; } //右侧小图标-菜单展开 .el-submenu.is-opened>.el-submenu__title .el-submenu__icon-arrow{ -webkit-transform: rotateZ(0deg); -ms-transform: rotate(0deg); transform: rotateZ(0deg); margin-top: -10px; } //右侧小图标-样式 .el-submenu>.el-submenu__title .el-submenu__icon-arrow::before{ font-size:20px; } /*************************btn*************************/ @mixin colorBtn($color) { background: $color; &:hover { color: $color; &:before, &:after { background: $color; } } } .blue-btn { @include colorBtn($blue) } .light-blue-btn { @include colorBtn($light-blue) } .red-btn { @include colorBtn($red) } .pink-btn { @include colorBtn($pink) } .green-btn { @include colorBtn($green) } .tiffany-btn { @include colorBtn($tiffany) } .yellow-btn { @include colorBtn($yellow) } .pan-btn { font-size: 14px; color: #fff; padding: 14px 36px; border-radius: 8px; border: none; outline: none; transition: 600ms ease all; position: relative; display: inline-block; &:hover { background: #fff; &:before, &:after { width: 100%; transition: 600ms ease all; } } &:before, &:after { content: ''; position: absolute; top: 0; right: 0; height: 2px; width: 0; transition: 400ms ease all; } &::after { right: inherit; top: inherit; left: 0; bottom: 0; } } .custom-button { display: inline-block; line-height: 1; white-space: nowrap; cursor: pointer; background: #fff; color: #fff; -webkit-appearance: none; text-align: center; box-sizing: border-box; outline: 0; margin: 0; padding: 10px 15px; font-size: 14px; border-radius: 4px; } /*************************mixin*************************/ @mixin clearfix { &:after { content: ""; display: table; clear: both; } } @mixin scrollBar { &::-webkit-scrollbar-track-piece { background: #d3dce6; } &::-webkit-scrollbar { width: 6px; } &::-webkit-scrollbar-thumb { background: #99a9bf; border-radius: 20px; } } @mixin relative { position: relative; width: 100%; height: 100%; } @mixin pct($pct) { width: #{$pct}; position: relative; margin: 0 auto; } @mixin triangle($width, $height, $color, $direction) { $width: $width/2; $color-border-style: $height solid $color; $transparent-border-style: $width solid transparent; height: 0; width: 0; @if $direction==up { border-bottom: $color-border-style; border-left: $transparent-border-style; border-right: $transparent-border-style; } @else if $direction==right { border-left: $color-border-style; border-top: $transparent-border-style; border-bottom: $transparent-border-style; } @else if $direction==down { border-top: $color-border-style; border-left: $transparent-border-style; border-right: $transparent-border-style; } @else if $direction==left { border-right: $color-border-style; border-top: $transparent-border-style; border-bottom: $transparent-border-style; } } /*************************transition*************************/ // global transition css /* fade */ .fade-enter-active, .fade-leave-active { transition: opacity 0.28s; } .fade-enter, .fade-leave-active { opacity: 0; } /* fade-transform */ .fade-transform-leave-active, .fade-transform-enter-active { transition: all .5s; } .fade-transform-enter { opacity: 0; transform: translateX(-30px); } .fade-transform-leave-to { opacity: 0; transform: translateX(30px); } /* breadcrumb transition */ .breadcrumb-enter-active, .breadcrumb-leave-active { transition: all .5s; } .breadcrumb-enter, .breadcrumb-leave-active { opacity: 0; transform: translateX(20px); } .breadcrumb-move { transition: all .5s; } .breadcrumb-leave-active { position: absolute; } /************* 页面switch样式 **************/ .page-switch{ .el-switch{ margin-top:2px; } .el-switch__label { position: absolute; display: none; color: #fff !important; } .el-switch__label--right { z-index: 1; } .el-switch__label--right span{ margin-left: 14px; } .el-switch__label--left { z-index: 1; } .el-switch__label--left span{ margin-left: 29px; } .el-switch__label.is-active { display: block; } .el-switch .el-switch__core, .el-switch .el-switch__label { width: 70px !important; margin: 0; height: 30px; line-height: 30px; border-radius:15px; } .el-switch__core:after{ top: 6px; left: 6px; } .el-switch.is-checked .el-switch__core::after{ margin-left:-21px; } } /************* el-input-number 操作按钮样式修复 **************/ .el-input-number--medium .el-input-number__increase, .el-input-number--medium .el-input-number__decrease{ height:38px; line-height:38px; } /************* 新子组件头部标题与按钮样式 ****************/ .page-container-top-max-big-box { height: 60px; display: flex; overflow: hidden; padding: 0 20px; border-bottom: 1px solid #dedede; align-items: center; .top-1-p { flex: 1; font-size: 16px; } .top-2-p { height: 35px; line-height: 33px; margin-left: 20px; padding: 0 20px; border-radius: 4px; background-color: #fff; border: 1px solid #999; color: #999; cursor: pointer; } .top-3-p { height: 35px; line-height: 33px; margin-left: 20px; padding: 0 20px; border-radius: 4px; background-color: #dedede; border: 1px solid #dedede; color: #333; cursor: pointer; } .top-4-p { height: 35px; line-height: 33px; margin-left: 20px; padding: 0 20px; border-radius: 4px; background-color: #0183fa; border: 1px solid #0183fa; color: #fff; cursor: pointer; } } /************* 单选按钮 位置修复 ****************/ .el-radio{ margin-top:5px; } .el-cascader-panel{ .el-radio{ margin-top:2px; } }