123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327 |
- /* theme color */
- /* icon font path, required */
- $--font-path: '~element-ui/lib/theme-chalk/fonts';
- @import "~element-ui/packages/theme-chalk/src/index";
- // 布局样式
- .bs-container {
- position: relative;
- height: 100% !important;
- // width: 100%;
- // position: absolute;
- box-sizing: border-box;
- // padding: 16px;
- background-color: var(--bs-background-1);
- .inner-container {
- height: 100% !important;
- background-color: var(--bs-background-2) !important;
- .filter-container {
- padding: 16px 16px 6px;
- .filter-item:not(:last-child) {
- margin-right: 10px;
- }
- .filter-item {
- display: inline-block;
- vertical-align: middle;
- margin-bottom: 10px;
- }
- .el-input {
- width: auto;
- }
- .el-select {
- width: auto;
- }
- }
- // page页样式
- .bs-pagination {
- position: absolute;
- right: 0;
- bottom: 16px;
- padding: 0 10px 0px 16px;
- }
- //输入框样式
- .el-input__inner {
- height: 30px;
- line-height: 30px;
- font-size: 12px;
- }
- .el-input__icon {
- line-height: 30px;
- }
- .el-form {
- .el-input__inner {
- width: 300px;
- }
- .el-select {
- .el-input__inner {
- width: auto;
- }
- }
- }
- //时间选择器样式
- .el-date-editor .el-range-input {
- height: 94%;
- font-size: 12px;
- }
- .el-date-editor .el-range__icon {
- line-height: 26px;
- }
- .el-date-editor .el-range-separator {
- line-height: 26px;
- font-size: 12px;
- }
- }
- }
- //表格样式
- .bs-table-box {
- padding: 0 16px;
- // height: calc(100vh - 340px);
- // margin-bottom: 16px;
- .el-table {
- // height: 100%;
- overflow-y: auto !important;
- background-color: transparent !important;
- border: 1px solid #e4e4e4 !important;
- th > .cell {
- padding-left: 14px !important;
- }
- th.gutter {
- background-color: #fafafa;
- }
- tr td {
- border-bottom: none !important;
- }
- tr:last-child td {
- border-bottom: none !important;
- }
- /ddeep/ .el-table::before {
- display: none !important;
- }
- .el-table thead {
- color: #36474f !important;
- }
- .el-table td {
- border-bottom: none !important;
- }
- .el-table--enable-row-hover .el-table__body tr:hover > td {
- background-color: #e6f6ff;
- }
- .el-table .cell {
- line-height: 24px !important;
- }
- .gc-table--grey th.is-leaf {
- border: none !important;
- background: #f5f5f5;
- }
- .el-table th, .el-table td {
- padding: 8px 0 !important;
- }
- // th.is-leaf {
- // border-bottom: 2px solid var(--bs-el-color-primary) !important;
- // }
- /* 滚动条样式设置*/
- .el-table__body-wrapper::-webkit-scrollbar {
- width: 12px !important;
- height: 12px !important;
- }
- .el-table__body-wrapper::-webkit-scrollbar-corner {
- background: transparent !important;
- }
- .el-table__body-wrapper::-webkit-scrollbar-track {
- border-radius: 10px !important;
- }
- .el-table__body-wrapper::-webkit-scrollbar-thumb {
- min-height: 20px !important;
- background-clip: content-box !important;
- border: 2px solid transparent !important;
- border-radius: 10px !important;
- // background-color: #ddd;
- }
- .el-table__fixed::before,
- .el-table__fixed-right::before {
- display: none !important;
- }
- }
- // 全局表格内部button行样式
- .el-table .cell {
- line-height: 22px;
- }
- .cell .el-button {
- padding: 5px 8px !important;
- }
- }
- //分页样式
- .bs-pagination {
- .el-pagination.is-background .btn-prev,
- .el-pagination.is-background .btn-next,
- .el-pagination.is-background .el-pager li {
- color: #bfbfbf;
- background-color: var(--bs-el-background-2);
- &:hover {
- color: var(--bs-el-text);
- background-color: var(--bs-el-color-primary);
- }
- }
- .el-pagination.is-background .btn-prev:disabled,
- .el-pagination.is-background .btn-next:disabled {
- color: #bfbfbf;
- background-color: var(--bs-el-background-2);
- }
- .el-pagination__total {
- color: #bfbfbf;
- }
- .el-pagination .el-select .el-input .el-input__inner {
- color: #bfbfbf;
- &:hover {
- color: var(--bs-el-color-primary);
- }
- }
- .el-pagination {
- text-align: right !important;
- font-weight: normal !important;
- }
- .el-pager li {
- padding: 0 !important;
- min-width: 32px !important;
- height: 32px !important;
- line-height: 32px !important;
- border-radius: 2px !important;
- }
- .el-pager li:not(.disabled).active {
- background-color: var(--bs-el-color-primary) !important;
- }
- .el-pagination span:not([class*=suffix]), .el-pagination button {
- font-size: 14px !important;
- min-width: 0 !important;
- height: 32px !important;
- line-height: 32px !important;
- }
- .el-pagination .el-input--mini .el-input__inner {
- height: 32px !important;
- line-height: 32px !important;
- }
- .el-pagination__editor.el-input .el-input__inner {
- height: 32px !important;
- }
- }
- /*解决el-scroll底部出现空白滚动条*/
- .el-scrollbar__wrap {
- overflow-x: hidden !important;
- }
- // dialog设置
- .bs-dialog-wrap {
- .el-select{
- display: inline-block !important;
- position: relative !important;
- width: auto !important;
- }
- .el-dialog{
- margin-top: 13vh !important;
- }
- .el-dialog__wrapper {
- overflow: hidden !important;
- }
- .el-dialog__body {
- padding: 18px 24px !important;
- max-height: calc(90vh - 250px) !important;
- min-height: 200px;
- overflow-y: auto;
- }
- // dialog头部
- .el-dialog__header {
- background: #f5f5f5;
- background-color: #F5F5F5;
- padding: 0 !important;
- height: 40px;
- line-height: 40px;
- font-size: 15px;
- font-weight: 700;
- .el-dialog__headerbtn {
- position: absolute;
- top: 10px;
- right: 20px;
- padding: 0;
- background: 0 0;
- border: none;
- outline: 0;
- cursor: pointer;
- font-size: 16px;
- }
- }
- .el-dialog__title {
- display: inline-block;
- font-size: 16px;
- position: relative;
- padding-left: 20px;
- border-left: none !important;
- }
-
- .el-dialog__title::before {
- content: "" !important;
- height: 16px !important;
- position: absolute !important;
- left: 0 !important;
- top: 50% !important;
- transform: translateY(-50%) !important;
- border-left: 4px solid var(--bs-el-color-primary) !important;
- }
- }
|