Skip to content

Commit

Permalink
feat: make the body styles available by a class helper `.dnb-app-cont…
Browse files Browse the repository at this point in the history
…ent`
  • Loading branch information
tujoworker committed Feb 20, 2019
1 parent 7899ac4 commit d3aee20
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/dnb-ui-lib/src/style/core/scopes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
*/

@mixin bodyDefault() {
*,
::before,
::after {
background-repeat: no-repeat;
box-sizing: border-box;
}

font-family: sans-serif;
font-family: var(--font-family-default);
font-weight: var(--font-weight-default);
Expand All @@ -18,13 +25,6 @@
}

@mixin componentReset() {
*,
::before,
::after {
background-repeat: no-repeat;
box-sizing: border-box;
}

::before,
::after {
text-decoration: inherit;
Expand Down
8 changes: 8 additions & 0 deletions packages/dnb-ui-lib/src/style/dnb-ui-basis.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,13 @@
// core imports
@import './core/utilities.scss';
@import './core/properties.scss';
@import './core/scopes.scss';
@import './core/fonts.scss';
@import './core/helper-classes.scss';

// In order to be able to have the body stiles inside a app wrapper,
// we have this class helper to get the body styles inside the wrapper as well
// without using the body
.dnb-app-content {
@include bodyDefault();
}

0 comments on commit d3aee20

Please sign in to comment.