You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/pages/grid.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -360,7 +360,7 @@ In order to work around browsers' different rounding behaviors, Foundation will
360
360
361
361
#### Responsive Gutters
362
362
363
-
The grid *gutter*—the space between two columns in a row, and the space between the edge of a grid and the edge of the page—is responsive, and becomes wider on larger screens.
363
+
The grid *gutter*—the space between two columns in a row, and the space between the edge of a grid and the edge of the page—is responsive, and becomes larger on larger screens.
Copy file name to clipboardexpand all lines: docs/pages/media-queries.md
+16-14
Original file line number
Diff line number
Diff line change
@@ -18,8 +18,8 @@ tags:
18
18
Foundation for Sites has three core breakpoints:
19
19
20
20
-**Small:** any screen.
21
-
-**Medium:** any screen 640 pixels or wider.
22
-
-**Large:** any screen 1024 pixels or wider.
21
+
-**Medium:** any screen 640 pixels or larger.
22
+
-**Large:** any screen 1024 pixels or larger.
23
23
24
24
Many components can be modified at different screen sizes using special *breakpoint classes*. The grid is the most obvious example. In the code below, the left-hand column is six columns wide on small screens, hence `.small-6`. On medium-sized screens, the class `.medium-4` overrides the small style, changing the column to be four wide.
25
25
@@ -197,22 +197,24 @@ Get the name of the current breakpoint with `MediaQuery.current`.
197
197
Foundation.MediaQuery.current// => 'small', 'medium', etc.
198
198
```
199
199
200
-
To see if the screen is currently a certain breakpoint or larger, use `MediaQuery.atLeast`.
201
-
200
+
You can use `MediaQuery.is()` to check the breakpoint the screen is at.
202
201
```js
203
-
if (Foundation.MediaQuery.atLeast('medium')) {
204
-
// True if medium or large
205
-
// False if small
206
-
}
202
+
Foundation.MediaQuery.is('medium') // => True for "medium" or larger
207
203
```
208
204
209
-
To see if the screen is currently a certain breakpoint, use `MediaQuery.is`.
210
-
205
+
You can also use the `up` (default), `only` and `down` modifiers like in Sass, or use the equivalent `MediaQuery.atLeast()`, `MediaQuery.only()` and `MediaQuery.upTo()`.
211
206
```js
212
-
if (Foundation.MediaQuery.is('small only')) {
213
-
// True if small
214
-
// False if medium or large
215
-
}
207
+
// ↑ True for "medium" or larger (by default)
208
+
Foundation.MediaQuery.is('medium up');
209
+
Foundation.MediaQuery.atLeast('medium');
210
+
211
+
// → True for "medium" only
212
+
Foundation.MediaQuery.is('medium only');
213
+
Foundation.MediaQuery.only('medium');
214
+
215
+
// ↓ True for "medium" or larger
216
+
Foundation.MediaQuery.is('medium down');
217
+
Foundation.MediaQuery.upTo('medium');
216
218
```
217
219
218
220
To get the media query of a breakpoint, use `MediaQuery.get`.
Copy file name to clipboardexpand all lines: docs/pages/prototyping-utilities.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -304,7 +304,7 @@ This creates a tiny separator below the heading of an element and is usually use
304
304
305
305
## Font Styling
306
306
307
-
You can use font styling to style your text. You can change the font styling by adding `font-normal`, `font-bold`, `font-italic` to an element. You can also wider the text of an element with `font-wide`.
307
+
You can use font styling to style your text. You can change the font styling by adding `font-normal`, `font-bold`, `font-italic` to an element. You can also larger the text of an element with `font-wide`.
308
308
309
309
```html_example
310
310
<p class="font-wide">Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>
Copy file name to clipboardexpand all lines: docs/pages/typography-base.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,7 @@ Foundation includes styles for all headings—they're balanced and sized alo
61
61
62
62
### Header Styles
63
63
64
-
The framework includes two typographic scales—one uses a narrow range of sizes for small-sized screens, and the other uses a wider range of sizes for medium- and larger-sized screens. You can change these scales, or add new ones for other breakpoints, by editing the `$header-styles` map in your project's <ahref="sass.html#the-settings-file">Settings File</a>.
64
+
The framework includes two typographic scales—one uses a narrow range of sizes for small-sized screens, and the other uses a larger range of sizes for medium- and larger-sized screens. You can change these scales, or add new ones for other breakpoints, by editing the `$header-styles` map in your project's <ahref="sass.html#the-settings-file">Settings File</a>.
65
65
66
66
<aclass=""data-open-video="1:28"><imgsrc="{{root}}assets/img/icons/watch-video-icon.svg"class="video-icon"height="30"width="30"alt=""> Watch this part in video</a>
0 commit comments