Skip to content

Commit

Permalink
Expose screen sizes as CSS custom properties
Browse files Browse the repository at this point in the history
  • Loading branch information
davwheat authored Aug 16, 2021
1 parent 21bd5df commit 42eb187
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions less/common/scaffolding.less
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
:root {
--flarum-screen: none;

--screen-phone-max: @screen-phone-max;
--screen-tablet: @screen-tablet;
--screen-tablet-max: @screen-tablet-max;
--screen-desktop: @screen-desktop;
--screen-desktop-max: @screen-desktop-max;
--screen-desktop-hd: @screen-desktop-hd;

@media @phone { --flarum-screen: phone; }
@media @tablet { --flarum-screen: tablet; }
@media @desktop { --flarum-screen: desktop; }
Expand Down

0 comments on commit 42eb187

Please sign in to comment.