Skip to content

Commit f5b186a

Browse files
authored
Merge pull request #434 from BeAPI/issue/359
update breakpoints to matches WP
2 parents 1c503a3 + 54248c4 commit f5b186a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/scss/01-abstract/_variables.scss

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,18 +126,20 @@ $external-gutter-mobile: 20px;
126126

127127
// ----
128128
// Breakpoints
129+
// Based on WordPress breakpoints (https://github.com/WordPress/gutenberg/blob/trunk/packages/base-styles/_breakpoints.scss)
129130
// ----
130131
$breakpoints: (
131132
xs: 480,
132133
s: 601, // 601px is a wordpress breakpoint (admin-bar become sticky)
133-
sm: 768,
134+
sm: 782,
134135
admin-bar: 784, // admin bar height change
135-
md: 1024,
136-
mdl: 1200,
136+
m: 960,
137+
md: 1080,
138+
mdl: 1279, // Do not use 1280px, it causes a bug under Window Edge with a device pixel ratio higher than 1
139+
l: 1440,
137140
container-default: math.div($container-default + $external-gutter-mobile * 2, 1px),
138141
container-wide: math.div($container-wide + $external-gutter * 2, 1px),
139142
);
140-
// /!\ WARNING: If you use a breakpoint of 1280px, it causes a bug under Window Edge with a device pixel ratio higher than 1. Prefer to use the value 1279px.
141143

142144
// ----
143145
// border

0 commit comments

Comments
 (0)