mp-design-system 1.2.1 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/build/js/app.js +1 -1
- package/dist/build/js/app.js.map +1 -1
- package/dist/build/scss/main.css +1 -1
- package/dist/build/scss/main.css.map +1 -1
- package/package.json +1 -1
- package/src/_includes/components/input/radio.scss +6 -6
- package/src/_includes/components/off-canvas/off-canvas.njk +4 -4
- package/src/_includes/components/off-canvas/off-canvas.scss +7 -0
- package/src/assets/js/imports/off-canvas.js +1 -1
package/package.json
CHANGED
@@ -7,6 +7,8 @@
|
|
7
7
|
@include padding-left('l');
|
8
8
|
position: relative;
|
9
9
|
@include step(-1);
|
10
|
+
box-decoration-break: clone;
|
11
|
+
-webkit-box-decoration-break: clone;
|
10
12
|
|
11
13
|
&:before {
|
12
14
|
transform: translateY(-50%);
|
@@ -92,11 +94,9 @@
|
|
92
94
|
}
|
93
95
|
}
|
94
96
|
|
95
|
-
.c-off-canvas {
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
margin-left: 0;
|
100
|
-
}
|
97
|
+
.c-off-canvas .c-checkbox-group {
|
98
|
+
&> * {
|
99
|
+
width: 100%;
|
100
|
+
margin-left: 0;
|
101
101
|
}
|
102
102
|
}
|
@@ -7,10 +7,10 @@
|
|
7
7
|
{% endif %}
|
8
8
|
|
9
9
|
<div>
|
10
|
-
<div id="{{ params.target.id }}" class="u-flow--m">
|
10
|
+
<div id="{{ params.target.id }}" class="c-checkbox-group u-flow--m">
|
11
11
|
<label class="c-label" data-off-canvas="header">{{ params.header }}</label>
|
12
|
-
<div class="o-grid o-grid--of-three
|
13
|
-
{% for _ in ["3D structure / imaging", "Binding affinity", "Binding kinetics", "Chemical identification", "Contaminant detection and analysis", "Crystal structure determination", "Elemental analysis", "Elemental quantification", "Enzyme kinetics", "Epitaxy analysis"
|
12
|
+
<div class="o-grid o-grid--of-three" data-off-canvas="main">
|
13
|
+
{% for _ in ["3D structure / imaging", "Binding affinity", "Binding kinetics", "Chemical identification", "Contaminant detection and analysis", "Crystal structure determination", "Elemental analysis", "Elemental quantification", "Enzyme kinetics", "Epitaxy analysis"] %}
|
14
14
|
<div>
|
15
15
|
{{ checkbox({
|
16
16
|
label: _,
|
@@ -21,7 +21,7 @@
|
|
21
21
|
</div>
|
22
22
|
{% endfor %}
|
23
23
|
</div>
|
24
|
-
<button class="mp c-button o-off-canvas__update" data-off-canvas="footer" data-off-canvas-close="true">{{ params.target.button.text }}</button>
|
24
|
+
<button class="mp c-button o-off-canvas__update" data-off-canvas="footer" data-off-canvas-close="true" onclick="return false">{{ params.target.button.text }}</button>
|
25
25
|
</div>
|
26
26
|
|
27
27
|
<button class="{{ classNames }}" data-target="{{ params.target.id }}" aria-controls="{{ params.target.id }}" aria-expanded="false" aria-label="Toggle {{ params.header }}" onclick="return false">{{ params.toggle.text }}</button>
|
@@ -77,7 +77,7 @@ function createOffCanvas(target) {
|
|
77
77
|
<main class="c-off-canvas__main">${targetMainContent}</main>
|
78
78
|
<footer class="c-off-canvas__footer">
|
79
79
|
${targetFooterContent}
|
80
|
-
<button class="mp c-twi c-twi--left c-off-canvas__close" data-off-canvas-close="true">
|
80
|
+
<button class="mp c-twi c-twi--left c-off-canvas__close" data-off-canvas-close="true" onclick="return false">
|
81
81
|
<span>Cancel</span>
|
82
82
|
<svg role="img" aria-hidden="true" focusable="false" class="mp c-icon c-icon--cross">
|
83
83
|
<use xlink:href="/static/svg/sprite.svg#cross"></use>
|