mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-17 05:13:32 +00:00
a93f2a765e
The Absolute/Relative offset toggle in the rundown header gave users no hint it was even about offsets, and its explanation only lived on per-button hover (low discoverability, splits a comparative concept). - Add a small group label to each toolbar toggle (Mode / View / Offset) so each control's purpose is self-evident at a glance. - Add an info icon on the Offset group with a single tooltip explaining both modes together, reusing the existing Tooltip + IoInformationCircle pattern. Removes the now-redundant per-button offset tooltips. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Hj5P4eDgf97zSCzViGHNDy
98 lines
1.7 KiB
SCSS
98 lines
1.7 KiB
SCSS
.header {
|
|
padding-inline: 1rem 2rem;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
|
|
:is([data-target='small-device']) & {
|
|
padding-inline: 0;
|
|
overflow-x: auto;
|
|
}
|
|
}
|
|
|
|
/** styles should match CuesheetTableSettings.module.scss */
|
|
.group {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 2px;
|
|
padding-inline: 2px;
|
|
background: $gray-1100;
|
|
border-radius: $component-border-radius-md;
|
|
height: 2rem;
|
|
}
|
|
|
|
/** styles should match CuesheetTableSettings.module.scss */
|
|
.radioButton {
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: calc(2rem - 4px); // padding inline * 2
|
|
padding-inline: 1em;
|
|
border: 1px solid transparent;
|
|
border-radius: $component-border-radius-md;
|
|
color: $gray-400;
|
|
font-size: calc(1rem - 2px);
|
|
font-weight: 600;
|
|
|
|
&:focus-visible {
|
|
background: transparent;
|
|
outline: 1px solid $blue-500;
|
|
}
|
|
|
|
&:hover:not(:disabled):not(:active) {
|
|
background: $gray-1000;
|
|
}
|
|
|
|
&:active {
|
|
background: $gray-1100;
|
|
}
|
|
|
|
&[data-pressed] {
|
|
background: $blue-700;
|
|
color: $ui-white;
|
|
|
|
&:hover:not(:disabled):not(:active) {
|
|
background: $blue-600;
|
|
}
|
|
}
|
|
}
|
|
|
|
.controlGroup {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.375rem;
|
|
}
|
|
|
|
.groupLabel {
|
|
color: $gray-400;
|
|
font-size: calc(1rem - 3px);
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.02em;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.infoIcon {
|
|
display: flex;
|
|
align-items: center;
|
|
color: $gray-400;
|
|
font-size: calc(1rem + 1px);
|
|
cursor: help;
|
|
|
|
&:hover {
|
|
color: $gray-200;
|
|
}
|
|
}
|
|
|
|
.apart {
|
|
margin-left: auto;
|
|
}
|
|
|
|
.column {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
align-self: start;
|
|
}
|