Split remaining large Sass files by responsibility
All checks were successful
Deploy Sokko G / deploy (push) Successful in 16s
All checks were successful
Deploy Sokko G / deploy (push) Successful in 16s
This commit is contained in:
parent
a0d7e80a1a
commit
fcabbe8029
37 changed files with 3248 additions and 3103 deletions
|
|
@ -1,449 +1,5 @@
|
|||
// Rôle : stylise le formulaire, les sélecteurs et les actions calendrier.
|
||||
.calendar-event-form {
|
||||
display: grid;
|
||||
gap: var(--space-3);
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
box-sizing: border-box;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.calendar-form-row {
|
||||
display: grid;
|
||||
align-items: end;
|
||||
gap: 8px 10px;
|
||||
min-width: 0;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.calendar-form-main-row {
|
||||
grid-template-columns: minmax(0, 1fr) 42px auto;
|
||||
}
|
||||
|
||||
.calendar-form-time-row {
|
||||
grid-template-columns: minmax(112px, 136px) repeat(2, minmax(86px, 104px)) minmax(70px, auto) minmax(62px, auto);
|
||||
justify-content: start;
|
||||
}
|
||||
|
||||
.calendar-event-form-month .calendar-form-time-row {
|
||||
grid-template-columns: repeat(2, minmax(96px, 116px)) repeat(2, minmax(86px, 104px)) minmax(70px, auto) minmax(66px, auto);
|
||||
}
|
||||
|
||||
.calendar-form-month-row {
|
||||
grid-template-columns: max-content repeat(2, minmax(198px, 226px)) minmax(136px, auto);
|
||||
justify-content: start;
|
||||
}
|
||||
|
||||
.calendar-event-form label,
|
||||
.calendar-day-field,
|
||||
.calendar-color-picker,
|
||||
.calendar-repeat-field,
|
||||
.calendar-month-event-repeat-field,
|
||||
.calendar-month-repeat-field,
|
||||
.calendar-alert-type-field {
|
||||
display: grid;
|
||||
gap: 5px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.calendar-event-form label span,
|
||||
.calendar-day-field > span,
|
||||
.calendar-color-picker > span,
|
||||
.calendar-repeat-field > span,
|
||||
.calendar-month-event-repeat-field > span,
|
||||
.calendar-month-repeat-field > span,
|
||||
.calendar-alert-type-field > span,
|
||||
.calendar-alert-offsets legend {
|
||||
color: var(--color-text-secondary);
|
||||
font-size: var(--font-size-xs);
|
||||
font-weight: 900;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.calendar-event-form input:not([type="checkbox"]),
|
||||
.calendar-event-form select {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.calendar-month-date-dropdown {
|
||||
position: relative;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.calendar-month-date-trigger {
|
||||
display: grid;
|
||||
grid-template-columns: 18px minmax(0, 1fr) 14px;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
width: 100%;
|
||||
min-height: 36px;
|
||||
padding: 0 8px;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md);
|
||||
background-color: rgba(15, 23, 42, 0.64);
|
||||
color: var(--color-text-primary);
|
||||
font-weight: 900;
|
||||
font-variant-numeric: tabular-nums;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.calendar-month-date-trigger span {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.calendar-month-date-trigger:hover,
|
||||
.calendar-month-date-dropdown:focus-within .calendar-month-date-trigger {
|
||||
border-color: rgba(196, 181, 253, 0.22);
|
||||
background-color: rgba(21, 26, 48, 0.58);
|
||||
}
|
||||
|
||||
.calendar-month-date-trigger .ui-icon {
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
.calendar-month-date-trigger .ui-icon-chevron-down {
|
||||
width: 11px;
|
||||
height: 11px;
|
||||
justify-self: end;
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
.calendar-time-field input {
|
||||
padding-inline: 10px 4px;
|
||||
font-size: 12px;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.calendar-month-date-picker {
|
||||
position: absolute;
|
||||
top: calc(100% + 6px);
|
||||
left: 0;
|
||||
z-index: 20;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(7, minmax(0, 1fr));
|
||||
gap: 3px;
|
||||
min-width: 0;
|
||||
padding: 4px;
|
||||
border: 1px solid rgba(150, 165, 205, 0.16);
|
||||
border-radius: var(--radius-sm);
|
||||
background: rgba(8, 11, 24, 0.98);
|
||||
box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transform: translateY(-4px);
|
||||
transition:
|
||||
opacity var(--duration-fast) var(--ease-standard),
|
||||
transform var(--duration-fast) var(--ease-standard);
|
||||
}
|
||||
|
||||
.calendar-month-date-picker {
|
||||
width: min(300px, calc(100vw - 48px));
|
||||
}
|
||||
|
||||
.calendar-month-date-picker.is-weekday-mode {
|
||||
grid-template-columns: 34px repeat(7, minmax(48px, 1fr));
|
||||
width: min(420px, calc(100vw - 48px));
|
||||
}
|
||||
|
||||
.calendar-month-date-dropdown:focus-within .calendar-month-date-picker {
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.calendar-month-date-dropdown.is-aligned-end .calendar-month-date-picker {
|
||||
right: 0;
|
||||
left: auto;
|
||||
}
|
||||
|
||||
.calendar-month-date-picker button {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
min-width: 0;
|
||||
min-height: 22px;
|
||||
padding: 0;
|
||||
border: 1px solid transparent;
|
||||
border-radius: var(--radius-sm);
|
||||
background: rgba(16, 20, 38, 0.58);
|
||||
color: var(--color-text-secondary);
|
||||
font-size: 11px;
|
||||
font-weight: 800;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.calendar-month-date-picker-header {
|
||||
grid-column: 1 / -1;
|
||||
display: grid;
|
||||
grid-template-columns: 56px minmax(0, 1fr) 56px;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.calendar-month-date-picker-header strong {
|
||||
min-width: 0;
|
||||
color: var(--color-text-primary);
|
||||
overflow: hidden;
|
||||
font-size: 12px;
|
||||
font-weight: 900;
|
||||
text-align: center;
|
||||
text-overflow: ellipsis;
|
||||
text-transform: capitalize;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.calendar-month-date-picker-header button {
|
||||
min-height: 24px;
|
||||
padding-inline: 6px;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.calendar-month-date-picker-day {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
min-height: 18px;
|
||||
color: var(--color-text-muted);
|
||||
overflow: hidden;
|
||||
font-size: 9px;
|
||||
font-weight: 900;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.calendar-month-date-picker-week {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
min-height: 24px;
|
||||
color: var(--color-accent-gold);
|
||||
font-size: 10px;
|
||||
font-weight: 900;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.calendar-month-date-picker.is-weekday-mode button {
|
||||
min-height: 26px;
|
||||
padding-inline: 3px;
|
||||
overflow: hidden;
|
||||
font-size: 10px;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.calendar-month-date-picker button.is-outside,
|
||||
.calendar-month-date-picker button:disabled {
|
||||
opacity: 0.34;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.calendar-month-date-picker button:hover:not(:disabled),
|
||||
.calendar-month-date-picker button.active {
|
||||
border-color: rgba(246, 196, 83, 0.58);
|
||||
background: rgba(139, 92, 246, 0.3);
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.calendar-alert-offsets {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, max-content);
|
||||
align-items: center;
|
||||
gap: 5px 8px;
|
||||
min-width: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.calendar-alert-offsets legend {
|
||||
grid-column: 1 / -1;
|
||||
width: 100%;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.calendar-alert-offsets label {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
min-height: 24px;
|
||||
color: var(--color-text-secondary);
|
||||
font-size: 11px;
|
||||
font-weight: 800;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.calendar-alert-offsets input {
|
||||
flex: 0 0 auto;
|
||||
width: 20px;
|
||||
min-width: 20px;
|
||||
max-width: 20px;
|
||||
height: 20px;
|
||||
min-height: 20px;
|
||||
max-height: 20px;
|
||||
}
|
||||
|
||||
.calendar-alert-mode-switch {
|
||||
align-self: start;
|
||||
justify-self: start;
|
||||
}
|
||||
|
||||
.calendar-alert-type-field {
|
||||
align-self: start;
|
||||
justify-self: start;
|
||||
}
|
||||
|
||||
.calendar-color-picker {
|
||||
position: relative;
|
||||
align-self: end;
|
||||
}
|
||||
|
||||
.calendar-color-toggle {
|
||||
width: 32px;
|
||||
min-width: 32px;
|
||||
min-height: 32px;
|
||||
}
|
||||
|
||||
.calendar-repeat-switch {
|
||||
align-self: end;
|
||||
justify-self: start;
|
||||
}
|
||||
|
||||
.calendar-repeat-switch .ui-icon {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
.calendar-month-repeat-field {
|
||||
align-self: end;
|
||||
justify-self: start;
|
||||
}
|
||||
|
||||
.calendar-month-repeat-switch {
|
||||
align-self: end;
|
||||
grid-template-columns: repeat(2, 30px);
|
||||
width: max-content;
|
||||
padding: 3px;
|
||||
}
|
||||
|
||||
.calendar-month-repeat-switch button {
|
||||
width: 30px;
|
||||
min-width: 30px;
|
||||
min-height: 28px;
|
||||
}
|
||||
|
||||
.calendar-month-repeat-switch .ui-icon {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
}
|
||||
|
||||
.calendar-month-event-repeat-switch {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 3px;
|
||||
min-height: 36px;
|
||||
padding: 3px;
|
||||
border: 1px solid rgba(150, 165, 205, 0.14);
|
||||
border-radius: var(--radius-pill);
|
||||
background: rgba(11, 14, 27, 0.72);
|
||||
}
|
||||
|
||||
.calendar-month-event-repeat-switch button {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
min-width: 0;
|
||||
min-height: 28px;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
border-radius: var(--radius-pill);
|
||||
background: transparent;
|
||||
color: var(--color-text-secondary);
|
||||
overflow: hidden;
|
||||
font-size: 11px;
|
||||
font-weight: 900;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.calendar-month-event-repeat-switch .ui-icon {
|
||||
width: 19px;
|
||||
height: 19px;
|
||||
}
|
||||
|
||||
.calendar-month-event-repeat-switch button.active {
|
||||
background: rgba(139, 92, 246, 0.72);
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.calendar-month-event-repeat-switch button:disabled {
|
||||
opacity: 0.35;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.calendar-form-delete-button {
|
||||
width: 34px;
|
||||
min-width: 34px;
|
||||
min-height: 32px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.calendar-delete-actions {
|
||||
display: flex;
|
||||
align-items: end;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.calendar-color-menu {
|
||||
grid-template-columns: repeat(3, 34px);
|
||||
}
|
||||
|
||||
.calendar-color-picker .calendar-color-menu {
|
||||
right: 0;
|
||||
left: auto;
|
||||
transform: translateY(-4px);
|
||||
}
|
||||
|
||||
.calendar-color-picker:hover .calendar-color-menu,
|
||||
.calendar-color-picker:focus-within .calendar-color-menu {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.calendar-color-picker .calendar-color-menu::before,
|
||||
.calendar-color-picker .calendar-color-menu::after {
|
||||
right: 9px;
|
||||
left: auto;
|
||||
}
|
||||
|
||||
.calendar-form-alert-row {
|
||||
grid-template-columns: minmax(210px, auto) auto minmax(0, 1fr);
|
||||
align-items: start;
|
||||
column-gap: 20px;
|
||||
}
|
||||
|
||||
.calendar-form-alert-row .calendar-form-actions {
|
||||
align-self: end;
|
||||
}
|
||||
|
||||
.calendar-form-actions {
|
||||
display: flex;
|
||||
align-items: end;
|
||||
justify-content: end;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.calendar-form-actions button {
|
||||
min-height: 34px;
|
||||
min-width: 0;
|
||||
padding-inline: 10px;
|
||||
}
|
||||
|
||||
.calendar-form-error {
|
||||
margin: 0;
|
||||
}
|
||||
// Rôle : orchestre les styles du formulaire calendrier.
|
||||
@use "form-layout";
|
||||
@use "date-picker";
|
||||
@use "event-controls";
|
||||
@use "form-actions";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue