Files
persionalBrand/apps/admin/src/features/brand/PresentationEditor.css
T

173 lines
3.4 KiB
CSS

.presentation-editor {
margin-top: 0;
padding-top: 8px;
}
.presentation-editor__header {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 16px;
margin-bottom: 24px;
}
.presentation-editor__header .ant-typography {
margin-top: 0;
}
.presentation-editor__header .ant-typography + .ant-typography {
margin-bottom: 0;
}
.presentation-editor > .ant-space {
display: flex;
width: 100%;
margin-bottom: 24px !important;
padding: 6px;
border: 1px solid #e8e8e8;
border-radius: 10px;
background: #fafafa;
}
@media (max-width: 575px) {
.presentation-editor__header {
display: block;
}
.presentation-editor__header .ant-tag {
display: inline-block;
margin-top: 8px;
}
}
.presentation-editor__workspace {
display: grid;
grid-template-columns: 200px minmax(300px, 1fr) minmax(280px, 360px);
grid-template-areas: "outline preview inspector";
margin: 0 !important;
border: 1px solid #e5e7eb;
border-radius: 12px;
overflow: hidden;
background: #fff;
}
.presentation-editor__preview {
grid-area: preview;
padding: 20px !important;
background: #f8fafc;
min-width: 0;
}
.presentation-editor__inspector {
grid-area: inspector;
padding: 24px !important;
min-width: 0;
border-left: 1px solid #e5e7eb;
}
.presentation-editor__outline {
grid-area: outline;
padding: 20px 12px;
border-right: 1px solid #e5e7eb;
}
.presentation-editor__regions {
display: flex;
flex-direction: column;
width: 100%;
}
.presentation-editor__regions .ant-space-item {
width: 100%;
}
.presentation-editor__regions .ant-btn {
width: 100%;
text-align: left;
border: 0;
box-shadow: none;
padding: 10px 12px;
}
.presentation-editor__regions .is-child-region {
padding-left: 24px;
}
.presentation-editor__regions .ant-btn[aria-pressed="true"] {
background: #e6f4ff;
color: #0958d9;
font-weight: 600;
}
.presentation-editor__preview .template-preview {
height: 680px;
min-height: 0;
border-radius: 10px;
}
.presentation-editor__regions .ant-btn {
height: auto;
padding: 5px 10px;
font-size: 12px;
white-space: normal;
}
.presentation-editor__empty {
padding: 56px 16px;
text-align: center;
}
.presentation-editor__inspector .ant-form-item {
margin-bottom: 20px;
}
.presentation-editor__inspector form > section {
padding: 16px;
border: 1px solid #e5e7eb;
border-radius: 12px;
background: #f8fafc;
}
.presentation-editor__inspector form > section + section {
margin-top: 16px;
}
.presentation-editor__inspector form > .ant-space:last-child {
position: sticky;
bottom: 0;
z-index: 2;
padding: 16px 0 4px;
border-top: 1px solid #e5e7eb;
background: #fff;
}
.presentation-editor__inspector form > .ant-space:last-child .ant-btn-primary {
min-width: 140px;
}
.presentation-editor__inspector > .ant-tag {
margin-bottom: 20px;
}
@media (max-width: 1199px) {
.presentation-editor__workspace {
grid-template-columns: minmax(0, 1fr);
grid-template-areas: "outline" "preview" "inspector";
}
.presentation-editor__outline {
border-right: 0;
border-bottom: 1px solid #e5e7eb;
}
.presentation-editor__inspector {
border-left: 0;
border-top: 1px solid #e5e7eb;
}
}
@media (max-width: 575px) {
.presentation-editor__preview,
.presentation-editor__inspector {
padding: 12px !important;
}
.presentation-editor__preview .template-preview {
height: 600px;
}
.presentation-editor__navigation {
max-width: 100%;
}
}