mirror of
https://github.com/sotam0316/drawNET.git
synced 2026-04-24 19:48:36 +09:00
257 lines
4.8 KiB
CSS
257 lines
4.8 KiB
CSS
/* Properties Sidebar Styles */
|
|
#properties-sidebar {
|
|
position: fixed;
|
|
right: -320px; /* Hidden by default */
|
|
top: 60px; /* Below header */
|
|
bottom: 0;
|
|
width: 300px;
|
|
background: var(--panel-bg);
|
|
backdrop-filter: blur(16px);
|
|
-webkit-backdrop-filter: blur(16px);
|
|
border-left: 1px solid var(--panel-border);
|
|
box-shadow: -10px 0 25px rgba(0, 0, 0, 0.3);
|
|
transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
z-index: 900;
|
|
display: flex;
|
|
flex-direction: column;
|
|
color: var(--text-color);
|
|
}
|
|
|
|
#properties-sidebar.open {
|
|
right: 0;
|
|
}
|
|
|
|
.sidebar-header {
|
|
padding: 18px 20px;
|
|
border-bottom: 1px solid var(--panel-border);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.sidebar-header h3 {
|
|
margin: 0;
|
|
font-size: 16px;
|
|
font-weight: 800;
|
|
color: var(--accent-color);
|
|
}
|
|
|
|
.close-sidebar {
|
|
cursor: pointer;
|
|
font-size: 20px;
|
|
color: var(--sub-text);
|
|
transition: color 0.2s;
|
|
}
|
|
|
|
.close-sidebar:hover {
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.sidebar-content {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 24px 20px;
|
|
}
|
|
|
|
.prop-group {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.prop-row {
|
|
display: flex;
|
|
gap: 12px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.prop-row .prop-group {
|
|
flex: 1;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.prop-group.horizontal {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.prop-group.horizontal label {
|
|
flex: 0 0 80px;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.prop-group.horizontal .prop-input {
|
|
flex: 1;
|
|
}
|
|
|
|
.prop-group label {
|
|
display: block;
|
|
font-size: 11px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
color: var(--sub-text);
|
|
margin-bottom: 8px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.prop-input {
|
|
width: 100%;
|
|
background: var(--item-bg);
|
|
border: 1px solid var(--panel-border);
|
|
border-radius: 8px;
|
|
padding: 9px 12px;
|
|
color: var(--text-color);
|
|
font-size: 14px;
|
|
outline: none;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.prop-input:focus {
|
|
border-color: var(--accent-color);
|
|
background: var(--item-hover-bg);
|
|
}
|
|
|
|
.sidebar-footer {
|
|
padding: 16px 20px;
|
|
border-top: 1px solid var(--panel-border);
|
|
display: flex;
|
|
gap: 12px;
|
|
background: rgba(var(--bg-rgb), 0.05);
|
|
}
|
|
|
|
.btn-apply {
|
|
flex: 1;
|
|
background: var(--accent-color);
|
|
color: white;
|
|
border: none;
|
|
padding: 12px;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
font-weight: 700;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.btn-apply:hover {
|
|
filter: brightness(1.1);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
/* Toggle Switch Styles */
|
|
.toggle-group {
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.toggle-switch {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
cursor: pointer;
|
|
padding: 12px 14px;
|
|
background: var(--item-bg);
|
|
border: 1px solid var(--panel-border);
|
|
border-radius: 12px;
|
|
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
.toggle-switch:hover {
|
|
background: var(--item-hover-bg);
|
|
border-color: var(--accent-color);
|
|
}
|
|
|
|
.toggle-switch span {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.toggle-switch input {
|
|
display: none;
|
|
}
|
|
|
|
.switch-slider {
|
|
position: relative;
|
|
width: 36px;
|
|
height: 20px;
|
|
background: #475569;
|
|
border-radius: 20px;
|
|
transition: background 0.3s;
|
|
}
|
|
|
|
.switch-slider:before {
|
|
content: "";
|
|
position: absolute;
|
|
width: 16px;
|
|
height: 16px;
|
|
left: 2px;
|
|
top: 2px;
|
|
background: white;
|
|
border-radius: 50%;
|
|
transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.3);
|
|
}
|
|
|
|
.toggle-switch input:checked + .switch-slider {
|
|
background: var(--accent-color);
|
|
}
|
|
|
|
.toggle-switch input:checked + .switch-slider:before {
|
|
transform: translateX(16px);
|
|
}
|
|
|
|
/* Multi-Selection Alignment UI */
|
|
.alignment-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: 10px;
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.align-btn {
|
|
aspect-ratio: 1;
|
|
background: var(--item-bg);
|
|
border: 1px solid var(--panel-border);
|
|
border-radius: 8px;
|
|
color: var(--sub-text);
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 16px;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.align-btn:hover:not(:disabled) {
|
|
background: var(--accent-color);
|
|
color: white;
|
|
border-color: var(--accent-color);
|
|
}
|
|
|
|
.align-btn:disabled {
|
|
opacity: 0.2;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* Color Input Consistency */
|
|
.input-with-color {
|
|
display: flex;
|
|
gap: 8px;
|
|
align-items: center;
|
|
}
|
|
|
|
.input-with-color .prop-input[type="color"] {
|
|
width: 44px;
|
|
height: 38px;
|
|
padding: 3px;
|
|
cursor: pointer;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.input-with-color .prop-input[type="color"]::-webkit-color-swatch {
|
|
border: 1px solid var(--panel-border);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
/* Danger variant for toggle-switch */
|
|
.toggle-switch.danger input:checked + .switch-slider {
|
|
background: #ef4444;
|
|
}
|