7a7a73b78d
* Initial support for mobile devices No editing yet, but UI looks nice and you can open the canvas menu * Add support for editing shape color, etc * Allow the mobile menus to cover the shape selector * Hopefully fix test error * Fix touch on canvas * Fix safe area handling & remove unused Island
103 lines
1.6 KiB
SCSS
103 lines
1.6 KiB
SCSS
.ToolIcon {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
position: relative;
|
|
font-family: Cascadia;
|
|
cursor: pointer;
|
|
background-color: #e9ecef;
|
|
}
|
|
|
|
.ToolIcon__icon {
|
|
width: 2.5rem;
|
|
height: 2.5rem;
|
|
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
|
|
border-radius: var(--space-factor);
|
|
|
|
svg {
|
|
position: relative;
|
|
height: 1em;
|
|
}
|
|
}
|
|
|
|
.ToolIcon__label {
|
|
font-family: var(--ui-font);
|
|
}
|
|
|
|
.ToolIcon_size_s .ToolIcon__icon {
|
|
width: 1.4rem;
|
|
height: 1.4rem;
|
|
font-size: 0.8em;
|
|
}
|
|
|
|
.ToolIcon_type_button {
|
|
padding: 0;
|
|
border: none;
|
|
margin: 0;
|
|
font-size: inherit;
|
|
|
|
&:hover {
|
|
background-color: #e9ecef;
|
|
}
|
|
&:active {
|
|
background-color: #ced4da;
|
|
}
|
|
&:focus {
|
|
box-shadow: 0 0 0 2px #a5d8ff;
|
|
}
|
|
}
|
|
|
|
.ToolIcon_type_radio,
|
|
.ToolIcon_type_checkbox {
|
|
position: absolute;
|
|
opacity: 0;
|
|
|
|
&:hover + .ToolIcon__icon {
|
|
background-color: #e9ecef;
|
|
}
|
|
&:checked + .ToolIcon__icon {
|
|
background-color: #ced4da;
|
|
}
|
|
&:focus + .ToolIcon__icon {
|
|
box-shadow: 0 0 0 2px #a5d8ff;
|
|
}
|
|
&:active + .ToolIcon__icon {
|
|
background-color: #adb5bd;
|
|
}
|
|
}
|
|
|
|
.ToolIcon.ToolIcon__lock {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-left: 0.1rem;
|
|
background-color: transparent;
|
|
|
|
.ToolIcon__icon {
|
|
width: 2rem;
|
|
height: 2em;
|
|
}
|
|
&:hover {
|
|
background-color: transparent;
|
|
}
|
|
&:active {
|
|
background-color: transparent;
|
|
}
|
|
&:focus {
|
|
box-shadow: none;
|
|
}
|
|
}
|
|
|
|
.ToolIcon__keybinding {
|
|
position: absolute;
|
|
bottom: 2px;
|
|
right: 3px;
|
|
font-size: 0.5em;
|
|
color: #adb5bd; // OC GRAY 5
|
|
font-family: var(--ui-font);
|
|
user-select: none;
|
|
}
|