213 lines
4.5 KiB
CSS
213 lines
4.5 KiB
CSS
/* Main content */
|
|
.main-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1;
|
|
overflow: auto;
|
|
/* Main scrollable container */
|
|
position: relative;
|
|
}
|
|
|
|
.main-content-wrapper {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: calc(var(--track-info-panel-width) + var(--max-number-of-bars) * var(--track-grid-bar-width));
|
|
/* info width + grid width */
|
|
min-height: fit-content;
|
|
position: relative;
|
|
}
|
|
|
|
.top-left-spacer {
|
|
position: fixed;
|
|
top: 50px;
|
|
left: 0;
|
|
width: var(--track-info-panel-width);
|
|
height: 40px;
|
|
background-color: #2d2d2d;
|
|
border-bottom: 1px solid #3a3a3a;
|
|
border-right: 1px solid #3a3a3a;
|
|
z-index: 1002;
|
|
/* Higher than other elements to ensure it's always visible */
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.track-header-controls {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
width: 100%;
|
|
padding: 0 12px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.track-header-button {
|
|
--toolbar-button-bg: transparent;
|
|
--toolbar-button-fg: #e0e0e0;
|
|
width: 28px;
|
|
height: 28px;
|
|
border: none;
|
|
border-radius: 3px;
|
|
background-color: var(--toolbar-button-bg);
|
|
color: var(--toolbar-button-fg);
|
|
display: inline-flex;
|
|
align-items: center;
|
|
font-size: 12px;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
transition:
|
|
background-color 0.18s ease,
|
|
color 0.18s ease,
|
|
transform 0.12s ease,
|
|
box-shadow 0.18s ease;
|
|
}
|
|
|
|
.track-header-button svg {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.track-header-button:hover {
|
|
--toolbar-button-bg: #3a3a3a;
|
|
}
|
|
|
|
.track-header-button.active {
|
|
--toolbar-button-bg: #e0e0e0;
|
|
--toolbar-button-fg: #2d2d2d;
|
|
}
|
|
|
|
.track-header-button.active:hover {
|
|
--toolbar-button-bg: #f0f0f0;
|
|
}
|
|
|
|
.track-header-button:active {
|
|
--toolbar-button-bg: #5a5a5a;
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
.track-header-button.active:active {
|
|
--toolbar-button-bg: #d6d6d6;
|
|
}
|
|
|
|
.track-header-button:focus,
|
|
.track-header-button:focus-visible {
|
|
outline: none;
|
|
box-shadow: none;
|
|
}
|
|
|
|
/* Offset spacer when instrument selection panel is visible on the left */
|
|
.main-content.has-left-instrument .top-left-spacer {
|
|
left: 300px;
|
|
}
|
|
|
|
.bar-numbers {
|
|
position: sticky;
|
|
top: 0;
|
|
height: 40px;
|
|
display: flex;
|
|
border-bottom: 1px solid #3a3a3a;
|
|
background-color: #2d2d2d;
|
|
z-index: 20;
|
|
margin-left: var(--track-info-panel-width);
|
|
/* Offset for info-container */
|
|
width: calc(var(--max-number-of-bars) * var(--track-grid-bar-width));
|
|
/* Exact width for 32 bars */
|
|
cursor: pointer;
|
|
/* Show pointer cursor on hover to indicate interactivity */
|
|
}
|
|
|
|
.bar-numbers:hover {
|
|
cursor: url("data:image/svg+xml,%3csvg width='16' height='16' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M4 6h8l-4 4-4-4z' fill='%23e0e0e0'/%3e%3c/svg%3e") 8 8, pointer;
|
|
}
|
|
|
|
.bar-number-cell {
|
|
min-width: var(--track-grid-bar-width);
|
|
width: var(--track-grid-bar-width);
|
|
flex-shrink: 0;
|
|
flex-grow: 0;
|
|
height: 40px;
|
|
border-right: 1px solid #3a3a3a;
|
|
color: #999;
|
|
display: flex;
|
|
flex-direction: column;
|
|
box-sizing: border-box;
|
|
position: relative;
|
|
}
|
|
|
|
.bar-number-label {
|
|
height: 20px;
|
|
text-align: center;
|
|
font-size: 12px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.bar-beat-markers {
|
|
position: relative;
|
|
height: 20px;
|
|
border-top: 1px solid #3a3a3a;
|
|
border-bottom: 1px solid #3a3a3a;
|
|
background-color: #1e1e1e;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.bar-boundary-marker {
|
|
position: absolute;
|
|
left: -1px;
|
|
bottom: 0;
|
|
width: 1px;
|
|
height: 100%;
|
|
background-color: #3a3a3a;
|
|
}
|
|
|
|
.beat-marker {
|
|
position: absolute;
|
|
bottom: 0;
|
|
width: 1px;
|
|
height: 50%;
|
|
background-color: #3a3a3a;
|
|
transform: translateX(-50%);
|
|
}
|
|
|
|
.bar-number-cell.looped {
|
|
background-color: #e1ae01;
|
|
color: #1e1e1e;
|
|
}
|
|
|
|
.main-content-body {
|
|
display: flex;
|
|
min-height: fit-content;
|
|
}
|
|
|
|
.info-container {
|
|
position: sticky;
|
|
left: 0;
|
|
width: var(--track-info-panel-width);
|
|
z-index: 1002;
|
|
background-color: #2d2d2d;
|
|
align-self: flex-start;
|
|
}
|
|
|
|
/* Shift the bar numbers and info panel when instrument selection is present */
|
|
/* No need to shift bar numbers or info container; they live inside main content.
|
|
Only shift the fixed spacer when the left panel is present. */
|
|
|
|
.track-top-spacer {
|
|
height: 40px;
|
|
border-bottom: 1px solid #3a3a3a;
|
|
background-color: #2d2d2d;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 15;
|
|
}
|
|
|
|
.grid-container {
|
|
margin-left: 0;
|
|
/* No need for margin since we're using flex */
|
|
min-width: calc(var(--max-number-of-bars) * var(--track-grid-bar-width));
|
|
/* Ensure minimum width */
|
|
min-height: fit-content;
|
|
position: relative;
|
|
/* Required for absolute positioned playhead */
|
|
} |