-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
2,683 additions
and
876 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
sidebar: auto | ||
prev: /configuration/ | ||
next: ./debug-outline.html | ||
--- | ||
|
||
# Breakpoint | ||
|
||
This plugin adds a `[data-breakpoint]` selector that exposes the current screen and the screens configuration in its `::before` and `::after` pseudo-elements. | ||
|
||
::: tip | ||
This plugin is developped to match our JS Toolkit `resize` service which exposes `breakpoint` and `breakpoints` props when a `[data-breakpoint]` element is found in the DOM. | ||
::: | ||
|
||
## Configuration | ||
|
||
The plugin can be configured with the `theme.breakpointPlugin` property: | ||
|
||
```js{3-5} | ||
module.exports = { | ||
theme: { | ||
breakpointPlugin: { | ||
smallestBreakpointName: 'xxs', | ||
}, | ||
}, | ||
}; | ||
``` | ||
|
||
### `smallestBreakpointName` | ||
|
||
- Type: `String` | ||
- Default: `'xxs'` | ||
|
||
The name to use for the smallest breakpoint. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
sidebar: auto | ||
prev: /plugins/ | ||
prev: ./breakpoint.html | ||
next: ./display.html | ||
--- | ||
|
||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.