feat: add main editor resource tabs
This commit is contained in:
@@ -2372,6 +2372,118 @@ body {
|
||||
grid-template-columns: minmax(0, 1fr) var(--mnote-secondary-pane-resizer-width) var(--mnote-secondary-pane-width);
|
||||
}
|
||||
|
||||
.document-main-editor-group {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.mnote-main-tab-strip {
|
||||
min-height: 36px;
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
gap: 1px;
|
||||
border-bottom: 1px solid #E9E9E8;
|
||||
background: #FAFAF9;
|
||||
padding: 0 10px;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 20;
|
||||
}
|
||||
|
||||
.mnote-main-tab {
|
||||
height: 34px;
|
||||
max-width: 240px;
|
||||
min-width: 0;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 7px;
|
||||
border: 0;
|
||||
border-radius: 6px 6px 0 0;
|
||||
background: transparent;
|
||||
color: #6B6862;
|
||||
padding: 0 9px;
|
||||
cursor: pointer;
|
||||
font-size: 13px;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.mnote-main-tab:hover {
|
||||
background: #F4F3F3;
|
||||
color: #1B1C1C;
|
||||
}
|
||||
|
||||
.mnote-main-tab.is-active {
|
||||
background: #FFF;
|
||||
color: #1B1C1C;
|
||||
box-shadow: inset 0 1px 0 #E9E9E8, inset 1px 0 0 #E9E9E8, inset -1px 0 0 #E9E9E8;
|
||||
}
|
||||
|
||||
.mnote-main-tab .material-symbols-outlined {
|
||||
font-size: 16px;
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.mnote-main-tab-title {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.mnote-main-tab-close {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border: 0;
|
||||
border-radius: 4px;
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
padding: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.mnote-main-tab-close:hover {
|
||||
background: rgba(55, 53, 47, 0.12);
|
||||
}
|
||||
|
||||
.mnote-main-tab-panels {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.mnote-resource-tab-host[hidden],
|
||||
.mnote-resource-tab-panel[hidden],
|
||||
[data-mnote-page-tab-panel][hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.mnote-resource-tab-panel {
|
||||
min-height: calc(100vh - 76px);
|
||||
}
|
||||
|
||||
.mnote-resource-tab-frame,
|
||||
.mnote-resource-tab-image,
|
||||
.mnote-resource-tab-text-shell {
|
||||
width: 100%;
|
||||
min-height: calc(100vh - 80px);
|
||||
border: 0;
|
||||
background: #FFF;
|
||||
}
|
||||
|
||||
.mnote-resource-tab-image {
|
||||
display: block;
|
||||
object-fit: contain;
|
||||
padding: 28px;
|
||||
}
|
||||
|
||||
.mnote-resource-tab-text-shell {
|
||||
padding: 34px 48px;
|
||||
}
|
||||
|
||||
.mnote-resource-tab-editor-root {
|
||||
min-height: calc(100vh - 112px);
|
||||
}
|
||||
|
||||
.document-pane {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user