-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding some mobile styles to output.
- Loading branch information
1 parent
816c525
commit b048abd
Showing
8 changed files
with
135 additions
and
87 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<?php return array('dependencies' => array('react', 'wp-a11y', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-i18n', 'wp-keycodes', 'wp-plugins', 'wp-url'), 'version' => '218c7a4d296402293c1b'); | ||
<?php return array('dependencies' => array('react', 'wp-a11y', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-i18n', 'wp-keycodes', 'wp-plugins', 'wp-url'), 'version' => '925f5ee0f3f526a452d9'); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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,27 @@ | ||
/* Responsive styles - In hindsight, should've used mobile-first */ | ||
/* Mixin from: https://css-tricks.com/snippets/sass/mixin-manage-breakpoints/ */ | ||
/* It's only used here, so no external file for mixin? */ | ||
$breakpoints: ( | ||
'xs': 420px, | ||
'small': 520px, | ||
'medium': 768px, | ||
'large': 1024px, | ||
'xl': 1200px, | ||
'xxl': 1400px | ||
) !default; | ||
|
||
@mixin respond-to($breakpoint) { | ||
// If the key exists in the map | ||
@if map-has-key($breakpoints, $breakpoint) { | ||
// Prints a media query based on the value | ||
@media (min-width: map-get($breakpoints, $breakpoint)) { | ||
@content; | ||
} | ||
} | ||
|
||
// If the key doesn't exist in the map | ||
@else { | ||
@warn "Unfortunately, no value could be retrieved from `#{$breakpoint}`. " | ||
+ "Available breakpoints are: #{map-keys($breakpoints)}."; | ||
} | ||
} |