mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
feat: use component dimensions to break to mobile (#3414)
Co-authored-by: Jed Fox <git@jedfox.com>
This commit is contained in:
parent
016e69b9f2
commit
09dfd16b17
27 changed files with 162 additions and 144 deletions
|
@ -480,7 +480,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
@media #{$is-mobile-query} {
|
||||
@include isMobile {
|
||||
aside {
|
||||
display: none;
|
||||
}
|
||||
|
|
|
@ -1,10 +1,13 @@
|
|||
@import "open-color/open-color.scss";
|
||||
|
||||
// keep up to date with is-mobile.tsx
|
||||
$is-mobile-query: "(max-width: 600px), (max-height: 500px) and (max-width: 1000px)";
|
||||
@mixin isMobile() {
|
||||
@at-root .excalidraw--mobile#{&} {
|
||||
@content;
|
||||
}
|
||||
}
|
||||
|
||||
$theme-filter: "invert(93%) hue-rotate(180deg)";
|
||||
|
||||
:export {
|
||||
isMobileQuery: unquote($is-mobile-query);
|
||||
themeFilter: unquote($theme-filter);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue