Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/components/BalanceCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,19 +101,19 @@ function signed(v: number): string {
}

:deep(.ring__value) {
font-size: 30px;
font-size: var(--absence-font-size-figure);
}

:deep(.ring__unit) {
font-size: 12px;
font-size: var(--font-size-small);
}
}

// A line of its own under the ring and the ledger, in the tone of "Pending approval".
.card__notice {
flex-basis: 100%;
margin: 0;
font-size: 0.85rem;
font-size: var(--font-size-small);
text-align: end;
color: var(--color-warning-text, var(--color-warning));
}
Expand All @@ -126,7 +126,7 @@ function signed(v: number): string {
// Push the ledger to the right edge of the card.
margin-inline-start: auto;
padding: 0;
font-size: 0.85rem;
font-size: var(--font-size-small);

&__row {
display: flex;
Expand All @@ -144,7 +144,7 @@ function signed(v: number): string {
}

dt {
font-weight: normal;
font-weight: 400;
text-align: start;
}

Expand All @@ -165,7 +165,7 @@ function signed(v: number): string {
&--available {
border-top: 1px solid var(--color-border);
color: var(--color-main-text);
font-weight: 700;
font-weight: 600;

dd {
color: var(--type-color, var(--color-main-text));
Expand Down
8 changes: 4 additions & 4 deletions src/components/BalanceRing.vue
Original file line number Diff line number Diff line change
Expand Up @@ -148,14 +148,14 @@ function format(v: number): string {
}

&__value {
font-size: 26px;
font-weight: 700;
font-size: var(--absence-font-size-figure);
font-weight: 600;
text-anchor: middle;
fill: var(--color-main-text);
}

&__unit {
font-size: 11px;
font-size: var(--font-size-small);
text-anchor: middle;
fill: var(--color-text-maxcontrast);
}
Expand All @@ -168,7 +168,7 @@ function format(v: number): string {
}

&__meta {
font-size: 0.82rem;
font-size: var(--font-size-small);
color: var(--color-text-maxcontrast);
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/CoveragePanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ defineProps<{

&__title {
margin: 0;
font-size: 0.95rem;
font-size: var(--default-font-size);
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/components/DefaultEntitlementDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ async function apply(): Promise<void> {
}

&__days {
font-size: 1.6rem;
font-weight: bold;
font-size: var(--absence-font-size-figure);
font-weight: 600;

&--old {
color: var(--color-text-maxcontrast);
Expand Down
10 changes: 4 additions & 6 deletions src/components/DonutChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -141,18 +141,16 @@ function fmt(v: number): string {
}

&__total {
font-size: 26px;
font-weight: 700;
font-size: var(--absence-font-size-figure);
font-weight: 600;
text-anchor: middle;
fill: var(--color-main-text);
}

&__unit {
font-size: 11px;
font-size: var(--font-size-small);
text-anchor: middle;
fill: var(--color-text-maxcontrast);
text-transform: uppercase;
letter-spacing: 0.06em;
}

&__legend {
Expand All @@ -168,7 +166,7 @@ function fmt(v: number): string {
display: flex;
align-items: center;
gap: 8px;
font-size: 0.88rem;
font-size: var(--font-size-small);
}
}

Expand Down
8 changes: 3 additions & 5 deletions src/components/EmployeesJsonDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ async function apply() {
border-radius: var(--border-radius-large);
background: var(--color-background-hover);
font-family: var(--font-face-monospace, monospace);
font-size: 0.85rem;
font-size: var(--font-size-small);
overflow: hidden;
}

Expand All @@ -323,7 +323,7 @@ async function apply() {

&--error {
color: var(--color-error-text);
font-weight: bold;
font-weight: 600;
}
}

Expand Down Expand Up @@ -372,11 +372,9 @@ async function apply() {
}

th {
font-size: 0.76rem;
font-size: var(--font-size-small);
font-weight: 600;
color: var(--color-text-maxcontrast);
text-transform: uppercase;
letter-spacing: 0.05em;
}
}

Expand Down
10 changes: 5 additions & 5 deletions src/components/EntitlementDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -281,13 +281,13 @@ async function save() {
}

&__prorata-why {
font-size: 0.85rem;
font-size: var(--font-size-small);
color: var(--color-text-maxcontrast);
}

&__hint {
margin: -4px 0 0;
font-size: 0.85rem;
font-size: var(--font-size-small);
color: var(--color-text-maxcontrast);
}
}
Expand All @@ -299,7 +299,7 @@ async function save() {

&__title {
margin: 0 0 8px;
font-size: 0.9rem;
font-size: var(--default-font-size);
color: var(--color-text-maxcontrast);
}

Expand All @@ -325,7 +325,7 @@ async function save() {
flex: 0 0 auto;
min-width: 3.2em;
text-align: end;
font-weight: bold;
font-weight: 600;
font-variant-numeric: tabular-nums;

&--up { color: var(--color-success-text); }
Expand All @@ -344,7 +344,7 @@ async function save() {

&__meta,
&__empty {
font-size: 0.85rem;
font-size: var(--font-size-small);
color: var(--color-text-maxcontrast);
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/LeaveTypeChip.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const type = computed(() => leaveTypesStore.leaveType(props.typeId))
gap: 6px;
padding: 2px 10px;
border-radius: var(--border-radius-pill, 16px);
font-size: 0.8rem;
font-size: var(--font-size-small);
font-weight: 600;
// The type colour is arbitrary (set by HR), so pull the text toward the
// foreground colour for guaranteed contrast in both light and dark themes,
Expand Down
10 changes: 5 additions & 5 deletions src/components/RegionCodeField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ function storeCode() {

&__hint {
color: var(--color-text-maxcontrast);
font-size: 0.9rem;
font-size: var(--font-size-small);
margin: 8px 0;
}
}
Expand Down Expand Up @@ -298,14 +298,14 @@ function storeCode() {
align-items: center;
gap: 8px;
margin: 0 0 4px;
font-size: 1rem;
font-size: var(--default-font-size);
font-weight: 600;
}

&__count {
padding: 0 8px;
border-radius: var(--border-radius-pill);
font-size: 0.85rem;
font-size: var(--font-size-small);
}

&__column--lost &__count {
Expand All @@ -321,7 +321,7 @@ function storeCode() {
&__year {
margin: 8px 0 2px;
color: var(--color-text-maxcontrast);
font-size: 0.8rem;
font-size: var(--font-size-small);
font-weight: 600;
}

Expand Down Expand Up @@ -352,7 +352,7 @@ function storeCode() {
&__tag {
margin-inline-start: 4px;
color: var(--color-text-maxcontrast);
font-size: 0.8rem;
font-size: var(--font-size-small);
}
}
</style>
12 changes: 6 additions & 6 deletions src/components/RegionReminderDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ async function send() {
&__label {
margin-bottom: 6px;
color: var(--color-text-maxcontrast);
font-size: 0.85rem;
font-size: var(--font-size-small);
}

&__notification {
Expand Down Expand Up @@ -247,15 +247,15 @@ async function send() {
align-items: center;
gap: 8px;
margin: 0 0 8px;
font-size: 1rem;
font-size: var(--default-font-size);
font-weight: 600;
}

&__count {
padding: 0 8px;
border-radius: var(--border-radius-pill);
background: var(--color-background-dark);
font-size: 0.85rem;
font-size: var(--font-size-small);

&--send {
color: var(--color-primary-element-text);
Expand Down Expand Up @@ -285,18 +285,18 @@ async function send() {

&__code {
color: var(--color-text-maxcontrast);
font-size: 0.85rem;
font-size: var(--font-size-small);
}

&__when {
color: var(--color-text-maxcontrast);
font-size: 0.85rem;
font-size: var(--font-size-small);
}

&__footer {
margin: 0;
color: var(--color-text-maxcontrast);
font-size: 0.9rem;
font-size: var(--font-size-small);
}
}
</style>
14 changes: 7 additions & 7 deletions src/components/RequestDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1085,22 +1085,22 @@ async function submit() {

&__label {
font-weight: 600;
font-size: 0.9rem;
font-size: var(--default-font-size);
}

&__req {
color: var(--color-error);
}

&__optional {
font-weight: normal;
font-size: 0.8rem;
font-weight: 400;
font-size: var(--font-size-small);
color: var(--color-text-maxcontrast);
}

&__hint {
margin: 4px 0 0;
font-size: 0.8rem;
font-size: var(--font-size-small);
color: var(--color-text-maxcontrast);
}

Expand Down Expand Up @@ -1134,13 +1134,13 @@ async function submit() {
}

&__count {
font-size: 1.8rem;
font-size: var(--absence-font-size-figure);
font-weight: 600;
color: var(--type-color);
}

&__caption {
font-size: 0.8rem;
font-size: var(--font-size-small);
color: var(--color-text-maxcontrast);
}

Expand All @@ -1150,7 +1150,7 @@ async function submit() {
flex-direction: column;
align-items: flex-end;
gap: 4px;
font-size: 0.85rem;
font-size: var(--font-size-small);
color: var(--color-text-maxcontrast);
}

Expand Down
Loading
Loading