Hide shortcuts on pickers for mobile (#2508)

This commit is contained in:
Lipis 2020-12-11 21:41:54 +02:00 committed by GitHub
parent c742225f43
commit 0efa62cf7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 5 deletions

View File

@ -1,4 +1,4 @@
@import "open-color/open-color.scss"; @import "../css/_variables";
.excalidraw { .excalidraw {
.color-picker { .color-picker {
@ -208,6 +208,7 @@
.color-picker-keybinding { .color-picker-keybinding {
position: absolute; position: absolute;
bottom: 2px; bottom: 2px;
font-size: 0.7em;
:root[dir="ltr"] & { :root[dir="ltr"] & {
right: 2px; right: 2px;
@ -217,7 +218,9 @@
left: 2px; left: 2px;
} }
font-size: 0.7em; @media #{$media-query} {
display: none;
}
} }
.color-picker-type-canvasBackground .color-picker-keybinding { .color-picker-type-canvasBackground .color-picker-keybinding {

View File

@ -1,4 +1,4 @@
@import "open-color/open-color.scss"; @import "../css/_variables";
.excalidraw { .excalidraw {
.picker-container { .picker-container {
@ -98,6 +98,7 @@
.picker-keybinding { .picker-keybinding {
position: absolute; position: absolute;
bottom: 2px; bottom: 2px;
font-size: 0.7em;
:root[dir="ltr"] & { :root[dir="ltr"] & {
right: 2px; right: 2px;
@ -106,8 +107,9 @@
:root[dir="rtl"] & { :root[dir="rtl"] & {
left: 2px; left: 2px;
} }
@media #{$media-query} {
font-size: 0.7em; display: none;
}
} }
.picker-type-canvasBackground .picker-keybinding { .picker-type-canvasBackground .picker-keybinding {