Skip to content

Commit 018c567

Browse files
committed
Renamed variable and hopefully changed all usages of small breakpoint
1 parent 202e9cf commit 018c567

12 files changed

+14
-14
lines changed

scss/components/_dropdown-menu.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ $dropdownmenu-border-width: nth($dropdownmenu-border, 1);
124124
}
125125

126126
@each $size in $breakpoint-classes {
127-
@if $size != small {
127+
@if $size != $-zf-zero-breakpoint {
128128
@include breakpoint($size) {
129129
&.#{$size}-horizontal {
130130
@include dropdown-menu-direction(horizontal);

scss/components/_media-object.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ $mediaobject-image-width-stacked: 100% !default;
8181
}
8282

8383
&.stack-for-small .media-object-section {
84-
@include breakpoint(small only) {
84+
@include breakpoint($-zf-zero-breakpoint only) {
8585
@include media-object-stack;
8686
}
8787
}

scss/components/_menu.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ $menu-icon-spacing: 0.25rem !default;
234234
}
235235

236236
@each $size in $breakpoint-classes {
237-
@if $size != small {
237+
@if $size != $-zf-zero-breakpoint {
238238
@include breakpoint($size) {
239239
&.#{$size}-horizontal {
240240
@include menu-direction(horizontal);

scss/components/_off-canvas.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ $maincontent-shadow: 0 0 10px rgba($black, 0.5) !default;
162162

163163
// Reveal off-canvas menu on larger screens
164164
@each $name, $value in $breakpoint-classes {
165-
@if $name != small {
165+
@if $name != $-zf-zero-breakpoint {
166166
@include breakpoint($name) {
167167
.position-left.reveal-for-#{$name} {
168168
@include off-canvas-reveal(left);

scss/components/_reveal.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ $reveal-overlay-background: rgba($black, 0.45) !default;
153153
@include reveal-modal-fullscreen;
154154
}
155155

156-
@include breakpoint(small only) {
156+
@include breakpoint($-zf-zero-breakpoint only) {
157157
@include reveal-modal-fullscreen;
158158
}
159159

scss/components/_top-bar.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ $topbar-unstack-breakpoint: medium !default;
128128

129129
// Generate classes for stacking on each screen size (defined in $breakpoint-classes)
130130
@each $size in $breakpoint-classes {
131-
@if $size != small {
131+
@if $size != $-zf-zero-breakpoint {
132132
&.stacked-for-#{$size} {
133133
@include breakpoint($size down) {
134134
@include top-bar-stacked;

scss/components/_visibility.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868

6969
// Responsive visibility classes
7070
@each $size in $breakpoint-classes {
71-
@if $size != small {
71+
@if $size != $-zf-zero-breakpoint {
7272
.hide-for-#{$size} {
7373
@include hide-for($size);
7474
}

scss/grid/_flex-grid.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@
213213
}
214214
}
215215

216-
@if $-zf-size != $zero-breakpoint-name {
216+
@if $-zf-size != $-zf-zero-breakpoint {
217217
// Sizing (expand)
218218
@include breakpoint($-zf-size) {
219219
.#{$-zf-size}-expand {

scss/grid/_row.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
/// @param {Map|null} $gutter [null] - Gutter value to use when inverting the margins. Set to `null` to refer to the responsive gutter settings.
8181
@mixin grid-row-nest($gutter: $grid-column-gutter) {
8282
@if type-of($gutter) == 'number' {
83-
$gutter: (small: $gutter);
83+
$gutter: ($-zf-zero-breakpoint: $gutter);
8484
}
8585

8686
@each $breakpoint, $value in $gutter {

scss/typography/_alignment.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
@each $size in $breakpoint-classes {
77
@include breakpoint($size) {
88
@each $align in (left, right, center, justify) {
9-
@if $size != 'small' {
9+
@if $size != $-zf-zero-breakpoint {
1010
.#{$size}-text-#{$align} {
1111
text-align: $align;
1212
}

scss/util/_breakpoint.scss

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ $breakpoints: (
1818
xxlarge: 1440px,
1919
) !default;
2020

21-
$zero-breakpoint-name: small !default;
21+
$-zf-zero-breakpoint: small !default;
2222

2323
@if nth(map-values($breakpoints),1) != 0 {
2424
@error 'Your smallest breakpoint (defined in $breakpoints) must be set to "0".';
2525
} @else {
26-
$zero-breakpoint-name: nth(map-keys($breakpoints),1);
26+
$-zf-zero-breakpoint: nth(map-keys($breakpoints),1);
2727
}
2828

2929
/// All of the names in this list will be output as classes in your CSS, like `.small-12`, `.medium-6`, and so on. Each value in this list must also be in the `$breakpoints` map.
@@ -33,7 +33,7 @@ $breakpoint-classes: (small medium large) !default;
3333
/// Generates a media query string matching the input value. Refer to the documentation for the `breakpoint()` mixin to see what the possible inputs are.
3434
///
3535
/// @param {Keyword|Number} $val [small] - Breakpoint name, or px, rem, or em value to process.
36-
@function breakpoint($val: $zero-breakpoint-name) {
36+
@function breakpoint($val: $-zf-zero-breakpoint) {
3737
// Size or keyword
3838
$bp: nth($val, 1);
3939
// Value for max-width media queries

scss/util/_mixins.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@
220220
$map: $breakpoint-classes;
221221

222222
@if not $small {
223-
$map: map-remove($map, $zero-breakpoint-name);
223+
$map: map-remove($map, $-zf-zero-breakpoint);
224224
}
225225

226226
@each $size in $map {

0 commit comments

Comments
 (0)