@helsenorge/designsystem-react 13.0.0-workspaces-beta.1 → 13.0.0-workspaces-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/CHANGELOG.md +4 -0
- package/lib/FormFieldTag.js.map +1 -1
- package/lib/Table.js +3 -3
- package/lib/Table.js.map +1 -1
- package/lib/TableBody.js +2 -2
- package/lib/TableBody.js.map +1 -1
- package/lib/TableCell.js +2 -2
- package/lib/TableCell.js.map +1 -1
- package/lib/TableExpandedRow.js +4 -4
- package/lib/TableExpandedRow.js.map +1 -1
- package/lib/TableExpanderCell.js +2 -2
- package/lib/TableExpanderCell.js.map +1 -1
- package/lib/TableHead.js +6 -6
- package/lib/TableHead.js.map +1 -1
- package/lib/TableHeadCell.js +5 -5
- package/lib/TableHeadCell.js.map +1 -1
- package/lib/TableRow.js +5 -5
- package/lib/TableRow.js.map +1 -1
- package/lib/components/FormFieldTag/FormFieldTag.d.ts +1 -1
- package/lib/components/Toast/styles.module.scss.d.ts +15 -0
- package/package.json +27 -9
- package/scss/_body.scss +11 -0
- package/scss/_breakpoints.scss +29 -0
- package/scss/_figma-tokens.scss +68 -0
- package/scss/_font-mixins.scss +262 -0
- package/scss/_font-settings.scss +8 -0
- package/scss/_fonts.scss +155 -0
- package/scss/_grid.scss +6 -0
- package/scss/_icon.scss +8 -0
- package/scss/_input.scss +139 -0
- package/scss/_palette.scss +146 -0
- package/scss/_print.scss +219 -0
- package/scss/_reset.scss +13 -0
- package/scss/_screen-reader.scss +63 -0
- package/scss/_spacers.scss +42 -0
- package/scss/bootstrap/LICENSE +22 -0
- package/scss/bootstrap/scss/_functions.scss +210 -0
- package/scss/bootstrap/scss/_grid.scss +73 -0
- package/scss/bootstrap/scss/_variables.scss +990 -0
- package/scss/bootstrap/scss/bootstrap-grid.scss +30 -0
- package/scss/bootstrap/scss/mixins/_breakpoints.scss +131 -0
- package/scss/bootstrap/scss/mixins/_deprecate.scss +11 -0
- package/scss/bootstrap/scss/mixins/_grid-framework.scss +89 -0
- package/scss/bootstrap/scss/mixins/_grid.scss +76 -0
- package/scss/bootstrap/scss/utilities/_display.scss +30 -0
- package/scss/bootstrap/scss/utilities/_flex.scss +120 -0
- package/scss/bootstrap/scss/utilities/_spacing.scss +80 -0
- package/scss/bootstrap/scss/vendor/_rfs.scss +233 -0
- package/scss/helsenorge.scss +10 -0
- package/scss/layout.module.scss +14 -0
- package/scss/layout.module.scss.d.ts +9 -0
- package/scss/supernova/index.css +4 -0
- package/scss/supernova/styles/colors.css +258 -0
- package/scss/supernova/styles/spacers.css +24 -0
- package/scss/supernova/styles/typography.css +110 -0
- package/scss/typography.module.scss +182 -0
- package/scss/typography.module.scss.d.ts +38 -0
- package/scss/typography.stories.tsx +203 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// stylelint-disable no-invalid-position-at-import-rule
|
|
2
|
+
|
|
3
|
+
/*!
|
|
4
|
+
* Bootstrap Grid v4.6.2 (https://getbootstrap.com/)
|
|
5
|
+
* Copyright 2011-2022 The Bootstrap Authors
|
|
6
|
+
* Copyright 2011-2022 Twitter, Inc.
|
|
7
|
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
html {
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
-ms-overflow-style: scrollbar;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
*,
|
|
16
|
+
*::before,
|
|
17
|
+
*::after {
|
|
18
|
+
box-sizing: inherit;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@import 'functions';
|
|
22
|
+
@import 'variables';
|
|
23
|
+
@import 'mixins/deprecate';
|
|
24
|
+
@import 'mixins/breakpoints';
|
|
25
|
+
@import 'mixins/grid-framework';
|
|
26
|
+
@import 'mixins/grid';
|
|
27
|
+
@import 'grid';
|
|
28
|
+
@import 'utilities/display';
|
|
29
|
+
@import 'utilities/flex';
|
|
30
|
+
@import 'utilities/spacing';
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use 'sass:list';
|
|
3
|
+
// stylelint-disable scss/comment-no-empty, scss/no-global-function-names
|
|
4
|
+
// Breakpoint viewport sizes and media queries.
|
|
5
|
+
//
|
|
6
|
+
// Breakpoints are defined as a map of (name: minimum width), order from small to large:
|
|
7
|
+
//
|
|
8
|
+
// (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px)
|
|
9
|
+
//
|
|
10
|
+
// The map defined in the `$grid-breakpoints` global variable is used as the `$breakpoints` argument by default.
|
|
11
|
+
|
|
12
|
+
// Name of the next breakpoint, or null for the last breakpoint.
|
|
13
|
+
//
|
|
14
|
+
// >> breakpoint-next(sm)
|
|
15
|
+
// md
|
|
16
|
+
// >> breakpoint-next(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
|
|
17
|
+
// md
|
|
18
|
+
// >> breakpoint-next(sm, $breakpoint-names: (xs sm md lg xl))
|
|
19
|
+
// md
|
|
20
|
+
@function breakpoint-next($name, $breakpoints: $grid-breakpoints, $breakpoint-names: map.keys($breakpoints)) {
|
|
21
|
+
$n: list.index($breakpoint-names, $name);
|
|
22
|
+
|
|
23
|
+
@return if($n != null and $n < list.length($breakpoint-names), list.nth($breakpoint-names, $n + 1), null);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// Minimum breakpoint width. Null for the smallest (first) breakpoint.
|
|
27
|
+
//
|
|
28
|
+
// >> breakpoint-min(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
|
|
29
|
+
// 576px
|
|
30
|
+
@function breakpoint-min($name, $breakpoints: $grid-breakpoints) {
|
|
31
|
+
$min: map.get($breakpoints, $name);
|
|
32
|
+
|
|
33
|
+
@return if($min != 0, $min, null);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// Maximum breakpoint width. Null for the largest (last) breakpoint.
|
|
37
|
+
// The maximum value is calculated as the minimum of the next one less 0.02px
|
|
38
|
+
// to work around the limitations of `min-` and `max-` prefixes and viewports with fractional widths.
|
|
39
|
+
// See https://www.w3.org/TR/mediaqueries-4/#mq-min-max
|
|
40
|
+
// Uses 0.02px rather than 0.01px to work around a current rounding bug in Safari.
|
|
41
|
+
// See https://bugs.webkit.org/show_bug.cgi?id=178261
|
|
42
|
+
//
|
|
43
|
+
// >> breakpoint-max(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
|
|
44
|
+
// 767.98px
|
|
45
|
+
@function breakpoint-max($name, $breakpoints: $grid-breakpoints) {
|
|
46
|
+
$next: breakpoint-next($name, $breakpoints);
|
|
47
|
+
|
|
48
|
+
@return if($next, breakpoint-min($next, $breakpoints) - 0.02, null);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// Returns a blank string if smallest breakpoint, otherwise returns the name with a dash in front.
|
|
52
|
+
// Useful for making responsive utilities.
|
|
53
|
+
//
|
|
54
|
+
// >> breakpoint-infix(xs, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
|
|
55
|
+
// "" (Returns a blank string)
|
|
56
|
+
// >> breakpoint-infix(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
|
|
57
|
+
// "-sm"
|
|
58
|
+
@function breakpoint-infix($name, $breakpoints: $grid-breakpoints) {
|
|
59
|
+
@return if(breakpoint-min($name, $breakpoints) == null, '', '-#{$name}');
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// Media of at least the minimum breakpoint width. No query for the smallest breakpoint.
|
|
63
|
+
// Makes the @content apply to the given breakpoint and wider.
|
|
64
|
+
@mixin media-breakpoint-up($name, $breakpoints: $grid-breakpoints) {
|
|
65
|
+
$min: breakpoint-min($name, $breakpoints);
|
|
66
|
+
|
|
67
|
+
@if $min {
|
|
68
|
+
@media (min-width: $min) {
|
|
69
|
+
@content;
|
|
70
|
+
}
|
|
71
|
+
} @else {
|
|
72
|
+
@content;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// Media of at most the maximum breakpoint width. No query for the largest breakpoint.
|
|
77
|
+
// Makes the @content apply to the given breakpoint and narrower.
|
|
78
|
+
@mixin media-breakpoint-down($name, $breakpoints: $grid-breakpoints) {
|
|
79
|
+
$max: breakpoint-max($name, $breakpoints);
|
|
80
|
+
|
|
81
|
+
@if $max {
|
|
82
|
+
@media (max-width: $max) {
|
|
83
|
+
@content;
|
|
84
|
+
}
|
|
85
|
+
} @else {
|
|
86
|
+
@content;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// Media that spans multiple breakpoint widths.
|
|
91
|
+
// Makes the @content apply between the min and max breakpoints
|
|
92
|
+
@mixin media-breakpoint-between($lower, $upper, $breakpoints: $grid-breakpoints) {
|
|
93
|
+
$min: breakpoint-min($lower, $breakpoints);
|
|
94
|
+
$max: breakpoint-max($upper, $breakpoints);
|
|
95
|
+
|
|
96
|
+
@if $min != null and $max != null {
|
|
97
|
+
@media (min-width: $min) and (max-width: $max) {
|
|
98
|
+
@content;
|
|
99
|
+
}
|
|
100
|
+
} @else if $max == null {
|
|
101
|
+
@include media-breakpoint-up($lower, $breakpoints) {
|
|
102
|
+
@content;
|
|
103
|
+
}
|
|
104
|
+
} @else if $min == null {
|
|
105
|
+
@include media-breakpoint-down($upper, $breakpoints) {
|
|
106
|
+
@content;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
// Media between the breakpoint's minimum and maximum widths.
|
|
112
|
+
// No minimum for the smallest breakpoint, and no maximum for the largest one.
|
|
113
|
+
// Makes the @content apply only to the given breakpoint, not viewports any wider or narrower.
|
|
114
|
+
@mixin media-breakpoint-only($name, $breakpoints: $grid-breakpoints) {
|
|
115
|
+
$min: breakpoint-min($name, $breakpoints);
|
|
116
|
+
$max: breakpoint-max($name, $breakpoints);
|
|
117
|
+
|
|
118
|
+
@if $min != null and $max != null {
|
|
119
|
+
@media (min-width: $min) and (max-width: $max) {
|
|
120
|
+
@content;
|
|
121
|
+
}
|
|
122
|
+
} @else if $max == null {
|
|
123
|
+
@include media-breakpoint-up($name, $breakpoints) {
|
|
124
|
+
@content;
|
|
125
|
+
}
|
|
126
|
+
} @else if $min == null {
|
|
127
|
+
@include media-breakpoint-down($name, $breakpoints) {
|
|
128
|
+
@content;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// stylelint-disable scss/comment-no-empty
|
|
2
|
+
// Deprecate mixin
|
|
3
|
+
//
|
|
4
|
+
// This mixin can be used to deprecate mixins or functions.
|
|
5
|
+
// `$enable-deprecation-messages` is a global variable, `$ignore-warning` is a variable that can be passed to
|
|
6
|
+
// some deprecated mixins to suppress the warning (for example if the mixin is still be used in the current version of Bootstrap)
|
|
7
|
+
@mixin deprecate($name, $deprecate-version, $remove-version, $ignore-warning: false) {
|
|
8
|
+
@if $enable-deprecation-messages != false and $ignore-warning != true {
|
|
9
|
+
@warn "#{$name} has been deprecated as of #{$deprecate-version}. It will be removed entirely in #{$remove-version}.";
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
// stylelint-disable scss/comment-no-empty, scss/no-global-function-names
|
|
3
|
+
// Framework grid generation
|
|
4
|
+
//
|
|
5
|
+
// Used only by Bootstrap to generate the correct number of grid classes given
|
|
6
|
+
// any value of `$grid-columns`.
|
|
7
|
+
|
|
8
|
+
@mixin make-grid-columns($columns: $grid-columns, $gutter: $grid-gutter-width, $breakpoints: $grid-breakpoints) {
|
|
9
|
+
// Common properties for all breakpoints
|
|
10
|
+
%grid-column {
|
|
11
|
+
position: relative;
|
|
12
|
+
width: 100%;
|
|
13
|
+
padding-right: $gutter * 0.5;
|
|
14
|
+
padding-left: $gutter * 0.5;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@each $breakpoint in map.keys($breakpoints) {
|
|
18
|
+
$infix: breakpoint-infix($breakpoint, $breakpoints);
|
|
19
|
+
|
|
20
|
+
@if $columns > 0 {
|
|
21
|
+
// Allow columns to stretch full width below their breakpoints
|
|
22
|
+
@for $i from 1 through $columns {
|
|
23
|
+
.col#{$infix}-#{$i} {
|
|
24
|
+
@extend %grid-column;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.col#{$infix},
|
|
30
|
+
.col#{$infix}-auto {
|
|
31
|
+
@extend %grid-column;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@include media-breakpoint-up($breakpoint, $breakpoints) {
|
|
35
|
+
// Provide basic `.col-{bp}` classes for equal-width flexbox columns
|
|
36
|
+
.col#{$infix} {
|
|
37
|
+
flex-basis: 0;
|
|
38
|
+
flex-grow: 1;
|
|
39
|
+
max-width: 100%;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@if $grid-row-columns > 0 {
|
|
43
|
+
@for $i from 1 through $grid-row-columns {
|
|
44
|
+
.row-cols#{$infix}-#{$i} {
|
|
45
|
+
@include row-cols($i);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.col#{$infix}-auto {
|
|
51
|
+
@include make-col-auto;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@if $columns > 0 {
|
|
55
|
+
@for $i from 1 through $columns {
|
|
56
|
+
.col#{$infix}-#{$i} {
|
|
57
|
+
@include make-col($i, $columns);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.order#{$infix}-first {
|
|
63
|
+
order: -1;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.order#{$infix}-last {
|
|
67
|
+
order: $columns + 1;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@for $i from 0 through $columns {
|
|
71
|
+
.order#{$infix}-#{$i} {
|
|
72
|
+
order: $i;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@if $columns > 0 {
|
|
77
|
+
// `$columns - 1` because offsetting by the width of an entire row isn't possible
|
|
78
|
+
@for $i from 0 through ($columns - 1) {
|
|
79
|
+
@if not($infix == '' and $i == 0) {
|
|
80
|
+
// Avoid emitting useless .offset-0
|
|
81
|
+
.offset#{$infix}-#{$i} {
|
|
82
|
+
@include make-col-offset($i, $columns);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
// stylelint-disable scss/comment-no-empty, scss/no-global-function-names
|
|
3
|
+
|
|
4
|
+
/// Grid system
|
|
5
|
+
//
|
|
6
|
+
// Generate semantic grid columns with these mixins.
|
|
7
|
+
|
|
8
|
+
@mixin make-container($gutter: $grid-gutter-width) {
|
|
9
|
+
width: 100%;
|
|
10
|
+
padding-right: $gutter * 0.5;
|
|
11
|
+
padding-left: $gutter * 0.5;
|
|
12
|
+
margin-right: auto;
|
|
13
|
+
margin-left: auto;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@mixin make-row($gutter: $grid-gutter-width) {
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-wrap: wrap;
|
|
19
|
+
margin-right: -$gutter * 0.5;
|
|
20
|
+
margin-left: -$gutter * 0.5;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// For each breakpoint, define the maximum width of the container in a media query
|
|
24
|
+
@mixin make-container-max-widths($max-widths: $container-max-widths, $breakpoints: $grid-breakpoints) {
|
|
25
|
+
@each $breakpoint, $container-max-width in $max-widths {
|
|
26
|
+
@include media-breakpoint-up($breakpoint, $breakpoints) {
|
|
27
|
+
max-width: $container-max-width;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@include deprecate('The `make-container-max-widths` mixin', 'v4.5.2', 'v5');
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@mixin make-col-ready($gutter: $grid-gutter-width) {
|
|
35
|
+
position: relative;
|
|
36
|
+
|
|
37
|
+
// Prevent columns from becoming too narrow when at smaller grid tiers by
|
|
38
|
+
// always setting `width: 100%;`. This works because we use `flex` values
|
|
39
|
+
// later on to override this initial width.
|
|
40
|
+
width: 100%;
|
|
41
|
+
padding-right: $gutter * 0.5;
|
|
42
|
+
padding-left: $gutter * 0.5;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@mixin make-col($size, $columns: $grid-columns) {
|
|
46
|
+
flex: 0 0 math.percentage(divide($size, $columns));
|
|
47
|
+
|
|
48
|
+
// Add a `max-width` to ensure content within each column does not blow out
|
|
49
|
+
// the width of the column. Applies to IE10+ and Firefox. Chrome and Safari
|
|
50
|
+
// do not appear to require this.
|
|
51
|
+
max-width: math.percentage(divide($size, $columns));
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@mixin make-col-auto() {
|
|
55
|
+
flex: 0 0 auto;
|
|
56
|
+
width: auto;
|
|
57
|
+
max-width: 100%; // Reset earlier grid tiers
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@mixin make-col-offset($size, $columns: $grid-columns) {
|
|
61
|
+
$num: divide($size, $columns);
|
|
62
|
+
|
|
63
|
+
margin-left: if($num == 0, 0, math.percentage($num));
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// Row columns
|
|
67
|
+
//
|
|
68
|
+
// Specify on a parent element(e.g., .row) to force immediate children into NN
|
|
69
|
+
// numberof columns. Supports wrapping to new lines, but does not do a Masonry
|
|
70
|
+
// style grid.
|
|
71
|
+
@mixin row-cols($count) {
|
|
72
|
+
> * {
|
|
73
|
+
flex: 0 0 divide(100%, $count);
|
|
74
|
+
max-width: divide(100%, $count);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
// stylelint-disable declaration-no-important, scss/comment-no-empty, scss/no-global-function-names
|
|
3
|
+
|
|
4
|
+
//
|
|
5
|
+
// Utilities for common `display` values
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
@each $breakpoint in map.keys($grid-breakpoints) {
|
|
9
|
+
@include media-breakpoint-up($breakpoint) {
|
|
10
|
+
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
|
11
|
+
|
|
12
|
+
@each $value in $displays {
|
|
13
|
+
.d#{$infix}-#{$value} {
|
|
14
|
+
display: $value !important;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
//
|
|
21
|
+
// Utilities for toggling `display` in print
|
|
22
|
+
//
|
|
23
|
+
|
|
24
|
+
@media print {
|
|
25
|
+
@each $value in $displays {
|
|
26
|
+
.d-print-#{$value} {
|
|
27
|
+
display: $value !important;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
// stylelint-disable declaration-no-important, scss/comment-no-empty, scss/no-global-function-names
|
|
3
|
+
|
|
4
|
+
// Flex variation
|
|
5
|
+
//
|
|
6
|
+
// Custom styles for additional flex alignment options.
|
|
7
|
+
|
|
8
|
+
@each $breakpoint in map.keys($grid-breakpoints) {
|
|
9
|
+
@include media-breakpoint-up($breakpoint) {
|
|
10
|
+
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
|
11
|
+
|
|
12
|
+
.flex#{$infix}-row {
|
|
13
|
+
flex-direction: row !important;
|
|
14
|
+
}
|
|
15
|
+
.flex#{$infix}-column {
|
|
16
|
+
flex-direction: column !important;
|
|
17
|
+
}
|
|
18
|
+
.flex#{$infix}-row-reverse {
|
|
19
|
+
flex-direction: row-reverse !important;
|
|
20
|
+
}
|
|
21
|
+
.flex#{$infix}-column-reverse {
|
|
22
|
+
flex-direction: column-reverse !important;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.flex#{$infix}-wrap {
|
|
26
|
+
flex-wrap: wrap !important;
|
|
27
|
+
}
|
|
28
|
+
.flex#{$infix}-nowrap {
|
|
29
|
+
flex-wrap: nowrap !important;
|
|
30
|
+
}
|
|
31
|
+
.flex#{$infix}-wrap-reverse {
|
|
32
|
+
flex-wrap: wrap-reverse !important;
|
|
33
|
+
}
|
|
34
|
+
.flex#{$infix}-fill {
|
|
35
|
+
flex: 1 1 auto !important;
|
|
36
|
+
}
|
|
37
|
+
.flex#{$infix}-grow-0 {
|
|
38
|
+
flex-grow: 0 !important;
|
|
39
|
+
}
|
|
40
|
+
.flex#{$infix}-grow-1 {
|
|
41
|
+
flex-grow: 1 !important;
|
|
42
|
+
}
|
|
43
|
+
.flex#{$infix}-shrink-0 {
|
|
44
|
+
flex-shrink: 0 !important;
|
|
45
|
+
}
|
|
46
|
+
.flex#{$infix}-shrink-1 {
|
|
47
|
+
flex-shrink: 1 !important;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.justify-content#{$infix}-start {
|
|
51
|
+
justify-content: flex-start !important;
|
|
52
|
+
}
|
|
53
|
+
.justify-content#{$infix}-end {
|
|
54
|
+
justify-content: flex-end !important;
|
|
55
|
+
}
|
|
56
|
+
.justify-content#{$infix}-center {
|
|
57
|
+
justify-content: center !important;
|
|
58
|
+
}
|
|
59
|
+
.justify-content#{$infix}-between {
|
|
60
|
+
justify-content: space-between !important;
|
|
61
|
+
}
|
|
62
|
+
.justify-content#{$infix}-around {
|
|
63
|
+
justify-content: space-around !important;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.align-items#{$infix}-start {
|
|
67
|
+
align-items: flex-start !important;
|
|
68
|
+
}
|
|
69
|
+
.align-items#{$infix}-end {
|
|
70
|
+
align-items: flex-end !important;
|
|
71
|
+
}
|
|
72
|
+
.align-items#{$infix}-center {
|
|
73
|
+
align-items: center !important;
|
|
74
|
+
}
|
|
75
|
+
.align-items#{$infix}-baseline {
|
|
76
|
+
align-items: baseline !important;
|
|
77
|
+
}
|
|
78
|
+
.align-items#{$infix}-stretch {
|
|
79
|
+
align-items: stretch !important;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.align-content#{$infix}-start {
|
|
83
|
+
align-content: flex-start !important;
|
|
84
|
+
}
|
|
85
|
+
.align-content#{$infix}-end {
|
|
86
|
+
align-content: flex-end !important;
|
|
87
|
+
}
|
|
88
|
+
.align-content#{$infix}-center {
|
|
89
|
+
align-content: center !important;
|
|
90
|
+
}
|
|
91
|
+
.align-content#{$infix}-between {
|
|
92
|
+
align-content: space-between !important;
|
|
93
|
+
}
|
|
94
|
+
.align-content#{$infix}-around {
|
|
95
|
+
align-content: space-around !important;
|
|
96
|
+
}
|
|
97
|
+
.align-content#{$infix}-stretch {
|
|
98
|
+
align-content: stretch !important;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.align-self#{$infix}-auto {
|
|
102
|
+
align-self: auto !important;
|
|
103
|
+
}
|
|
104
|
+
.align-self#{$infix}-start {
|
|
105
|
+
align-self: flex-start !important;
|
|
106
|
+
}
|
|
107
|
+
.align-self#{$infix}-end {
|
|
108
|
+
align-self: flex-end !important;
|
|
109
|
+
}
|
|
110
|
+
.align-self#{$infix}-center {
|
|
111
|
+
align-self: center !important;
|
|
112
|
+
}
|
|
113
|
+
.align-self#{$infix}-baseline {
|
|
114
|
+
align-self: baseline !important;
|
|
115
|
+
}
|
|
116
|
+
.align-self#{$infix}-stretch {
|
|
117
|
+
align-self: stretch !important;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
// stylelint-disable declaration-no-importantm, scss/no-global-function-names
|
|
3
|
+
|
|
4
|
+
// Margin and Padding
|
|
5
|
+
|
|
6
|
+
@each $breakpoint in map.keys($grid-breakpoints) {
|
|
7
|
+
@include media-breakpoint-up($breakpoint) {
|
|
8
|
+
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
|
9
|
+
|
|
10
|
+
@each $prop, $abbrev in (margin: m, padding: p) {
|
|
11
|
+
@each $size, $length in $spacers {
|
|
12
|
+
.#{$abbrev}#{$infix}-#{$size} {
|
|
13
|
+
#{$prop}: $length !important;
|
|
14
|
+
}
|
|
15
|
+
.#{$abbrev}t#{$infix}-#{$size},
|
|
16
|
+
.#{$abbrev}y#{$infix}-#{$size} {
|
|
17
|
+
#{$prop}-top: $length !important;
|
|
18
|
+
}
|
|
19
|
+
.#{$abbrev}r#{$infix}-#{$size},
|
|
20
|
+
.#{$abbrev}x#{$infix}-#{$size} {
|
|
21
|
+
#{$prop}-right: $length !important;
|
|
22
|
+
}
|
|
23
|
+
.#{$abbrev}b#{$infix}-#{$size},
|
|
24
|
+
.#{$abbrev}y#{$infix}-#{$size} {
|
|
25
|
+
#{$prop}-bottom: $length !important;
|
|
26
|
+
}
|
|
27
|
+
.#{$abbrev}l#{$infix}-#{$size},
|
|
28
|
+
.#{$abbrev}x#{$infix}-#{$size} {
|
|
29
|
+
#{$prop}-left: $length !important;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// Negative margins (e.g., where `.mb-n1` is negative version of `.mb-1`)
|
|
35
|
+
@each $size, $length in $spacers {
|
|
36
|
+
@if '#{$size}' != '0' {
|
|
37
|
+
.m#{$infix}-n#{$size} {
|
|
38
|
+
margin: -$length !important;
|
|
39
|
+
}
|
|
40
|
+
.mt#{$infix}-n#{$size},
|
|
41
|
+
.my#{$infix}-n#{$size} {
|
|
42
|
+
margin-top: -$length !important;
|
|
43
|
+
}
|
|
44
|
+
.mr#{$infix}-n#{$size},
|
|
45
|
+
.mx#{$infix}-n#{$size} {
|
|
46
|
+
margin-right: -$length !important;
|
|
47
|
+
}
|
|
48
|
+
.mb#{$infix}-n#{$size},
|
|
49
|
+
.my#{$infix}-n#{$size} {
|
|
50
|
+
margin-bottom: -$length !important;
|
|
51
|
+
}
|
|
52
|
+
.ml#{$infix}-n#{$size},
|
|
53
|
+
.mx#{$infix}-n#{$size} {
|
|
54
|
+
margin-left: -$length !important;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// Some special margin utils
|
|
60
|
+
.m#{$infix}-auto {
|
|
61
|
+
margin: auto !important;
|
|
62
|
+
}
|
|
63
|
+
.mt#{$infix}-auto,
|
|
64
|
+
.my#{$infix}-auto {
|
|
65
|
+
margin-top: auto !important;
|
|
66
|
+
}
|
|
67
|
+
.mr#{$infix}-auto,
|
|
68
|
+
.mx#{$infix}-auto {
|
|
69
|
+
margin-right: auto !important;
|
|
70
|
+
}
|
|
71
|
+
.mb#{$infix}-auto,
|
|
72
|
+
.my#{$infix}-auto {
|
|
73
|
+
margin-bottom: auto !important;
|
|
74
|
+
}
|
|
75
|
+
.ml#{$infix}-auto,
|
|
76
|
+
.mx#{$infix}-auto {
|
|
77
|
+
margin-left: auto !important;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|