bp_wb/frontend/editor/components/Editor.css

87 lines
1.2 KiB
CSS

.editor-container {
display: flex;
flex-direction: column;
height: 100vh;
width: 100vw;
}
.toolbar {
display: flex;
gap: 8px;
padding: 8px;
border-bottom: 1px solid #e0e0e0;
background: #f5f5f5;
}
.editor-content {
display: flex;
flex: 1;
overflow: hidden;
}
.sidebar {
width: 250px;
border-right: 1px solid #e0e0e0;
background: #fafafa;
padding: 16px;
overflow-y: auto;
}
.sidebar.right {
border-right: none;
border-left: 1px solid #e0e0e0;
}
.canvas-container {
flex: 1;
overflow: hidden;
}
.canvas {
width: 100%;
height: 100%;
background: #ffffff;
overflow: auto;
padding: 20px;
position: relative;
}
.canvas-empty {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
color: #999;
font-size: 14px;
}
.component-palette h3,
.property-panel h3 {
margin: 0 0 12px 0;
font-size: 14px;
font-weight: 600;
}
.component-list {
display: flex;
flex-direction: column;
gap: 4px;
}
.palette-item {
padding: 8px 12px;
background: #fff;
border: 1px solid #e0e0e0;
border-radius: 4px;
cursor: pointer;
font-size: 13px;
transition: background 0.2s;
}
.palette-item:hover {
background: #f0f0f0;
}
.property-panel {
padding: 16px;
}