@use "../css/variables.module" as *; .excalidraw { .mobile-toolbar { display: flex; flex: 1; align-items: center; padding: 0px; gap: 4px; border-radius: var(--space-factor); overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; justify-content: space-between; } .mobile-toolbar::-webkit-scrollbar { display: none; } .mobile-toolbar .ToolIcon { min-width: 2rem; min-height: 2rem; border-radius: 4px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; .ToolIcon__icon { width: 2.25rem; height: 2.25rem; // hover has no meaning on touch devices (and sticks to the last-tapped // element), so suppress the hover background… &:hover { background-color: transparent; } } // …but not on checked buttons, where the sticky hover of the tap that // checked them would otherwise suppress the checked highlight &.ToolIcon--checked .ToolIcon__icon:hover { background-color: var(--color-surface-primary-container); } svg { width: 1rem; height: 1rem; } } .mobile-toolbar .App-toolbar__extra-tools-dropdown { min-width: 160px; z-index: var(--zIndex-layerUI); } .mobile-toolbar-separator { width: 1px; height: 24px; background: var(--default-border-color); margin: 0 2px; flex-shrink: 0; } .mobile-toolbar-undo { display: flex; align-items: center; } .mobile-toolbar-undo .ToolIcon { min-width: 32px; min-height: 32px; width: 32px; height: 32px; } }