Skip to content

Commit c53867d

Browse files
committed
fix min-width media queries
1 parent 52cc3f1 commit c53867d

File tree

3 files changed

+9
-19
lines changed

3 files changed

+9
-19
lines changed

src/components/mdLayout/mdLayout.scss

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,6 @@ $sizes: (8, 16, 24, 40);
175175
.md-hide-#{$size} {
176176
display: none;
177177
}
178-
179-
.md-hide-#{$size}-and-up {
180-
display: none;
181-
}
182178
}
183179

184180
@include layout-xlarge {
@@ -201,22 +197,18 @@ $sizes: (8, 16, 24, 40);
201197
@include breakpoint-layout(xsmall);
202198
}
203199

204-
@include layout-xlarge-and-up {
205-
@include breakpoint-layout(xlarge);
206-
}
207-
208200
@include layout-large-and-up {
209-
@include breakpoint-layout(large);
201+
@include breakpoint-layout(large-and-up);
210202
}
211203

212204
@include layout-medium-and-up {
213-
@include breakpoint-layout(medium);
205+
@include breakpoint-layout(medium-and-up);
214206
}
215207

216208
@include layout-small-and-up {
217-
@include breakpoint-layout(small);
209+
@include breakpoint-layout(small-and-up);
218210
}
219211

220212
@include layout-xsmall-and-up {
221-
@include breakpoint-layout(xsmall);
213+
@include breakpoint-layout(xsmall-and-up);
222214
}

src/components/mdLayout/mdLayout.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,11 @@
119119
120120
if (this[name]) {
121121
if (typeof this[name] === 'boolean') {
122-
object[prop + size] = true;
122+
if (!this[name]) {
123+
object[prop + size + '-none'] = true;
124+
} else {
125+
object[prop + size] = true;
126+
}
123127
} else {
124128
object[prop + size + '-' + this[name]] = true;
125129
}

src/core/stylesheets/mixins.scss

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,3 @@
7575
@content;
7676
}
7777
}
78-
79-
@mixin layout-xlarge-and-up {
80-
@media (min-width: #{$breakpoint-large - 16px}) {
81-
@content;
82-
}
83-
}

0 commit comments

Comments
 (0)