f8a41cee16
* Add keybindings for shapes I'm not 100% sure about this one. I feel like it's going to help people be a lot more productive to display the key bindings at all time. But it also clutters the UI... * increase font-size * fix shape keybindings for non-qwerty keyboards * tweak position and color Co-authored-by: David Luzar <luzar.david@gmail.com>
95 lines
1.6 KiB
SCSS
95 lines
1.6 KiB
SCSS
.ToolIcon {
|
|
display: inline-block;
|
|
position: relative;
|
|
font-family: Cascadia;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.ToolIcon__icon {
|
|
background-color: #e9ecef;
|
|
|
|
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_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 .ToolIcon__icon {
|
|
background-color: #e9ecef;
|
|
}
|
|
&:active .ToolIcon__icon {
|
|
background-color: #ced4da;
|
|
}
|
|
&:focus .ToolIcon__icon {
|
|
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;
|
|
}
|
|
}
|
|
|
|
.ToolIcon.ToolIcon__lock {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-left: 0.1rem;
|
|
|
|
.ToolIcon__icon {
|
|
background-color: transparent;
|
|
width: 2rem;
|
|
height: 2em;
|
|
}
|
|
&:hover .ToolIcon__icon {
|
|
background-color: transparent;
|
|
}
|
|
&:active .ToolIcon__icon {
|
|
background-color: transparent;
|
|
}
|
|
&:focus .ToolIcon__icon {
|
|
box-shadow: none;
|
|
}
|
|
}
|
|
|
|
.ToolIcon__keybinding {
|
|
position: absolute;
|
|
bottom: 2px;
|
|
right: 3px;
|
|
font-size: 0.5em;
|
|
color: #adb5bd; // OC GRAY 5
|
|
font-family: Arial, Helvetica, sans-serif;
|
|
}
|