lukilabs--beautiful-mermaid
106 行
2.0 KiB
CSS
106 行
2.0 KiB
CSS
.main {
|
|
display: flex;
|
|
flex: 1;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.panel-left {
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 42%;
|
|
min-width: 280px;
|
|
border-right: 1px solid var(--border);
|
|
background: var(--bg2);
|
|
flex-shrink: 0;
|
|
position: relative;
|
|
}
|
|
|
|
/* Floating source toolbar — mirrors preview-toolbar pattern */
|
|
.source-toolbar {
|
|
position: absolute;
|
|
top: 10px;
|
|
left: 12px;
|
|
right: 12px;
|
|
z-index: 10;
|
|
display: flex;
|
|
align-items: center;
|
|
pointer-events: none;
|
|
}
|
|
.source-toolbar > * {
|
|
pointer-events: auto;
|
|
}
|
|
.source-label {
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
color: var(--fg3);
|
|
user-select: none;
|
|
}
|
|
.source-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 2px;
|
|
padding: 3px;
|
|
border-radius: 8px;
|
|
background: var(--t-bg);
|
|
box-shadow: var(--shadow-minimal);
|
|
}
|
|
|
|
.panel-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 0.75rem;
|
|
height: 36px;
|
|
border-bottom: 1px solid var(--border);
|
|
flex-shrink: 0;
|
|
}
|
|
.panel-title {
|
|
font-size: 0.7rem;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
color: var(--fg2);
|
|
}
|
|
.panel-actions { display: flex; gap: 0.25rem; }
|
|
.icon-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 26px;
|
|
height: 26px;
|
|
border: none;
|
|
border-radius: 4px;
|
|
background: transparent;
|
|
color: var(--fg2);
|
|
cursor: pointer;
|
|
transition: color 0.15s, background 0.15s;
|
|
}
|
|
.icon-btn:hover { color: var(--fg); background: rgba(255,255,255,0.07); }
|
|
.icon-btn svg { width: 14px; height: 14px; }
|
|
.icon-btn.active { background: var(--accent); color: #fff; }
|
|
|
|
.panel-right {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: var(--bg);
|
|
min-width: 0;
|
|
position: relative;
|
|
}
|
|
|
|
.resize-handle {
|
|
width: 4px;
|
|
background: transparent;
|
|
cursor: col-resize;
|
|
flex-shrink: 0;
|
|
transition: background 0.15s;
|
|
position: relative;
|
|
z-index: 10;
|
|
margin-left: -4px;
|
|
}
|
|
.resize-handle:hover, .resize-handle.dragging {
|
|
background: var(--blue);
|
|
}
|