excalidraw/src/components/ToolIcon.scss
Timur Khazamov 79aee53ff6 Redesign idea (#343)
* Redisign idea

* Code cleanup

* Fixed to right container

* Reoredered layout

* Reordering panels

* Export dialog

* Removed redunant code

* Fixed not removing temp canvas

* Fixed preview not using only selected elements

* Returned file name on export

* Toggle export selected/all elements

* Hide copy to clipboard button if no support of clipboard

* Added border to swatches

* Fixed modal flickering
2020-01-15 07:42:02 -08:00

54 lines
832 B
SCSS

.ToolIcon {
display: inline-block;
position: relative;
}
.ToolIcon__icon {
background-color: #ddd;
width: 41px;
height: 41px;
display: flex;
justify-content: center;
align-items: center;
border-radius: var(--space-factor);
svg {
height: 1em;
}
}
.ToolIcon_type_button {
padding: 0;
border: none;
margin: 0;
font-size: inherit;
&:hover .ToolIcon__icon {
background-color: #e7e5e5;
}
&:active .ToolIcon__icon {
background-color: #bdbebc;
}
&:focus .ToolIcon__icon {
box-shadow: 0 0 0 2px steelblue;
}
}
.ToolIcon_type_radio {
position: absolute;
opacity: 0;
&:hover + .ToolIcon__icon {
background-color: #e7e5e5;
}
&:checked + .ToolIcon__icon {
background-color: #bdbebc;
}
&:focus + .ToolIcon__icon {
box-shadow: 0 0 0 2px steelblue;
}
}