330 lines
6.9 KiB
SCSS
330 lines
6.9 KiB
SCSS
.notebook{
|
|
.nz-detail-view-left{
|
|
.author-avatar{
|
|
width: 20px;
|
|
height: 20px;
|
|
display: inline-block;
|
|
text-align: center;
|
|
line-height: 20px;
|
|
background: rgba(60,146,241,0.1);
|
|
font-size: 12px;
|
|
color: #3C92F1;
|
|
letter-spacing: 0;
|
|
font-weight: 500;
|
|
text-transform: capitalize;
|
|
border-radius: 100%;
|
|
}
|
|
.alert-label-header-circle{
|
|
width: 20px;
|
|
height: 20px;
|
|
text-align: center;
|
|
line-height: 20px;
|
|
background: #ECF5FE !important;
|
|
font-size: 12px;
|
|
color: #3C92F1;
|
|
}
|
|
.alert-label-box{
|
|
.alert-label-title{
|
|
min-width: 140px;
|
|
}
|
|
}
|
|
}
|
|
.notebook-detail{
|
|
.sub-container>.nz-table-list{
|
|
height: 100%;
|
|
padding: 0 !important;
|
|
}
|
|
.top-tool-right{
|
|
.nz-btn-size-normal{
|
|
height: 32px;
|
|
line-height: 32px;
|
|
margin-right: 10px;
|
|
}
|
|
}
|
|
.chart-header:hover{
|
|
background: transparent !important;
|
|
}
|
|
}
|
|
}
|
|
|
|
.notebook-scrollWrap{
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: hidden scroll;
|
|
position: relative;
|
|
.notebook-content{
|
|
width: 100%;
|
|
max-width: 1200px;
|
|
margin: auto;
|
|
&>:not(.notebook-list){
|
|
width: calc(100% - 40px);
|
|
margin-left: 20px;
|
|
margin-right: 20px;
|
|
}
|
|
}
|
|
.notebook-title{
|
|
box-sizing: border-box;
|
|
margin-top: 30px;
|
|
padding-bottom: 20px;
|
|
font-family: Roboto-Medium;
|
|
font-size: 24px;
|
|
color: $--color-text-primary;
|
|
letter-spacing: 0;
|
|
font-weight: 500;
|
|
line-height: 28px;
|
|
border-bottom: 1px solid $--border-color-light;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
}
|
|
.notebook-title-input{
|
|
box-sizing: border-box;
|
|
margin-top: 30px;
|
|
.el-input__inner{
|
|
height: 46px;
|
|
font-family: Roboto-Medium;
|
|
font-size: 24px;
|
|
color: $--color-text-primary;
|
|
letter-spacing: 0;
|
|
font-weight: 500;
|
|
line-height: 46px;
|
|
}
|
|
}
|
|
.notebook-list{
|
|
padding: 20px;
|
|
padding-top: 0;
|
|
height: auto;
|
|
.panel-chart-wrap{
|
|
height: 300px !important;
|
|
margin-top: 20px;
|
|
background: $--background-color-empty;
|
|
position: relative;
|
|
.chart-header__tools{
|
|
visibility: hidden;
|
|
}
|
|
.panel-chart{
|
|
box-sizing: border-box;
|
|
}
|
|
.panel-chart.my-loading-parent--relative{
|
|
height: 100% !important;
|
|
}
|
|
}
|
|
.panel-chart-wrap.notebookEdit{
|
|
.chart-header{
|
|
cursor: move;
|
|
}
|
|
&:hover{
|
|
.panel-chart{
|
|
border-color: $--color-primary;
|
|
.chart-header__tools{
|
|
visibility: visible !important;
|
|
}
|
|
}
|
|
.noteboook-chart-addWrap{
|
|
visibility: visible;
|
|
}
|
|
}
|
|
.hasPop{
|
|
visibility: visible;
|
|
}
|
|
}
|
|
.text-chart-wrap{
|
|
height: auto !important;
|
|
.panel-chart{
|
|
border-color: transparent;
|
|
.chart-header__title{
|
|
visibility: hidden;
|
|
}
|
|
}
|
|
.v-md-editor-preview{
|
|
padding: 0;
|
|
}
|
|
.text-content{
|
|
padding: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
.el-scrollbar__wrap{
|
|
margin-right: 0 !important;
|
|
margin-bottom: 0 !important;
|
|
overflow: hidden !important;
|
|
}
|
|
.el-scrollbar__bar{
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
.text-edit{
|
|
.chart-header{
|
|
display: none;
|
|
}
|
|
.noteboook-chart-addWrap{
|
|
visibility: hidden !important;
|
|
}
|
|
}
|
|
.table-chart-wrap{
|
|
height: auto !important;
|
|
min-height: 100px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
.panel-chart{
|
|
flex: 1;
|
|
.tabel-chart-box{
|
|
height: auto !important;
|
|
}
|
|
}
|
|
}
|
|
.no-data{
|
|
text-align: center;
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 50%;
|
|
margin-top: -54px;
|
|
.no-data-div {
|
|
color: $--color-text-regular;
|
|
}
|
|
}
|
|
.notebook-editor{
|
|
position: relative;
|
|
box-sizing: border-box;
|
|
height: 100%;
|
|
.markdownEditor {
|
|
height: auto !important;
|
|
min-height: 298px !important;
|
|
}
|
|
.notebook-editor-btn{
|
|
height: 41px;
|
|
position: absolute;
|
|
top: 0px;
|
|
right: 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
.nz-btn-size-normal{
|
|
height: 32px;
|
|
}
|
|
}
|
|
.md-placeholder{
|
|
position: absolute;
|
|
top: 41px;
|
|
padding: 12px 16px;
|
|
z-index: 0;
|
|
pointer-events: none;
|
|
white-space: pre-wrap;
|
|
color: $--input-placeholder-color;
|
|
font-family: menlo,Ubuntu Mono,consolas,Courier New,Microsoft Yahei,Hiragino Sans GB,WenQuanYi Micro Hei,sans-serif !important;
|
|
}
|
|
}
|
|
}
|
|
.notebook-add{
|
|
padding-bottom: 60px;
|
|
.notebook-add-title{
|
|
margin-bottom: 10px;
|
|
font-family: Roboto-Regular;
|
|
font-size: 14px;
|
|
color: $--color-text-primary;
|
|
font-weight: 400;
|
|
}
|
|
.notebook-add-list{
|
|
display: grid;
|
|
grid-gap:10px;
|
|
grid-template-columns:repeat(auto-fill, minmax(172px, 1fr));
|
|
}
|
|
.notebook-add-item{
|
|
min-width: 172px;
|
|
height: 62px;
|
|
border: 1px solid $--border-color-light;
|
|
border-radius: 4px;
|
|
padding: 0 20px;
|
|
box-sizing: border-box;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
display: flex;
|
|
align-items: center;
|
|
&:hover{
|
|
background: #FFFBF5;
|
|
border: 1px solid rgba(250,144,28,0.49);
|
|
box-shadow: 0px 1px 4px 0px rgba(250,144,28,0.13);
|
|
}
|
|
.notebook-chart-icon{
|
|
width: 24px;
|
|
height: 24px;
|
|
margin-right: 12px;
|
|
}
|
|
span{
|
|
font-size: 14px;
|
|
color: $--color-text-primary;
|
|
}
|
|
}
|
|
.notebook-add-show{
|
|
font-family: Roboto-Regular;
|
|
font-size: 14px;
|
|
color: #FA901C;
|
|
font-weight: 400;
|
|
margin-top: 16px;
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
}
|
|
|
|
.noteboook-chart-addWrap{
|
|
position: absolute;
|
|
top:-20px;
|
|
bottom: -20px;
|
|
width: 20px;
|
|
left: -20px;
|
|
visibility: hidden;
|
|
&:hover{
|
|
visibility: visible;
|
|
}
|
|
.noteboook-chart-add{
|
|
right: 5px;
|
|
cursor: pointer;
|
|
position: absolute;
|
|
font-size: 18px;
|
|
color: $--color-text-secondary;
|
|
&:hover{
|
|
color: $--color-primary;
|
|
}
|
|
&.addBefore{
|
|
top: 20px;
|
|
transform: translateY(-50%);
|
|
}
|
|
&.addAfter{
|
|
bottom: 20px;
|
|
transform: translateY(50%);
|
|
}
|
|
}
|
|
}
|
|
|
|
.noteboook-pop{
|
|
min-width: unset;
|
|
padding: 0;
|
|
margin: 0 !important;
|
|
border-radius: 2px;
|
|
border: none;
|
|
.noteboook-pop-list{
|
|
height: 288px;
|
|
overflow-y: auto;
|
|
.noteboook-pop-item{
|
|
width: 150px;
|
|
height: 32px;
|
|
box-sizing: border-box;
|
|
padding: 8px 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
cursor: pointer;
|
|
&:hover{
|
|
background: #FFFBF5;
|
|
}
|
|
svg{
|
|
width: 14px;
|
|
height: 14px;
|
|
margin-right: 10px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.noteboook-tip{
|
|
margin-bottom: 0 !important;
|
|
} |