am-editor-001/examples/react/components/editor/index.less

134 lines
2.2 KiB
Plaintext
Raw Normal View History

2021-11-03 19:58:08 +08:00
@import (reference) '../../styles/variables.less';
.__dumi-default-layout[data-site-mode='true'][data-route='/'],
.__dumi-default-layout[data-site-mode='true'][data-route='/zh-CN'] {
2021-12-16 11:44:50 +08:00
padding-top: 106px !important;
2021-11-03 19:58:08 +08:00
min-height: auto;
@media @mobile {
2021-12-16 11:44:50 +08:00
padding-top: 54px !important;
2021-11-03 19:58:08 +08:00
}
}
.__dumi-default-layout[data-site-mode='true'][data-route='/'],
2021-12-16 11:44:50 +08:00
.__dumi-default-layout[data-site-mode='true'][data-route='/zh-CN'] {
2021-11-03 19:58:08 +08:00
.__dumi-default-navbar {
2021-12-16 11:44:50 +08:00
box-shadow: none;
@media @mobile {
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.08);
}
}
.__dumi-default-navbar-logo {
@media @mobile {
display: none;
}
}
2021-11-03 19:58:08 +08:00
}
.__dumi-default-layout[data-site-mode='true'] .__dumi-default-navbar nav {
align-items: center;
}
.__dumi-default-layout[data-site-mode='true'][data-route='/']
.__dumi-default-navbar
nav
> span
> a.active::after,
.__dumi-default-layout[data-site-mode='true'][data-route='/zh-CN']
.__dumi-default-navbar
nav
> span
> a.active::after {
display: none;
}
.__dumi-default-layout[data-site-mode='true']
.__dumi-default-navbar
nav
.__dumi-default-locale-select {
height: 32px;
}
.editor-ot-users {
font-size: 12px;
background: #ffffff;
z-index: 999;
2021-12-16 11:44:50 +08:00
margin: 0 24px;
2021-11-03 19:58:08 +08:00
@media @mobile {
2021-12-16 11:44:50 +08:00
padding: 4px 8px;
2021-11-03 19:58:08 +08:00
z-index: 1;
2021-12-16 11:44:50 +08:00
margin: 0;
2021-11-03 19:58:08 +08:00
}
}
.editor-ot-users-content {
display: flex;
flex-wrap: wrap;
}
.editor-ot-users .ant-avatar {
margin: 0 2px;
}
.editor-toolbar {
position: fixed;
width: 100%;
background: #ffffff;
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.02);
z-index: 1000;
2021-12-16 11:44:50 +08:00
top: 64px;
2021-11-03 19:58:08 +08:00
}
.__dumi-default-previewer-demo .editor-toolbar {
top: 0;
}
.editor-wrapper {
position: relative;
width: 100%;
min-width: 1440px;
@media @mobile {
min-width: auto;
}
}
.editor-container {
padding: 24px 0 64px;
2021-12-16 11:44:50 +08:00
height: calc(100vh - 106px);
2021-11-03 19:58:08 +08:00
width: 100%;
margin: 0 auto;
overflow: auto;
position: relative;
@media @mobile {
padding: 0;
height: auto;
overflow: inherit;
2021-11-03 19:58:08 +08:00
}
}
.editor-content {
position: relative;
width: 812px;
margin: 0 auto;
background: #fff;
min-height: 800px;
@media @mobile {
width: auto;
2021-12-16 11:44:50 +08:00
min-height: calc(100vh - 64px);
2021-11-03 19:58:08 +08:00
border: 0 none;
}
}
.editor-content .am-engine {
padding: 40px 0 60px;
2021-11-03 19:58:08 +08:00
@media @mobile {
2021-12-16 11:44:50 +08:00
padding: 0;
2021-11-03 19:58:08 +08:00
}
}