From 1ce3c599c7f9582c1f61f323d39c1933f99fb9cf Mon Sep 17 00:00:00 2001 From: Mathis Hofer Date: Wed, 6 May 2020 13:47:31 +0200 Subject: [PATCH] Set base font size as in production, compensate sizes #146 #160 --- .../edit-absences-header.component.scss | 9 +++---- .../evaluate-absences-header.component.scss | 9 +++---- src/app/home.component.ts | 2 +- .../presence-control-entry.component.html | 4 +-- .../presence-control-entry.component.scss | 21 +++++----------- .../components/spinner/spinner.component.scss | 4 +-- src/app/shared/styles/container.scss | 9 ------- src/app/shared/styles/datepicker.scss | 22 ++++++++++++++++ src/app/shared/styles/form.scss | 3 +++ src/app/shared/styles/icons.scss | 3 +++ src/app/shared/styles/typography.scss | 25 +++++++++++++++++++ src/bootstrap-variables.scss | 11 +++++--- src/index.html | 2 +- src/styles.scss | 4 +++ 14 files changed, 81 insertions(+), 47 deletions(-) create mode 100644 src/app/shared/styles/datepicker.scss create mode 100644 src/app/shared/styles/form.scss create mode 100644 src/app/shared/styles/icons.scss create mode 100644 src/app/shared/styles/typography.scss diff --git a/src/app/edit-absences/components/edit-absences-header/edit-absences-header.component.scss b/src/app/edit-absences/components/edit-absences-header/edit-absences-header.component.scss index 0e1452e9a..c0d5a5038 100644 --- a/src/app/edit-absences/components/edit-absences-header/edit-absences-header.component.scss +++ b/src/app/edit-absences/components/edit-absences-header/edit-absences-header.component.scss @@ -14,17 +14,14 @@ } .form-group { flex: 1; - min-width: 15rem; - max-width: 30rem; + min-width: 20rem; + max-width: 40rem; margin-right: $spacer; margin-bottom: $spacer / 2; } .buttons { flex: none; - // Attempt to calculate size dynamically failed, since they have - // 1.5rem as base font size in production - // margin-top: $font-size-base * $line-height-base + $label-margin-bottom; - margin-top: 31px; + margin-top: $font-size-base * $line-height-base + $label-margin-bottom; margin-right: 0; } diff --git a/src/app/evaluate-absences/components/evaluate-absences-header/evaluate-absences-header.component.scss b/src/app/evaluate-absences/components/evaluate-absences-header/evaluate-absences-header.component.scss index 0e1452e9a..c0d5a5038 100644 --- a/src/app/evaluate-absences/components/evaluate-absences-header/evaluate-absences-header.component.scss +++ b/src/app/evaluate-absences/components/evaluate-absences-header/evaluate-absences-header.component.scss @@ -14,17 +14,14 @@ } .form-group { flex: 1; - min-width: 15rem; - max-width: 30rem; + min-width: 20rem; + max-width: 40rem; margin-right: $spacer; margin-bottom: $spacer / 2; } .buttons { flex: none; - // Attempt to calculate size dynamically failed, since they have - // 1.5rem as base font size in production - // margin-top: $font-size-base * $line-height-base + $label-margin-bottom; - margin-top: 31px; + margin-top: $font-size-base * $line-height-base + $label-margin-bottom; margin-right: 0; } diff --git a/src/app/home.component.ts b/src/app/home.component.ts index cbaa71682..9f3671a69 100644 --- a/src/app/home.component.ts +++ b/src/app/home.component.ts @@ -3,7 +3,7 @@ import { Component, ChangeDetectionStrategy } from '@angular/core'; @Component({ selector: 'erz-home', template: ` -