dso-toolkit 62.25.0 → 62.27.0
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/CHANGELOG.md +30 -0
- package/dist/dso.css +1606 -1442
- package/dist/dso.css.map +1 -1
- package/dist/dso.min.css +1 -1
- package/dist/dso.min.css.map +1 -1
- package/dist/index.js +9 -9
- package/package.json +4 -4
- package/src/components/accordion/accordion-theme-compact.scss +18 -18
- package/src/components/accordion/accordion-theme-default.scss +2 -2
- package/src/components/accordion/accordion.scss +48 -34
- package/src/components/accordion/accordion.variables.scss +4 -4
- package/src/components/action-list/action-list.scss +9 -5
- package/src/components/action-list/action-list.variables.scss +1 -1
- package/src/components/action-list/components/action-list-item.variables.scss +1 -1
- package/src/components/advanced-select/advanced-select.variables.scss +4 -4
- package/src/components/alert/alert.mixins.scss +46 -18
- package/src/components/alert/alert.scss +25 -6
- package/src/components/alert/alert.variables.scss +8 -8
- package/src/components/anchor/anchor.variables.scss +1 -1
- package/src/components/application-heading/application-heading.mixins.scss +5 -5
- package/src/components/badge/badge.mixins.scss +3 -2
- package/src/components/banner/banner.mixins.scss +13 -11
- package/src/components/banner/banner.scss +10 -10
- package/src/components/banner/banner.variables.scss +2 -2
- package/src/components/blockquote/blockquote.scss +4 -3
- package/src/components/body/body.scss +1 -1
- package/src/components/breadcrumbs/breadcrumbs.mixins.scss +9 -7
- package/src/components/button/button.mixins.scss +47 -44
- package/src/components/button/button.scss +2 -2
- package/src/components/button/button.variables.scss +4 -4
- package/src/components/button-row/button-row.scss +1 -1
- package/src/components/card/card.mixins.scss +6 -5
- package/src/components/card/card.scss +15 -15
- package/src/components/card-container/card-container.scss +1 -1
- package/src/components/card-list/card-list.scss +3 -3
- package/src/components/code/code.scss +2 -1
- package/src/components/context/context.scss +10 -10
- package/src/components/definition-list/definition-list.scss +47 -47
- package/src/components/definition-list/definition-list.variables.scss +3 -3
- package/src/components/description/description.mixins.scss +20 -18
- package/src/components/document-component/document-component.scss +6 -6
- package/src/components/document-component-list/document-component-list.scss +1 -1
- package/src/components/document-header/document-header.scss +36 -32
- package/src/components/document-list/document-list.scss +14 -11
- package/src/components/dropdown-menu/dropdown-menu.mixins.scss +14 -11
- package/src/components/dropdown-menu/dropdown-menu.scss +13 -12
- package/src/components/dropdown-menu/dropdown-menu.variables.scss +1 -1
- package/src/components/field-label/field-label.scss +2 -2
- package/src/components/footer/footer.scss +8 -8
- package/src/components/footnotes/footnotes.mixins.scss +2 -2
- package/src/components/form/fieldset.scss +10 -10
- package/src/components/form/form-buttons/form-buttons.scss +5 -5
- package/src/components/form/form-group.scss +35 -33
- package/src/components/form/form-groups/checkboxes/form-group-checkboxes.scss +1 -1
- package/src/components/form/form-groups/confirm/form-group-confirm.scss +2 -2
- package/src/components/form/form-groups/files/form-group-files.scss +18 -13
- package/src/components/form/form-groups/input-number/form-group-input-number.scss +1 -1
- package/src/components/form/form-groups/radios/form-group-radios.scss +2 -2
- package/src/components/form/form-groups/search-bar/form-group-search-bar.scss +3 -3
- package/src/components/form/form-groups/select/form-group-select.scss +1 -1
- package/src/components/form/form-groups/static/form-group-static.scss +10 -10
- package/src/components/form/form-groups/textarea/form-group-textarea.scss +5 -5
- package/src/components/form/form-horizontal.scss +2 -2
- package/src/components/form/form.variables.scss +1 -1
- package/src/components/form-control/form-control.mixins.scss +6 -5
- package/src/components/form-control/form-control.variables.scss +1 -1
- package/src/components/grid/grid.mixins.scss +28 -28
- package/src/components/grid/grid.scss +21 -21
- package/src/components/header/header.scss +3 -3
- package/src/components/headings/headings.mixins.scss +2 -2
- package/src/components/highlight-box/highlight-box.mixins.scss +10 -10
- package/src/components/highlight-box/highlight-box.variables.scss +1 -1
- package/src/components/horizontal-rule/horizontal-rule.scss +4 -4
- package/src/components/icon/icon.scss +2 -2
- package/src/components/image/image.mixins.scss +2 -2
- package/src/components/info/info.mixins.scss +8 -6
- package/src/components/info-button/info-button.mixins.scss +1 -1
- package/src/components/input/input.scss +3 -2
- package/src/components/input-number/input-number.mixins.scss +3 -3
- package/src/components/justify-form-groups/justify-form-groups.scss +7 -7
- package/src/components/label/label.mixins.scss +10 -8
- package/src/components/label/label.scss +4 -4
- package/src/components/label/label.variables.scss +1 -1
- package/src/components/label-group/label-group.mixins.scss +4 -4
- package/src/components/legend-item/legend-item.scss +4 -1
- package/src/components/legend-item/legend-item.variables.scss +3 -3
- package/src/components/link-list/link-list.mixins.scss +4 -4
- package/src/components/link-list/link-list.scss +1 -1
- package/src/components/list/list.mixins.scss +1 -1
- package/src/components/list/list.scss +23 -22
- package/src/components/list-button/list-button.mixins.scss +16 -14
- package/src/components/list-button/list-button.scss +4 -3
- package/src/components/map-controls/map-controls.scss +1 -1
- package/src/components/modal/modal.mixins.scss +18 -12
- package/src/components/modal/modal.scss +6 -4
- package/src/components/modal/modal.variables.scss +5 -5
- package/src/components/navbar/navbar.mixins.scss +15 -12
- package/src/components/navbar/navbar.scss +1 -1
- package/src/components/pagination/pagination.mixins.scss +10 -8
- package/src/components/pagination/pagination.scss +2 -2
- package/src/components/paragraph/paragraph.scss +2 -1
- package/src/components/preformatted-text/preformatted-text.scss +2 -1
- package/src/components/progress-bar/progress-bar.mixins.scss +6 -6
- package/src/components/progress-bar/progress-bar.variables.scss +1 -1
- package/src/components/progress-indicator/progress-indicator.mixins.scss +7 -5
- package/src/components/rich-content/rich-content.mixins.scss +10 -7
- package/src/components/rich-content/rich-content.scss +2 -2
- package/src/components/rich-content/rich-content.variables.scss +2 -1
- package/src/components/search-bar/search-bar.scss +35 -31
- package/src/components/search-bar/search-bar.variables.scss +2 -2
- package/src/components/select/select.scss +1 -1
- package/src/components/selectable/selectable.mixins.scss +42 -40
- package/src/components/shopping-cart/shopping-cart.scss +42 -39
- package/src/components/step-counter/step-counter.mixins.scss +6 -6
- package/src/components/subscript/subscript.scss +1 -1
- package/src/components/subtitle/subtitle.scss +2 -2
- package/src/components/superscript/superscript.scss +1 -1
- package/src/components/table/table.mixins.scss +4 -4
- package/src/components/table/table.scss +27 -26
- package/src/components/table/table.variables.scss +1 -1
- package/src/components/tabs/tabs.scss +23 -20
- package/src/components/tabs/tabs.variables.scss +4 -4
- package/src/components/textarea/textarea.scss +1 -1
- package/src/components/tile/tile.mixins.scss +19 -17
- package/src/components/tile/tile.variables.scss +2 -2
- package/src/components/viewer-grid/viewer-grid.scss +4 -3
- package/src/components/whitebox/whitebox.mixins.scss +13 -11
- package/src/components/whitebox/whitebox.variables.scss +1 -1
- package/src/di.scss +2 -2
- package/src/global/functions/contrast-color.functions.scss +10 -9
- package/src/global/mixins/set-colors.mixin.scss +2 -1
- package/src/global/mixins/symbol.mixins.scss +3 -3
- package/src/global/spacing.scss +3 -3
- package/src/global/utilities.scss +3 -3
- package/src/legacy/legacy-panel.scss +54 -54
- package/src/utilities.scss +2 -2
- package/src/variables/states.scss +4 -0
- package/src/variables/units.scss +9 -9
|
@@ -6,12 +6,13 @@
|
|
|
6
6
|
|
|
7
7
|
dso-viewer-grid {
|
|
8
8
|
.dso-filterblok {
|
|
9
|
-
margin-
|
|
10
|
-
margin-
|
|
9
|
+
margin-inline-start: css-grid-variables.$grid-gutter-width * -0.5;
|
|
10
|
+
margin-inline-end: css-grid-variables.$grid-gutter-width * -0.5;
|
|
11
11
|
|
|
12
12
|
.dso-filterblok-address {
|
|
13
13
|
font-weight: bold;
|
|
14
|
-
margin: units.$u1
|
|
14
|
+
margin-block: units.$u1;
|
|
15
|
+
margin-inline: 0;
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
@media screen and (max-width: media-query-breakpoints.$screen-xs-min) {
|
|
@@ -8,30 +8,32 @@
|
|
|
8
8
|
@mixin root() {
|
|
9
9
|
background: colors.$wit;
|
|
10
10
|
box-shadow: whitebox-variables.$box-shadow;
|
|
11
|
-
margin-
|
|
12
|
-
padding: units.$u2
|
|
11
|
+
margin-block-end: whitebox-variables.$margin-block-end;
|
|
12
|
+
padding-block: units.$u2;
|
|
13
|
+
padding-inline: units.$u3;
|
|
13
14
|
position: relative;
|
|
14
|
-
|
|
15
|
+
inset-block-start: units.$u7;
|
|
15
16
|
|
|
16
17
|
.dso-whitebox-title {
|
|
17
18
|
h2 {
|
|
18
|
-
margin: 0
|
|
19
|
+
margin-block: 0 units.$u6;
|
|
20
|
+
margin-inline: 0;
|
|
19
21
|
text-align: center;
|
|
20
22
|
}
|
|
21
23
|
}
|
|
22
24
|
|
|
23
25
|
.dso-whitebox-link {
|
|
24
|
-
margin-
|
|
26
|
+
margin-block-end: units.$u4;
|
|
25
27
|
text-align: center;
|
|
26
28
|
}
|
|
27
29
|
|
|
28
30
|
.dso-whitebox-icon {
|
|
29
|
-
margin-
|
|
31
|
+
margin-block-end: units.$u4;
|
|
30
32
|
text-align: center;
|
|
31
33
|
|
|
32
34
|
img {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
+
block-size: 160px;
|
|
36
|
+
inline-size: 160px;
|
|
35
37
|
}
|
|
36
38
|
}
|
|
37
39
|
|
|
@@ -48,7 +50,7 @@
|
|
|
48
50
|
}
|
|
49
51
|
|
|
50
52
|
@mixin equal-heights() {
|
|
51
|
-
|
|
52
|
-
min-
|
|
53
|
-
padding-
|
|
53
|
+
block-size: calc(100% - #{whitebox-variables.$margin-block-end});
|
|
54
|
+
min-block-size: auto;
|
|
55
|
+
padding-block-end: units.$u2;
|
|
54
56
|
}
|
package/src/di.scss
CHANGED
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
background: url("#{config.$icons-path}dso-icons.svg#img-#{$icon}") no-repeat;
|
|
7
7
|
background-position: center;
|
|
8
8
|
background-size: cover;
|
|
9
|
-
|
|
9
|
+
block-size: $size;
|
|
10
10
|
vertical-align: $vertical-align;
|
|
11
|
-
|
|
11
|
+
inline-size: $size;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
@mixin variant($icon) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
@use "../../variables/colors.scss" as colors;
|
|
2
2
|
@use "sass:math";
|
|
3
|
+
@use "sass:color";
|
|
3
4
|
|
|
4
5
|
// CONTRAST COLOR FUNCTIONS
|
|
5
6
|
// ========================
|
|
@@ -7,7 +8,7 @@
|
|
|
7
8
|
|
|
8
9
|
// DE-GAMMA AND RE-GAMMA
|
|
9
10
|
@function de-gamma($n) {
|
|
10
|
-
@if $n <=0.03928 {
|
|
11
|
+
@if $n <= 0.03928 {
|
|
11
12
|
@return math.div($n, 12.92);
|
|
12
13
|
} @else {
|
|
13
14
|
@return math.pow((math.div(($n + 0.055), 1.055)), 2.4);
|
|
@@ -15,7 +16,7 @@
|
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
@function re-gamma($n) {
|
|
18
|
-
@if $n <=0.0031308 {
|
|
19
|
+
@if $n <= 0.0031308 {
|
|
19
20
|
@return $n * 12.92;
|
|
20
21
|
} @else {
|
|
21
22
|
@return 1.055 * math.pow($n, math.div(1, 2.4)) - 0.055;
|
|
@@ -24,25 +25,25 @@
|
|
|
24
25
|
|
|
25
26
|
// sRGB BT-709 BRIGHTNESS
|
|
26
27
|
@function brightness($c) {
|
|
27
|
-
$rlin: de-gamma(math.div(red($c), 255));
|
|
28
|
-
$glin: de-gamma(math.div(green($c), 255));
|
|
29
|
-
$blin: de-gamma(math.div(blue($c), 255));
|
|
28
|
+
$rlin: de-gamma(math.div(color.red($c), 255));
|
|
29
|
+
$glin: de-gamma(math.div(color.green($c), 255));
|
|
30
|
+
$blin: de-gamma(math.div(color.blue($c), 255));
|
|
30
31
|
@return re-gamma(0.2126 * $rlin + 0.7152 * $glin + 0.0722 * $blin) * 100;
|
|
31
32
|
}
|
|
32
33
|
|
|
33
34
|
// Compares contrast of a given color to the light/dark arguments and returns whichever is most "contrasty"
|
|
34
35
|
@function apply($color, $dark: colors.$contrast-dark, $light: colors.$contrast-light) {
|
|
35
|
-
@if $color
|
|
36
|
-
@return null;
|
|
37
|
-
} @else {
|
|
36
|
+
@if $color {
|
|
38
37
|
$color-brightness: brightness($color);
|
|
39
38
|
$light-text-brightness: brightness($light);
|
|
40
39
|
$dark-text-brightness: brightness($dark);
|
|
41
40
|
|
|
42
41
|
@return if(
|
|
43
|
-
abs($color-brightness - $light-text-brightness) > abs($color-brightness - $dark-text-brightness),
|
|
42
|
+
math.abs($color-brightness - $light-text-brightness) > math.abs($color-brightness - $dark-text-brightness),
|
|
44
43
|
$light,
|
|
45
44
|
$dark
|
|
46
45
|
);
|
|
47
46
|
}
|
|
47
|
+
|
|
48
|
+
@return null;
|
|
48
49
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@use "sass:map";
|
|
2
|
+
@use "sass:color";
|
|
2
3
|
|
|
3
4
|
@use "../../variables/colors.scss";
|
|
4
5
|
@use "../../components/anchor/anchor.variables" as anchor-variables;
|
|
@@ -22,7 +23,7 @@
|
|
|
22
23
|
$contrast-color: contrast-color.apply($background-color);
|
|
23
24
|
|
|
24
25
|
// set link and icon color according to text color
|
|
25
|
-
@if lightness($background-color) < 100% {
|
|
26
|
+
@if color.lightness($background-color) < 100% {
|
|
26
27
|
@if $links == true {
|
|
27
28
|
--link-color: currentColor;
|
|
28
29
|
--link-hover-color: currentColor;
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
@mixin symbolContainer($symbol-height, $symbol-width, $margin-block-start: 0) {
|
|
5
5
|
background-color: colors.$wit;
|
|
6
6
|
display: block;
|
|
7
|
-
float:
|
|
8
|
-
|
|
7
|
+
float: inline-start;
|
|
8
|
+
block-size: $symbol-height;
|
|
9
9
|
margin-block-start: $margin-block-start;
|
|
10
10
|
margin-inline-end: units.$u1;
|
|
11
|
-
|
|
11
|
+
inline-size: $symbol-width;
|
|
12
12
|
overflow: hidden;
|
|
13
13
|
position: relative;
|
|
14
14
|
}
|
package/src/global/spacing.scss
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// -------------------------------------------------
|
|
5
5
|
// To Do: integrate this with things to come within this file.
|
|
6
6
|
:where(dso-action-list) + :where(.dso-form-buttons) {
|
|
7
|
-
margin-block-start: units.$
|
|
7
|
+
margin-block-start: units.$block-spacing-xlarge;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
// Original spacing of dso-button-row
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
|
|
30
30
|
:where(*) + :where(.dso-button-row),
|
|
31
31
|
:where(.dso-button-row) + :where(*) {
|
|
32
|
-
margin-block-start: units.$
|
|
32
|
+
margin-block-start: units.$block-spacing-medium;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
@@ -61,6 +61,6 @@
|
|
|
61
61
|
// To do: integrate this with #2217 (103)
|
|
62
62
|
:where(.row:has(.dso-button-row)) {
|
|
63
63
|
+ :where(.row:has(:only-child > dl)) {
|
|
64
|
-
margin-block-start: units.$
|
|
64
|
+
margin-block-start: units.$block-spacing-medium;
|
|
65
65
|
}
|
|
66
66
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
@use "../variables/colors";
|
|
3
3
|
|
|
4
4
|
.text-right {
|
|
5
|
-
text-align:
|
|
5
|
+
text-align: end;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.text-center {
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
|
|
24
24
|
.center-block {
|
|
25
25
|
display: block;
|
|
26
|
-
margin-
|
|
27
|
-
margin-
|
|
26
|
+
margin-inline-end: auto;
|
|
27
|
+
margin-inline-start: auto;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
.sr-only {
|
|
@@ -49,7 +49,7 @@ $panel-danger-heading-bg: states.$danger-bg !default;
|
|
|
49
49
|
border-color: $heading-border;
|
|
50
50
|
|
|
51
51
|
+ .panel-collapse > .panel-body {
|
|
52
|
-
border-
|
|
52
|
+
border-block-start-color: $border;
|
|
53
53
|
}
|
|
54
54
|
.badge {
|
|
55
55
|
color: $heading-bg-color;
|
|
@@ -58,14 +58,14 @@ $panel-danger-heading-bg: states.$danger-bg !default;
|
|
|
58
58
|
}
|
|
59
59
|
& > .panel-footer {
|
|
60
60
|
+ .panel-collapse > .panel-body {
|
|
61
|
-
border-
|
|
61
|
+
border-block-end-color: $border;
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
// Base class
|
|
67
67
|
.panel {
|
|
68
|
-
margin-
|
|
68
|
+
margin-block-end: typography.$line-height-computed;
|
|
69
69
|
background-color: $panel-bg;
|
|
70
70
|
border: 1px solid transparent;
|
|
71
71
|
border-radius: $panel-border-radius;
|
|
@@ -77,7 +77,7 @@ $panel-danger-heading-bg: states.$danger-bg !default;
|
|
|
77
77
|
|
|
78
78
|
> .list-group,
|
|
79
79
|
> .panel-collapse > .list-group {
|
|
80
|
-
margin-
|
|
80
|
+
margin-block-end: 0;
|
|
81
81
|
|
|
82
82
|
.list-group-item {
|
|
83
83
|
border-width: 1px 0;
|
|
@@ -87,25 +87,25 @@ $panel-danger-heading-bg: states.$danger-bg !default;
|
|
|
87
87
|
// Add border top radius for first one
|
|
88
88
|
&:first-child {
|
|
89
89
|
.list-group-item:first-child {
|
|
90
|
-
border-
|
|
91
|
-
border-
|
|
92
|
-
border-
|
|
90
|
+
border-block-start: 0;
|
|
91
|
+
border-start-start-radius: $panel-border-radius - 1;
|
|
92
|
+
border-start-end-radius: $panel-border-radius - 1;
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
// Add border bottom radius for last one
|
|
97
97
|
&:last-child {
|
|
98
98
|
.list-group-item:last-child {
|
|
99
|
-
border-
|
|
100
|
-
border-
|
|
101
|
-
border-
|
|
99
|
+
border-block-end: 0;
|
|
100
|
+
border-end-end-radius: $panel-border-radius - 1;
|
|
101
|
+
border-end-start-radius: $panel-border-radius - 1;
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
> .panel-heading + .panel-collapse > .list-group {
|
|
106
106
|
.list-group-item:first-child {
|
|
107
|
-
border-
|
|
108
|
-
border-
|
|
107
|
+
border-start-start-radius: 0;
|
|
108
|
+
border-start-end-radius: 0;
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
|
|
@@ -116,32 +116,32 @@ $panel-danger-heading-bg: states.$danger-bg !default;
|
|
|
116
116
|
> .table,
|
|
117
117
|
> .table-responsive > .table,
|
|
118
118
|
> .panel-collapse > .table {
|
|
119
|
-
margin-
|
|
119
|
+
margin-block-end: 0;
|
|
120
120
|
|
|
121
121
|
caption {
|
|
122
|
-
padding-
|
|
123
|
-
padding-
|
|
122
|
+
padding-inline-end: $panel-body-padding;
|
|
123
|
+
padding-inline-start: $panel-body-padding;
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
// Add border top radius for first one
|
|
127
127
|
> .table:first-child,
|
|
128
128
|
> .table-responsive:first-child > .table:first-child {
|
|
129
|
-
border-
|
|
130
|
-
border-
|
|
129
|
+
border-start-start-radius: $panel-border-radius - 1;
|
|
130
|
+
border-start-end-radius: $panel-border-radius - 1;
|
|
131
131
|
|
|
132
132
|
> thead:first-child,
|
|
133
133
|
> tbody:first-child {
|
|
134
134
|
> tr:first-child {
|
|
135
|
-
border-
|
|
136
|
-
border-
|
|
135
|
+
border-start-start-radius: $panel-border-radius - 1;
|
|
136
|
+
border-start-end-radius: $panel-border-radius - 1;
|
|
137
137
|
|
|
138
138
|
td:first-child,
|
|
139
139
|
th:first-child {
|
|
140
|
-
border-
|
|
140
|
+
border-start-start-radius: $panel-border-radius - 1;
|
|
141
141
|
}
|
|
142
142
|
td:last-child,
|
|
143
143
|
th:last-child {
|
|
144
|
-
border-
|
|
144
|
+
border-start-end-radius: $panel-border-radius - 1;
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
147
|
}
|
|
@@ -149,22 +149,22 @@ $panel-danger-heading-bg: states.$danger-bg !default;
|
|
|
149
149
|
// Add border bottom radius for last one
|
|
150
150
|
> .table:last-child,
|
|
151
151
|
> .table-responsive:last-child > .table:last-child {
|
|
152
|
-
border-
|
|
153
|
-
border-
|
|
152
|
+
border-end-end-radius: $panel-border-radius - 1;
|
|
153
|
+
border-end-start-radius: $panel-border-radius - 1;
|
|
154
154
|
|
|
155
155
|
> tbody:last-child,
|
|
156
156
|
> tfoot:last-child {
|
|
157
157
|
> tr:last-child {
|
|
158
|
-
border-
|
|
159
|
-
border-
|
|
158
|
+
border-end-end-radius: $panel-border-radius - 1;
|
|
159
|
+
border-end-start-radius: $panel-border-radius - 1;
|
|
160
160
|
|
|
161
161
|
td:first-child,
|
|
162
162
|
th:first-child {
|
|
163
|
-
border-
|
|
163
|
+
border-end-start-radius: $panel-border-radius - 1;
|
|
164
164
|
}
|
|
165
165
|
td:last-child,
|
|
166
166
|
th:last-child {
|
|
167
|
-
border-
|
|
167
|
+
border-end-end-radius: $panel-border-radius - 1;
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
170
|
}
|
|
@@ -173,11 +173,11 @@ $panel-danger-heading-bg: states.$danger-bg !default;
|
|
|
173
173
|
> .panel-body + .table-responsive,
|
|
174
174
|
> .table + .panel-body,
|
|
175
175
|
> .table-responsive + .panel-body {
|
|
176
|
-
border-
|
|
176
|
+
border-block-start: 1px solid table.$border-color;
|
|
177
177
|
}
|
|
178
178
|
> .table > tbody:first-child > tr:first-child th,
|
|
179
179
|
> .table > tbody:first-child > tr:first-child td {
|
|
180
|
-
border-
|
|
180
|
+
border-block-start: 0;
|
|
181
181
|
}
|
|
182
182
|
> .table-bordered,
|
|
183
183
|
> .table-responsive > .table-bordered {
|
|
@@ -188,11 +188,11 @@ $panel-danger-heading-bg: states.$danger-bg !default;
|
|
|
188
188
|
> tr {
|
|
189
189
|
> th:first-child,
|
|
190
190
|
> td:first-child {
|
|
191
|
-
border-
|
|
191
|
+
border-inline-start: 0;
|
|
192
192
|
}
|
|
193
193
|
> th:last-child,
|
|
194
194
|
> td:last-child {
|
|
195
|
-
border-
|
|
195
|
+
border-inline-end: 0;
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
198
|
}
|
|
@@ -201,7 +201,7 @@ $panel-danger-heading-bg: states.$danger-bg !default;
|
|
|
201
201
|
> tr:first-child {
|
|
202
202
|
> td,
|
|
203
203
|
> th {
|
|
204
|
-
border-
|
|
204
|
+
border-block-end: 0;
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
207
|
}
|
|
@@ -210,13 +210,13 @@ $panel-danger-heading-bg: states.$danger-bg !default;
|
|
|
210
210
|
> tr:last-child {
|
|
211
211
|
> td,
|
|
212
212
|
> th {
|
|
213
|
-
border-
|
|
213
|
+
border-block-end: 0;
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
218
|
> .table-responsive {
|
|
219
|
-
margin-
|
|
219
|
+
margin-block-end: 0;
|
|
220
220
|
border: 0;
|
|
221
221
|
}
|
|
222
222
|
}
|
|
@@ -227,21 +227,21 @@ $panel-danger-heading-bg: states.$danger-bg !default;
|
|
|
227
227
|
@include rich-content.children();
|
|
228
228
|
|
|
229
229
|
padding: $panel-body-padding;
|
|
230
|
-
padding-
|
|
230
|
+
padding-block-end: 0;
|
|
231
231
|
}
|
|
232
232
|
|
|
233
233
|
// Optional heading
|
|
234
234
|
.panel-heading {
|
|
235
235
|
padding: $panel-heading-padding;
|
|
236
|
-
border-
|
|
237
|
-
border-
|
|
238
|
-
border-
|
|
236
|
+
border-block-end: 1px solid transparent;
|
|
237
|
+
border-start-start-radius: $panel-border-radius - 1;
|
|
238
|
+
border-start-end-radius: $panel-border-radius - 1;
|
|
239
239
|
}
|
|
240
240
|
|
|
241
241
|
// Within heading, strip any `h*` tag of its default margins for spacing.
|
|
242
242
|
.panel-title {
|
|
243
|
-
margin-
|
|
244
|
-
margin-
|
|
243
|
+
margin-block-start: 0;
|
|
244
|
+
margin-block-end: 0;
|
|
245
245
|
font-size: typography.$font-size-base * 1.125;
|
|
246
246
|
color: inherit;
|
|
247
247
|
|
|
@@ -258,19 +258,19 @@ $panel-danger-heading-bg: states.$danger-bg !default;
|
|
|
258
258
|
.panel-footer {
|
|
259
259
|
padding: $panel-footer-padding;
|
|
260
260
|
background-color: $panel-footer-bg;
|
|
261
|
-
border-
|
|
262
|
-
border-
|
|
263
|
-
border-
|
|
261
|
+
border-end-start-radius: $panel-border-radius - 1;
|
|
262
|
+
border-end-end-radius: $panel-border-radius - 1;
|
|
263
|
+
border-block-start: 1px solid $panel-inner-border;
|
|
264
264
|
}
|
|
265
265
|
|
|
266
266
|
// Collapse space between when there's no additional content.
|
|
267
267
|
.panel-heading + .list-group {
|
|
268
268
|
.list-group-item:first-child {
|
|
269
|
-
border-
|
|
269
|
+
border-block-start-width: 0;
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
272
|
.list-group + .panel-footer {
|
|
273
|
-
border-
|
|
273
|
+
border-block-start-width: 0;
|
|
274
274
|
}
|
|
275
275
|
|
|
276
276
|
// Collapsible panels (aka, accordion)
|
|
@@ -278,31 +278,31 @@ $panel-danger-heading-bg: states.$danger-bg !default;
|
|
|
278
278
|
// the help of our collapse JavaScript plugin.
|
|
279
279
|
|
|
280
280
|
.panel-group {
|
|
281
|
-
margin-
|
|
281
|
+
margin-block-end: typography.$line-height-computed;
|
|
282
282
|
|
|
283
283
|
// Tighten up margin so it's only between panels
|
|
284
284
|
.panel {
|
|
285
|
-
margin-
|
|
285
|
+
margin-block-end: 0;
|
|
286
286
|
border-radius: $panel-border-radius;
|
|
287
287
|
|
|
288
288
|
+ .panel {
|
|
289
|
-
margin-
|
|
289
|
+
margin-block-start: 5px;
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
292
|
|
|
293
293
|
.panel-heading {
|
|
294
|
-
border-
|
|
294
|
+
border-block-end: 0;
|
|
295
295
|
|
|
296
296
|
+ .panel-collapse > .panel-body,
|
|
297
297
|
+ .panel-collapse > .list-group {
|
|
298
|
-
border-
|
|
298
|
+
border-block-start: 1px solid $panel-inner-border;
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
301
|
|
|
302
302
|
.panel-footer {
|
|
303
|
-
border-
|
|
303
|
+
border-block-start: 0;
|
|
304
304
|
+ .panel-collapse .panel-body {
|
|
305
|
-
border-
|
|
305
|
+
border-block-end: 1px solid $panel-inner-border;
|
|
306
306
|
}
|
|
307
307
|
}
|
|
308
308
|
}
|
|
@@ -330,10 +330,10 @@ $panel-danger-heading-bg: states.$danger-bg !default;
|
|
|
330
330
|
.panel-heading,
|
|
331
331
|
.panel-footer {
|
|
332
332
|
> :first-child {
|
|
333
|
-
margin-
|
|
333
|
+
margin-block-start: 0;
|
|
334
334
|
}
|
|
335
335
|
|
|
336
336
|
> :last-child {
|
|
337
|
-
margin-
|
|
337
|
+
margin-block-end: 0;
|
|
338
338
|
}
|
|
339
339
|
}
|
package/src/utilities.scss
CHANGED
|
@@ -2,18 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
$success-text: colors.$zwart;
|
|
4
4
|
$success-bg: colors.$success-bg-color;
|
|
5
|
+
$success-compact-accent-color: colors.$success-color;
|
|
5
6
|
$success-border: colors.$success-bg-color;
|
|
6
7
|
|
|
7
8
|
$info-text: colors.$zwart;
|
|
8
9
|
$info-bg: colors.$info-bg-color;
|
|
10
|
+
$info-compact-accent-color: colors.$info-color;
|
|
9
11
|
$info-border: colors.$info-bg-color;
|
|
10
12
|
|
|
11
13
|
$warning-text: colors.$zwart;
|
|
12
14
|
$warning-bg: colors.$warning-bg-color;
|
|
15
|
+
$warning-compact-accent-color: colors.$warning-color;
|
|
13
16
|
$warning-border: colors.$warning-bg-color;
|
|
14
17
|
|
|
15
18
|
$danger-text: colors.$zwart;
|
|
16
19
|
$danger-bg: colors.$danger-bg-color;
|
|
20
|
+
$danger-compact-accent-color: colors.$danger-color;
|
|
17
21
|
$danger-border: colors.$danger-bg-color;
|
|
18
22
|
|
|
19
23
|
$error-text: colors.$zwart;
|
package/src/variables/units.scss
CHANGED
|
@@ -41,18 +41,18 @@ $font-line-height-h4: 1.5;
|
|
|
41
41
|
$font-line-height-h5: 1.5;
|
|
42
42
|
$font-line-height-h6: 1.5;
|
|
43
43
|
|
|
44
|
-
$padding-base-
|
|
45
|
-
$padding-small-
|
|
46
|
-
$padding-large-
|
|
47
|
-
$padding-base-
|
|
44
|
+
$padding-base-block: 6px;
|
|
45
|
+
$padding-small-block: 5px;
|
|
46
|
+
$padding-large-block: 10px;
|
|
47
|
+
$padding-base-inline: 12px;
|
|
48
48
|
|
|
49
49
|
// Super weird shared unit..
|
|
50
|
-
$shared-equal-heights-highlight-box-
|
|
50
|
+
$shared-equal-heights-highlight-box-block-size: $u6;
|
|
51
51
|
|
|
52
|
-
$
|
|
53
|
-
$
|
|
54
|
-
$
|
|
55
|
-
$
|
|
52
|
+
$block-spacing-small: $u1;
|
|
53
|
+
$block-spacing-medium: $u2;
|
|
54
|
+
$block-spacing-large: $u3;
|
|
55
|
+
$block-spacing-xlarge: $u4;
|
|
56
56
|
|
|
57
57
|
$focus-border-radius: 2px;
|
|
58
58
|
$focus-outline-width: 3px;
|