解决 docs 样式问题

This commit is contained in:
liaoxuezhi 2019-10-18 12:23:41 +08:00
parent 26c790b099
commit eeddef6a1f
2 changed files with 26 additions and 22 deletions

View File

@ -526,11 +526,6 @@ function isActive(link, location) {
} }
const themes = [ const themes = [
{
label: 'Dark',
ns: 'dark-',
value: 'dark'
},
{ {
label: '默认主题', label: '默认主题',
ns: 'a-', ns: 'a-',
@ -541,6 +536,11 @@ const themes = [
label: '百度云舍', label: '百度云舍',
ns: 'cxd-', ns: 'cxd-',
value: 'cxd' value: 'cxd'
},
{
label: 'Dark',
ns: 'dark-',
value: 'dark'
} }
]; ];

View File

@ -3,17 +3,20 @@
@import '../scss/variables'; @import '../scss/variables';
.page-play, .page-edit { .page-play,
.page-edit {
&:before { &:before {
display: table; display: table;
content: " "; content: " ";
} }
&:after { &:after {
clear: both; clear: both;
display: block; display: block;
content: ""; content: "";
height: 0; height: 0;
} }
.app-content { .app-content {
position: absolute; position: absolute;
top: 50px; top: 50px;
@ -22,35 +25,36 @@
left: 0; left: 0;
right: 0; right: 0;
} }
.app-content-body { .app-content-body {
height: 100%; height: 100%;
} }
} }
.resizer { .resizer {
position: absolute; position: absolute;
top: 0; top: 0;
bottom: 0; bottom: 0;
margin-left: -2px; margin-left: -2px;
width: 4px; width: 4px;
background: lighten($dark, 20%); background: lighten($dark, 20%);
z-index: 1; z-index: 1;
cursor: col-resize; cursor: col-resize;
&:hover { &:hover {
background: $dark; background: $dark;
} }
} }
.doc-shcema-preview-popover { .doc-shcema-preview-popover {
box-shadow: none; box-shadow: none;
margin-top: -1px; margin-top: -1px;
padding: 0 45px; padding: 0 45px !important;
left: 0!important; left: 0 !important;
width: 100%; width: 100%;
max-width: 980px; max-width: 980px;
z-index: 1; z-index: 1;
background: transparent; background: transparent !important;
border: none; border: none;
.doc-schema-preview { .doc-schema-preview {
@ -69,7 +73,7 @@
// right: 175px; // right: 175px;
// } // }
.amis-schema-editor.fix-settings .amis-schema-editor-settings-inner .amis-schema-editor-config-tab > .tab-content, .amis-schema-editor.fix-settings .amis-schema-editor-settings-inner .amis-schema-editor-config-tab>.tab-content,
.amis-schema-editor.fix-settings .amis-schema-editor-settings-inner .amis-schema-editor-code-tab > .tab-content { .amis-schema-editor.fix-settings .amis-schema-editor-settings-inner .amis-schema-editor-code-tab>.tab-content {
bottom: 50px; bottom: 50px;
} }