379 lines
6.9 KiB
SCSS
379 lines
6.9 KiB
SCSS
// Rôle : gère l’outil timer, ses formulaires, listes et états d’alerte.
|
||
@use "../design-system/controls";
|
||
|
||
.timer-tabs {
|
||
width: fit-content;
|
||
grid-template-columns: repeat(2, 40px);
|
||
}
|
||
|
||
.timer-tabs button {
|
||
@include controls.radio-button-group-option;
|
||
width: 40px;
|
||
min-width: 40px;
|
||
min-height: 36px;
|
||
padding: 0;
|
||
}
|
||
|
||
.timer-control-panel {
|
||
display: grid;
|
||
min-height: 170px;
|
||
align-content: center;
|
||
gap: var(--space-2);
|
||
padding: var(--space-4);
|
||
border: 1px solid var(--color-border);
|
||
border-radius: var(--radius-md);
|
||
background:
|
||
radial-gradient(circle at 100% 0%, rgba(246, 196, 83, 0.08), transparent 36%),
|
||
rgba(5, 7, 17, 0.5);
|
||
}
|
||
|
||
.timer-countdown-form {
|
||
align-content: start;
|
||
}
|
||
|
||
.timer-countdown-form label,
|
||
.timer-control-panel > label {
|
||
display: grid;
|
||
gap: 7px;
|
||
}
|
||
|
||
.timer-field-spacer {
|
||
display: block;
|
||
min-height: 17px;
|
||
}
|
||
|
||
.timer-countdown-form input,
|
||
.timer-countdown-form select,
|
||
.timer-control-panel input {
|
||
width: 100%;
|
||
}
|
||
|
||
.time-parts-input {
|
||
@include controls.time-parts-control;
|
||
}
|
||
|
||
.time-parts-input:focus-within {
|
||
@include controls.time-parts-focus;
|
||
}
|
||
|
||
.time-parts-input input {
|
||
@include controls.number-spinner-reset;
|
||
}
|
||
|
||
.time-parts-input input:focus {
|
||
border-color: transparent;
|
||
box-shadow: none;
|
||
}
|
||
|
||
.time-parts-input input:focus-visible {
|
||
outline: 0;
|
||
outline-offset: 0;
|
||
}
|
||
|
||
.time-parts-input span {
|
||
color: var(--color-text-muted);
|
||
font-weight: 900;
|
||
text-align: center;
|
||
}
|
||
|
||
.timer-interval-fields {
|
||
display: grid;
|
||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||
gap: var(--space-2);
|
||
min-width: 0;
|
||
}
|
||
|
||
.timer-interval-fields label {
|
||
min-width: 0;
|
||
gap: 5px;
|
||
}
|
||
|
||
.timer-interval-fields .time-parts-input {
|
||
@include controls.time-parts-control(sm);
|
||
}
|
||
|
||
.timer-interval-fields .time-parts-input input {
|
||
min-height: 36px;
|
||
font-size: var(--font-size-xs);
|
||
}
|
||
|
||
.timer-interval-fields .time-parts-input span {
|
||
font-size: var(--font-size-xs);
|
||
}
|
||
|
||
.timer-form-error {
|
||
display: inline-flex;
|
||
width: 100%;
|
||
min-width: 0;
|
||
align-items: center;
|
||
gap: 7px;
|
||
padding: 7px 9px;
|
||
border: 1px solid rgba(251, 113, 133, 0.26);
|
||
border-radius: var(--radius-sm);
|
||
background: rgba(80, 25, 42, 0.28);
|
||
color: var(--color-danger);
|
||
font-size: var(--font-size-xs);
|
||
font-weight: 800;
|
||
}
|
||
|
||
.timer-form-error .ui-icon {
|
||
width: 13px;
|
||
height: 13px;
|
||
flex: 0 0 auto;
|
||
}
|
||
|
||
.timer-form-error span {
|
||
min-width: 0;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.timer-control-panel > span,
|
||
.timer-control-panel label span {
|
||
color: var(--color-text-secondary);
|
||
font-size: var(--font-size-sm);
|
||
font-weight: 900;
|
||
}
|
||
|
||
.timer-control-panel strong {
|
||
color: var(--color-text-primary);
|
||
min-width: 0;
|
||
overflow: hidden;
|
||
font-weight: 950;
|
||
line-height: 0.95;
|
||
}
|
||
|
||
.timer-value {
|
||
display: inline-flex;
|
||
min-width: 0;
|
||
align-items: baseline;
|
||
gap: 0.16em;
|
||
font-variant-numeric: tabular-nums;
|
||
letter-spacing: 0;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.timer-value > span {
|
||
min-width: 0;
|
||
}
|
||
|
||
.timer-control-panel .timer-value.is-compact {
|
||
max-width: 100%;
|
||
}
|
||
|
||
.timer-value small {
|
||
color: var(--color-text-secondary);
|
||
font-size: inherit;
|
||
font-weight: 900;
|
||
line-height: 1;
|
||
flex: 0 0 auto;
|
||
}
|
||
|
||
.timer-value.is-compact small {
|
||
display: inline-block;
|
||
font-size: 0.5em;
|
||
transform: translateY(-0.08em);
|
||
}
|
||
|
||
.timer-value.is-compact {
|
||
font-size: clamp(1.45rem, 2.25vw, 2rem);
|
||
}
|
||
|
||
.timer-control-panel p,
|
||
.timer-results-card p {
|
||
margin: 0;
|
||
}
|
||
|
||
.timer-actions {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: var(--space-2);
|
||
}
|
||
|
||
.timer-action-button {
|
||
display: inline-flex;
|
||
width: 40px;
|
||
min-width: 40px;
|
||
min-height: 40px;
|
||
align-items: center;
|
||
justify-content: center;
|
||
padding: 0;
|
||
}
|
||
|
||
.timer-list-item.is-expired {
|
||
opacity: 0.78;
|
||
}
|
||
|
||
.timer-entry-meta {
|
||
display: flex;
|
||
grid-column: 1 / -2;
|
||
flex-wrap: nowrap;
|
||
min-width: 0;
|
||
gap: 4px 8px;
|
||
margin: 0;
|
||
padding: 1px 10px 0;
|
||
opacity: 0.68;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.timer-entry-summary .timer-value,
|
||
.timer-entry-value .timer-value {
|
||
color: var(--color-text-primary);
|
||
font-size: var(--font-size-md);
|
||
font-weight: 900;
|
||
}
|
||
|
||
.timer-entry-summary {
|
||
min-width: 0;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.timer-entry-line {
|
||
display: grid;
|
||
grid-template-columns: max-content minmax(0, 1fr);
|
||
width: 100%;
|
||
max-width: 100%;
|
||
min-width: 0;
|
||
gap: var(--space-2);
|
||
align-items: center;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.timer-entry.has-inline-reset .timer-entry-line {
|
||
grid-template-columns: max-content minmax(0, 1fr) auto;
|
||
}
|
||
|
||
.timer-entry.has-inline-controls .timer-entry-line {
|
||
grid-template-columns: max-content minmax(0, 1fr) auto;
|
||
}
|
||
|
||
.timer-entry.has-single-action {
|
||
grid-template-columns: minmax(0, 1fr) 34px;
|
||
}
|
||
|
||
.timer-entry.has-drag-handle {
|
||
grid-template-columns: 30px minmax(0, 1fr) 30px;
|
||
}
|
||
|
||
.tool-split-entry-list li.is-editing > .timer-entry.has-single-action {
|
||
grid-template-columns: auto minmax(0, 1fr) 34px;
|
||
}
|
||
|
||
.tool-split-entry-list li.is-editing > .timer-entry.has-drag-handle {
|
||
grid-template-columns: 30px auto minmax(0, 1fr) 30px;
|
||
}
|
||
|
||
.timer-drag-handle {
|
||
@include controls.icon-button(xs);
|
||
cursor: grab;
|
||
touch-action: none;
|
||
user-select: none;
|
||
}
|
||
|
||
.timer-drag-handle .ui-icon {
|
||
@include controls.icon-button-icon(xs);
|
||
}
|
||
|
||
.timer-inline-reset {
|
||
@include controls.icon-button(xxs);
|
||
@include controls.icon-button-ghost;
|
||
}
|
||
|
||
.timer-inline-refresh-toggle {
|
||
@include controls.switch-control(xs);
|
||
}
|
||
|
||
.timer-inline-refresh-toggle i {
|
||
@include controls.switch-track;
|
||
}
|
||
|
||
.timer-inline-refresh-toggle i::before {
|
||
@include controls.switch-thumb;
|
||
}
|
||
|
||
.timer-inline-reset .ui-icon {
|
||
@include controls.icon-button-icon(xxs);
|
||
}
|
||
|
||
.timer-inline-refresh-toggle .ui-icon {
|
||
@include controls.switch-icon;
|
||
}
|
||
|
||
.timer-inline-controls {
|
||
display: inline-flex;
|
||
min-width: 0;
|
||
align-items: center;
|
||
justify-content: flex-end;
|
||
gap: 4px;
|
||
}
|
||
|
||
.timer-entry-line > span:nth-child(2) {
|
||
min-width: 0;
|
||
overflow: hidden;
|
||
color: var(--color-text-secondary);
|
||
font-weight: 600;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.timer-lap-label {
|
||
font-weight: 700;
|
||
}
|
||
|
||
.timer-lap-label::placeholder {
|
||
color: rgba(229, 235, 255, 0.72);
|
||
}
|
||
|
||
.timer-entry-meta span {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 7px;
|
||
min-width: 0;
|
||
overflow: hidden;
|
||
color: var(--color-text-muted);
|
||
font-size: var(--font-size-xs);
|
||
font-weight: 700;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.timer-list-item em {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 7px;
|
||
flex: 0 0 auto;
|
||
color: var(--color-text-muted);
|
||
font-size: var(--font-size-xs);
|
||
font-style: normal;
|
||
font-weight: 700;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.timer-entry-meta b {
|
||
min-width: 0;
|
||
overflow: hidden;
|
||
font: inherit;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.timer-entry-meta b + b::before,
|
||
.timer-entry-meta em::before {
|
||
content: "";
|
||
display: inline-block;
|
||
width: 1px;
|
||
height: 10px;
|
||
margin-right: 7px;
|
||
background: rgba(165, 180, 252, 0.22);
|
||
vertical-align: -1px;
|
||
}
|
||
|
||
.timer-results-card {
|
||
min-height: 260px;
|
||
}
|
||
|
||
.timer-results-card.is-scrollable {
|
||
max-height: 450px;
|
||
overflow: hidden;
|
||
}
|