feat: add collapsible Beam inspector
This commit is contained in:
@@ -359,6 +359,103 @@ header {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.side-panel.is-collapsed {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.inspector-panel-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
min-height: 28px;
|
||||
margin: 0 0 8px;
|
||||
}
|
||||
|
||||
.inspector-panel-header h3 {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.inspector-collapse-btn {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
margin: -2px -2px 0 8px;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
border-radius: 10px;
|
||||
background: transparent;
|
||||
color: var(--modal-btn-primary, var(--accent));
|
||||
cursor: pointer;
|
||||
font: inherit;
|
||||
font-size: 18px;
|
||||
font-weight: 900;
|
||||
line-height: 1;
|
||||
outline: none;
|
||||
transition: background 140ms ease, transform 100ms ease;
|
||||
}
|
||||
|
||||
.inspector-collapse-btn:hover {
|
||||
background: var(--nodedc-glass-control-hover);
|
||||
}
|
||||
|
||||
.inspector-collapse-btn:active {
|
||||
transform: translateY(1px);
|
||||
}
|
||||
|
||||
.inspector-collapse-btn:focus,
|
||||
.inspector-collapse-btn:focus-visible {
|
||||
outline: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.inspector-restore-tray {
|
||||
position: fixed;
|
||||
right: 12px;
|
||||
bottom: 12px;
|
||||
width: 320px;
|
||||
padding: 0 14px;
|
||||
z-index: 12;
|
||||
box-sizing: border-box;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.inspector-restore-button {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
height: 40px;
|
||||
padding: 0 16px;
|
||||
border: 0;
|
||||
border-radius: 14px;
|
||||
background: var(--modal-btn-primary, var(--accent));
|
||||
color: var(--modal-btn-primary-contrast, #15170f);
|
||||
box-shadow: var(--nodedc-glass-control-shadow);
|
||||
cursor: pointer;
|
||||
font: inherit;
|
||||
font-size: 12px;
|
||||
font-weight: 800;
|
||||
line-height: 1;
|
||||
text-transform: uppercase;
|
||||
pointer-events: auto;
|
||||
transition: filter 140ms ease, transform 100ms ease;
|
||||
}
|
||||
|
||||
.inspector-restore-button:hover {
|
||||
filter: brightness(1.05);
|
||||
}
|
||||
|
||||
.inspector-restore-button:active {
|
||||
transform: translateY(1px);
|
||||
}
|
||||
|
||||
.inspector-restore-button:focus,
|
||||
.inspector-restore-button:focus-visible {
|
||||
outline: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.panel-section {
|
||||
background: transparent;
|
||||
border: none;
|
||||
@@ -371,6 +468,10 @@ header {
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.panel-section .inspector-panel-header h3 {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.panel-section p,
|
||||
.panel-section ul {
|
||||
margin: 0;
|
||||
|
||||
Reference in New Issue
Block a user