qa-prevention-xgf-vue/src/styles/index.scss

605 lines
8.2 KiB
SCSS

@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './btn.scss';
@import './globle.scss';
body {
margin: 0;
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;
}
.viewer-container{
z-index: 9999999 !important;
}
label {
font-weight: 700;
}
html {
height: 100%;
box-sizing: border-box;
}
#app {
height: 100%;
}
*,
*:before,
*:after {
box-sizing: inherit;
}
ul,
li {
list-style: none;
margin: 0;
padding: 0;
}
.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;
}
.mt-20 {
margin-top: 20px;
}
.mb-10 {
margin-bottom: 10px;
}
.mb-20 {
margin-bottom: 20px;
}
.mr-10 {
margin-right: 10px;
}
.mr-20 {
margin-right: 20px;
}
.pr-5 {
padding-right: 5px;
}
.pl-5 {
padding-left: 5px;
}
.color-red {
color: red;
}
.block {
display: block;
}
.bb {
border-bottom: 1px solid #f1f1f1;
}
.pointer {
cursor: pointer;
}
.inlineBlock {
display: block;
}
.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 {
padding: 20px;
}
.app-contprint {
padding: 20px;
}
.app-contprint0 {
padding: 0 20px 20px 20px;
}
.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: 15px;
.filter-item {
display: inline-block;
vertical-align: middle;
}
.filter-group {
display: inline-block;
vertical-align: middle;
padding-left: 10px;
&:last-child {
padding-right: 20px;
}
.filter-lable {
display: inline-block;
vertical-align: middle;
font-size: 12px;
}
.filter-width {
display: inline-block;
vertical-align: middle;
width: 160px;
}
.filter-date {
display: inline-block;
vertical-align: middle;
}
}
.filter-lable {
display: inline-block;
font-size: 13px;
text-align: right;
color: #606266;
}
}
//refine vue-multiselect plugin
.multiselect {
line-height: 16px;
}
.multiselect--active {
z-index: 1000 !important;
}
// 分页和按钮组
.page-btn-group {
display: flex;
flex-direction: row;
justify-content: space-between;
padding-top: 20px;
align-items: flex-end;
}
.filter-btn-group {
margin-bottom: 10px;
}
// 一行布局flex左右对齐
.inline-flex {
display: flex;
flex-direction: row;
justify-content: space-between;
}
.table-ui {
border-collapse: collapse;
width: 100%;
th {
background-color: #f9f9f9;
padding: 0.9rem 0.8rem;
font-size: 14px;
line-height: 1.6;
border: 1px solid #eaeaea;
text-align: left;
}
td {
border: 1px solid #eaeaea;
padding: 8px;
font-size: 14px;
line-height: 1.6;
}
.bgst {
background: #f9f9f9;
text-align: center;
}
.abg {
background: #f9f9f9;
text-align: right;
width: 160px;
}
.bbg {
background: #f9f9f9;
width: 120px;
text-align: center;
}
.tbg {
background: #f9f9f9;
text-align: right;
width: 120px;
}
.w-space {
white-space: nowrap;
text-align: center;
}
.cbg {
background: #f9f9f9;
text-align: right;
width: 140px;
}
.label.label-danger {
background: #f44236;
color: #ffffff;
}
.label.label-success {
background: #1de9b6;
color: #ffffff;
}
.label.label-warning {
background: #f4c22b;
color: #ffffff;
}
.label.label-info {
background: #3ebfea;
color: #ffffff;
}
.label.label-orange {
background: #fa7423;
color: #ffffff;
}
}
// 通用底部
.ui-height {
height: 60px;
}
.ui-foot {
position: fixed;
width: calc(100% - 210px);
bottom: 0;
height: 60px;
line-height: 60px;
background-color: #f1f1f1;
text-align: center;
}
// 分级标题
.level-title {
padding-left: 10px;
border-left: 4px solid #04a9f5;
margin-bottom: 20px;
display: flex;
align-items: center;
position: relative;
h1 {
font-size: 15px;
font-weight: bold;
margin: 0;
}
.level-search {
position: absolute;
left: 80px;
display: flex;
flex-direction: row;
}
.level-btns {
position: absolute;
right: 0;
}
.level-code {
position: absolute;
right: 0;
font-size: 14px;
}
}
.level-line {
background-color: #f1f1f1;
height: 1px;
overflow: hidden;
margin-bottom: 20px;
}
.table-vi {
border-collapse: collapse;
width: calc(100% + 2px);
margin: -1px -2px -1px -1px;
th {
background-color: #f9f9f9;
padding: 8px;
font-size: 14px;
line-height: 1.6;
border: 1px solid #eaeaea;
text-align: center;
font-weight: normal;
}
td {
border: 1px solid #eaeaea;
padding: 8px;
font-size: 14px;
line-height: 1.4;
}
.numberbg {
background: #f9f9f9;
text-align: center;
}
.tcenter {
text-align: center;
}
.select {
width: 80px;
}
}
// 打印选项
@page {
/* size: landscape; */
/* size: portrait; */
size: A4;
margin: 0 20px;
width: 100%;
// margin-top: 20px;
}
@media print {
.noprint {
display: none;
}
.print-break {
page-break-after: always;
padding-top: 20px
}
.app-contprint {
padding: 20px 0;
}
.app-contprint0 {
padding: 0;
}
.height-a4 {
height: 692px;
margin-bottom: 120px;
}
.print-approve {
.level-title {
padding-left: 0px;
border: none;
text-align: center;
display: block;
margin-bottom: 12px;
position: relative;
h1 {
font-size: 24px;
text-align: center;
margin: 24px !important;
}
}
.table-ui {
td,
th {
font-size: 14px;
line-height: 32px !important;
padding: 10px;
}
.tbg {
width: 150px;
}
}
.print-approval-ul {
li {
line-height: 38px;
}
}
}
.print-midi {
.level-title {
padding-left: 6px;
h1 {
font-size: 12px;
}
}
.table-ui {
th {
font-size: 12px;
padding: 8px;
}
td {
font-size: 12px;
padding: 4px;
}
}
}
.print-work {
.level-title {
padding-left: 0px;
border: none;
text-align: center;
display: block;
margin-bottom: 12px;
position: relative;
h1 {
font-size: 24px;
text-align: center;
margin: 24px !important;
}
.level-code {
bottom: -15px;
}
}
.table-ui {
th {
font-size: 12px;
padding: 8px;
line-height: 1.2;
}
td {
font-size: 12px;
padding: 8px;
line-height: 1.8;
}
}
}
}