Files
profitManage/src/assets/styles/index.scss
康冉冉 c7d6196f46 修改bug
2025-09-28 19:02:28 +08:00

314 lines
4.8 KiB
SCSS

@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './btn.scss';
body {
height: 100%;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}
label {
font-weight: 700;
}
html {
height: 100%;
box-sizing: border-box;
}
#app {
height: 100%;
}
*,
*:before,
*:after {
box-sizing: inherit;
}
.no-padding {
padding: 0px !important;
}
.padding-content {
padding: 4px 0;
}
a:focus,
a:active {
outline: none;
}
a,
a:focus,
a:hover {
cursor: pointer;
color: inherit;
text-decoration: none;
}
div:focus {
outline: none;
}
.fr {
float: right;
}
.fl {
float: left;
}
.pr-5 {
padding-right: 5px;
}
.pl-5 {
padding-left: 5px;
}
.plr-20 {
padding: 0 20px;
}
.plr-50 {
padding: 0 50px;
}
.p10 {
padding: 10px;
}
.p15 {
padding: 15px;
}
.p20 {
padding: 20px;
}
.m0Auto {
margin: 0 auto;
}
.mtb10 {
margin: 10px 0;
}
.mt50 {
margin-top: 50px;
}
.fontSize15 {
font-size: 15px;
}
.block {
display: block;
}
.pointer {
cursor: pointer;
}
.clearfix {
&:after {
visibility: hidden;
display: block;
font-size: 0;
content: " ";
clear: both;
height: 0;
}
}
aside {
background: #eef1f6;
padding: 8px 24px;
margin-bottom: 20px;
border-radius: 2px;
display: block;
line-height: 32px;
font-size: 16px;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
color: #2c3e50;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
a {
color: #337ab7;
cursor: pointer;
&:hover {
color: rgb(32, 160, 255);
}
}
}
//main-container全局样式
.app-container {
//height: calc(100vh - 85px);
padding: 8px 20px 20px;
overflow: auto;
}
.app-viewContent {
height: calc(100vh - 85px);
overflow: scroll;
}
.components-container {
margin: 30px 50px;
position: relative;
}
.text-center {
text-align: center
}
.sub-navbar {
height: 50px;
line-height: 50px;
position: relative;
width: 100%;
text-align: right;
padding-right: 20px;
transition: 600ms ease position;
background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);
.subtitle {
font-size: 20px;
color: #fff;
}
&.draft {
background: #d0d0d0;
}
&.deleted {
background: #d0d0d0;
}
}
.link-type,
.link-type:focus {
color: #337ab7;
cursor: pointer;
&:hover {
color: rgb(32, 160, 255);
}
}
.filter-container {
padding-bottom: 10px;
.filter-item {
display: inline-block;
vertical-align: middle;
margin-bottom: 10px;
}
}
.verticalAlign{
vertical-align: middle;
}
.el-tooltip__trigger {
vertical-align: middle;
cursor: pointer;
}
.el-form--inline .el-form-item {
margin-right: 25px;
}
.app-main .el-form-item {
margin-left: 20px;
}
.el-form .el-select {
width: 100%;
}
[class*=el-col-] {
float: none;
display: inline-block;
}
.el-form .el-date-editor.el-input, .el-date-editor.el-input__inner {
width: 100%!important;
}
.disBlock {
display: block;
}
.disInlineBlock {
display: inline-block;
}
.w30 {
width: 30%;
}
.w40 {
width: 40%;
}
.w45 {
width: 45%;
}
.w50 {
width: 50%;
}
.w60 {
width: 60%;
}
.w70 {
width: 70%;
}
.w80 {
width: 80%;
}
.w100 {
width: 100%;
}
.h40 {
height: 40%;
}
.h100 {
height: 100%;
}
.textAlignCenter {
text-align: center;
}
// form属性下边距
.el-form-item--small.el-form-item{
margin-bottom: 8px;
}
// table列表上方 form搜索条件 label
.pageTopForm .el-form-item__label {
width: 68px!important;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
// table列表上方 form搜索条件 label后面的选项框
.pageTopForm .el-form-item__content {
margin-left: 68px!important;
}
// table列表上方 form搜索条件 选项框后设置距离
.pageTopForm .el-form-item {
margin-left: 0px!important;
margin-right: 10px;
}
// 多选下拉 为选中后 选中图标设置到最前面留空间
.el-select-dropdown.is-multiple .el-select-dropdown__item {
padding-left: 30px;
}
// 多选下拉 选中后 选中图标设置到最前面
.el-select-dropdown.is-multiple .el-select-dropdown__item.selected::after {
left: 10px;
right: 0px;
}
// form表单只读时
.el-textarea.is-disabled .el-textarea__inner , .el-input.is-disabled .el-input__inner {
background-color: transparent;
border-color: transparent;
color: #C0C4CC;
cursor: not-allowed;
resize: none;
}
.el-input.is-disabled .el-input__icon {
display: none;
}
.el-select .el-input.is-disabled .el-input__inner:hover {
border-color: transparent;
}