]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
docs: use "smaller" and "larger" to describe breakpoints in Grid/Media Query doc
authorNicolas Coden <nicolas@ncoden.fr>
Sat, 6 Oct 2018 22:28:13 +0000 (00:28 +0200)
committerDaniel Ruf <mac1@daniel-ruf.de>
Sun, 17 Nov 2019 15:49:48 +0000 (16:49 +0100)
docs/pages/grid.md
docs/pages/media-queries.md
docs/pages/prototyping-utilities.md
docs/pages/typography-base.md
js/foundation.util.mediaQuery.js
test/javascript/util/mediaQuery.js

index ff5a56935f5092b41a32a923b358cf87ddf09d7f..04cdbe8bc9d1ecc5bb4f173f6402e810e3f739c5 100644 (file)
@@ -360,7 +360,7 @@ In order to work around browsers' different rounding behaviors, Foundation will
 
 #### Responsive Gutters
 
-The grid *gutter*&mdash;the space between two columns in a row, and the space between the edge of a grid and the edge of the page&mdash;is responsive, and becomes wider on larger screens.
+The grid *gutter*&mdash;the space between two columns in a row, and the space between the edge of a grid and the edge of the page&mdash;is responsive, and becomes larger on larger screens.
 
 Breakpoint | Gutter Size
 -----------|------------
index 1fbebdd8220eed4315e860cf0be5f5106912de4e..b2c1aa00f2e2da3212dd984eaa2f7445e5716f40 100644 (file)
@@ -18,8 +18,8 @@ tags:
 Foundation for Sites has three core breakpoints:
 
 - **Small:** any screen.
-- **Medium:** any screen 640 pixels or wider.
-- **Large:** any screen 1024 pixels or wider.
+- **Medium:** any screen 640 pixels or larger.
+- **Large:** any screen 1024 pixels or larger.
 
 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.
 
@@ -199,12 +199,12 @@ Foundation.MediaQuery.current // => 'small', 'medium', etc.
 
 You can use `MediaQuery.is()` to check the breakpoint the screen is at.
 ```js
-Foundation.MediaQuery.is('medium') // => True for "medium" or wider
+Foundation.MediaQuery.is('medium') // => True for "medium" or larger
 ```
 
 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()`.
 ```js
-// ↑ True for "medium" or wider (by default)
+// ↑ True for "medium" or larger (by default)
 Foundation.MediaQuery.is('medium up');
 Foundation.MediaQuery.atLeast('medium');
 
@@ -212,7 +212,7 @@ Foundation.MediaQuery.atLeast('medium');
 Foundation.MediaQuery.is('medium only');
 Foundation.MediaQuery.only('medium');
 
-// ↓ True for "medium" or smaller
+// ↓ True for "medium" or larger
 Foundation.MediaQuery.is('medium down');
 Foundation.MediaQuery.upTo('medium');
 ```
index 3aa7041bafdc70df910be4341c2dd7e72c898caf..c51456bbab6ea9bcc0f74bd2c60a6bfe86714a7d 100644 (file)
@@ -304,7 +304,7 @@ This creates a tiny separator below the heading of an element and is usually use
 
 ## Font Styling
 
-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`.
+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`.
 
 ```html_example
 <p class="font-wide">Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>
index 8bd9cf043bc9009a098c8c08453f13c8faf6a676..8ee764ea2abc13789832e0fe2d59d271f7348ea5 100644 (file)
@@ -61,7 +61,7 @@ Foundation includes styles for all headings&mdash;they're balanced and sized alo
 
 ### Header Styles
 
-The framework includes two typographic scales&mdash;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 <a href="sass.html#the-settings-file">Settings File</a>.
+The framework includes two typographic scales&mdash;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 <a href="sass.html#the-settings-file">Settings File</a>.
 
 <a class="" data-open-video="1:28"><img src="{{root}}assets/img/icons/watch-video-icon.svg" class="video-icon" height="30" width="30" alt=""> Watch this part in video</a>
 
index ef31362c62a7b7ed0bf7fa5da2ea42f8684714c4..42f0790a07999342badbbf5edcc49c4863f2c3df 100644 (file)
@@ -144,7 +144,7 @@ var MediaQuery = {
 
   /**
    * Checks if the screen is within the given breakpoint.
-   * If smaller than the breakpoint of wider than its upper limit, returns false.
+   * If smaller than the breakpoint of larger than its upper limit it returns false.
    * @function
    * @param {String} size - Name of the breakpoint to check.
    * @returns {Boolean} `true` if the breakpoint matches, `false` otherwise.
@@ -157,7 +157,6 @@ var MediaQuery = {
    * Checks if the screen is within a breakpoint or smaller.
    * @function
    * @param {String} size - Name of the breakpoint to check.
-   * @returns {Boolean} `true` if the breakpoint matches, `false` if it's wider.
    */
   upTo(size) {
     const nextSize = this.next(size);
index 6e108dfd0f279310033119c3e402b3cab12f60d7..c96a3df3f9e6326efb4e01f76468a94242507e38 100644 (file)
@@ -72,7 +72,7 @@ describe('MediaQuery utils', function () {
       plugin.atLeast('xlarge').should.be.false;
     });
 
-    it('returns "true" when wider than the given breakpoint', function () {
+    it('returns "true" when larger than the given breakpoint', function () {
       $iframe.attr('width', 1201); // just after the "xlarge" breakpoint
       (_window.innerWidth); // force the browser to handle the new width synchronously
 
@@ -103,7 +103,7 @@ describe('MediaQuery utils', function () {
       plugin.only('large').should.be.false;
     });
 
-    it('returns "false" when wider than given breakpoint', function () {
+    it('returns "false" when larger than the given breakpoint', function () {
       $iframe.attr('width', 1024); // just after the "medium" breakpoint
       (_window.innerWidth); // force the browser to handle the new width synchronously
 
@@ -134,7 +134,7 @@ describe('MediaQuery utils', function () {
       plugin.upTo('xlarge').should.be.true;
     });
 
-    it('returns "false" when wider than the next breakpoint', function () {
+    it('returns "false" when larger than the next breakpoint', function () {
       $iframe.attr('width', 1441); // just after the "xxlarge" breakpoint
       (_window.innerWidth); // force the browser to handle the new width synchronously