Files
mina-sidor-fa-web/libs/styles/src/styles.scss
T
Daniel Appelgren d3c61a4c56 feature(ui-library): Added own library of UI components to replace digi-ng. Skeleton is first component moved (TV-850)
Squashed commit of the following:

commit d76e32cd99e2e823142f4410e66c66df5e096041
Author: Daniel Appelgren <daniel.appelgren@arbetsformedlingen.se>
Date:   Thu Oct 28 10:28:02 2021 +0200

    Move styles to own library

commit 85f0a5788ebdd7309499b1b623f4ac1046f45811
Author: Daniel Appelgren <daniel.appelgren@arbetsformedlingen.se>
Date:   Thu Oct 28 10:09:23 2021 +0200

    double quotes in html

commit eeb600cd631e3478c136795a8109e8927546b14b
Author: Daniel Appelgren <daniel.appelgren@arbetsformedlingen.se>
Date:   Wed Oct 27 16:42:48 2021 +0200

    UI library with copy of digi-ng's skeleton

commit 11a24c0eef173e6b2f087eca5e96063036e6394b
Author: Daniel Appelgren <daniel.appelgren@arbetsformedlingen.se>
Date:   Wed Oct 27 16:06:43 2021 +0200

    Update .eslintrc.json

commit 3c4b2e4823dbd8e9ca8dd332966bd10ac0fc098f
Author: Daniel Appelgren <daniel.appelgren@arbetsformedlingen.se>
Date:   Wed Oct 27 15:08:32 2021 +0200

    add nx library
2021-10-28 10:34:28 +02:00

108 lines
1.8 KiB
SCSS

@import '@digi/core/dist/digi/digi.css';
@import '~@angular/cdk/overlay-prebuilt.css';
@import 'mixins/a11y';
@import 'mixins/backdrop';
@import 'mixins/icon';
@import 'mixins/link';
@import 'variables/z-index';
* {
font-family: var(--digi--typography--font-family);
box-sizing: border-box;
::before,
::after {
box-sizing: border-box;
}
}
body {
margin: 0;
font-weight: var(--digi--typography--font-weight);
}
button {
font-family: var(--digi--typography--font-family);
cursor: pointer;
}
strong {
font-weight: var(--digi--typography--font-weight--semibold);
}
address {
font-style: normal;
}
dl {
dt {
font-weight: var(--digi--typography--font-weight--semibold);
}
dd {
margin-left: 0;
margin-bottom: 0.5rem;
}
}
// Make all digi icons display inline-flex to make them get the correct height.
[class^='sc-digi-icon'],
.digi-button__icon {
display: inline-flex;
}
// Fix issue with too long modal-content. This makes it scrollable.
.digi-ng-dialog-base__content {
max-height: 90vh;
overflow-x: auto;
}
.digi-ng-dialog {
position: fixed;
z-index: $msfa__z-index-backdrop;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
// Removing margins from digi fieldset component.
.digi-form-fieldset {
margin: 0;
&__legend {
margin-bottom: var(--digi--layout--gutter--s);
padding: 0;
}
}
.msfa {
&__a11y-sr-only {
@include msfa__a11y-sr-only;
}
&__small-text {
font-size: 0.875em !important;
}
&__backdrop {
@include msfa__backdrop($msfa__z-index-default, false);
&--full-screen {
@include msfa__backdrop($msfa__z-index-backdrop);
}
}
&__digi-icon {
display: inline-flex;
}
&__link {
@include msfa__link(false, 'light');
&--ignore-visited:visited {
@include msfa__link(true, 'light');
}
}
}