@ons/design-system 72.3.0 → 72.5.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/components/button/_button.scss +171 -3
- package/components/button/_macro.njk +4 -0
- package/components/card/_card.scss +5 -0
- package/components/card/_macro.njk +10 -2
- package/components/card/_macro.spec.js +58 -0
- package/components/card/example-card-set-with-headline-figures.njk +62 -0
- package/components/chart/_chart.scss +29 -0
- package/components/chart/_macro.njk +101 -0
- package/components/chart/_macro.spec.js +437 -0
- package/components/chart/bar-chart.js +160 -0
- package/components/chart/chart-constants.js +21 -0
- package/components/chart/chart.dom.js +8 -0
- package/components/chart/chart.js +157 -0
- package/components/chart/column-chart.js +48 -0
- package/components/chart/common-chart-options.js +200 -0
- package/components/chart/example-bar-chart.njk +54 -0
- package/components/chart/example-clustered-bar-chart.njk +60 -0
- package/components/chart/example-clustered-column-chart.njk +72 -0
- package/components/chart/example-column-chart.njk +52 -0
- package/components/chart/example-line-chart.njk +219 -0
- package/components/chart/example-stacked-bar-chart.njk +60 -0
- package/components/chart/example-stacked-column-chart.njk +65 -0
- package/components/chart/line-chart.js +47 -0
- package/components/chart/specific-chart-options.js +22 -0
- package/components/description-list/_description-list.scss +2 -0
- package/components/footer/_footer.scss +12 -0
- package/components/footer/_macro.njk +38 -17
- package/components/header/_header.scss +18 -2
- package/components/header/_macro.njk +81 -8
- package/components/header/_macro.spec.js +97 -0
- package/components/header/example-header-with-search-button.njk +190 -0
- package/components/header/header.spec.js +128 -0
- package/components/hero/_hero.scss +13 -10
- package/components/hero/_macro.njk +49 -18
- package/components/hero/_macro.spec.js +21 -2
- package/components/hero/example-hero-grey.njk +10 -8
- package/components/icon/_macro.njk +41 -8
- package/components/input/_input.scss +15 -0
- package/components/input/_macro.njk +3 -3
- package/components/navigation/navigation.dom.js +17 -0
- package/components/navigation/navigation.js +72 -2
- package/css/main.css +1 -1
- package/js/main.js +2 -0
- package/package.json +4 -1
- package/scripts/main.es5.js +1 -1
- package/scripts/main.js +1 -1
- package/scss/main.scss +1 -0
- package/scss/utilities/_grid.scss +13 -4
package/scss/main.scss
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
@import '../components/browser-banner/browser-banner';
|
|
12
12
|
@import '../components/button/button';
|
|
13
13
|
@import '../components/card/card';
|
|
14
|
+
@import '../components/chart/chart';
|
|
14
15
|
@import '../components/checkboxes/checkbox';
|
|
15
16
|
@import '../components/checkboxes/checkboxes';
|
|
16
17
|
@import '../components/details/details';
|
|
@@ -126,14 +126,23 @@
|
|
|
126
126
|
padding-left: $grid-gutters * 2;
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
+
&--flex {
|
|
130
|
+
display: flex;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
&--flex-col {
|
|
134
|
+
display: flex;
|
|
135
|
+
flex-direction: column;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
&--stretch {
|
|
139
|
+
align-self: stretch;
|
|
140
|
+
}
|
|
141
|
+
|
|
129
142
|
.ons-grid-flex & {
|
|
130
143
|
width: auto;
|
|
131
144
|
}
|
|
132
145
|
}
|
|
133
|
-
|
|
134
|
-
&_col--flex {
|
|
135
|
-
display: flex;
|
|
136
|
-
}
|
|
137
146
|
}
|
|
138
147
|
|
|
139
148
|
@include bp-suffix(ons-grid-flex--no-wrap) {
|