not-bulma 1.0.64 → 1.0.65
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/package.json
CHANGED
|
@@ -164,34 +164,40 @@ class notSideMenu extends Menu {
|
|
|
164
164
|
|
|
165
165
|
static toggle(e) {
|
|
166
166
|
e && e.preventDefault();
|
|
167
|
-
if (this.
|
|
168
|
-
this.
|
|
169
|
-
|
|
170
|
-
|
|
167
|
+
if (this.aside) {
|
|
168
|
+
if (this.isTouch()) {
|
|
169
|
+
this.aside.classList.toggle("is-active");
|
|
170
|
+
} else {
|
|
171
|
+
this.aside.classList.toggle("is-closed");
|
|
172
|
+
}
|
|
173
|
+
this.resizeMain();
|
|
171
174
|
}
|
|
172
|
-
this.resizeMain();
|
|
173
175
|
return false;
|
|
174
176
|
}
|
|
175
177
|
|
|
176
178
|
static hide(e) {
|
|
177
179
|
e && e.preventDefault();
|
|
178
|
-
if (this.
|
|
179
|
-
this.
|
|
180
|
-
|
|
181
|
-
|
|
180
|
+
if (this.aside) {
|
|
181
|
+
if (this.isTouch()) {
|
|
182
|
+
this.aside.classList.remove("is-active");
|
|
183
|
+
} else {
|
|
184
|
+
this.aside.classList.add("is-closed");
|
|
185
|
+
}
|
|
186
|
+
this.resizeMain();
|
|
182
187
|
}
|
|
183
|
-
this.resizeMain();
|
|
184
188
|
return false;
|
|
185
189
|
}
|
|
186
190
|
|
|
187
191
|
static show(e) {
|
|
188
192
|
e && e.preventDefault();
|
|
189
|
-
if (this.
|
|
190
|
-
this.
|
|
191
|
-
|
|
192
|
-
|
|
193
|
+
if (this.aside) {
|
|
194
|
+
if (this.isTouch()) {
|
|
195
|
+
this.aside.classList.add("is-active");
|
|
196
|
+
} else {
|
|
197
|
+
this.aside.classList.remove("is-closed");
|
|
198
|
+
}
|
|
199
|
+
this.resizeMain();
|
|
193
200
|
}
|
|
194
|
-
this.resizeMain();
|
|
195
201
|
return false;
|
|
196
202
|
}
|
|
197
203
|
|