2020-01-15 20:42:02 +05:00
|
|
|
.ToolIcon {
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ToolIcon__icon {
|
2020-01-17 02:54:21 +02:00
|
|
|
background-color: #e9ecef;
|
2020-01-15 20:42:02 +05:00
|
|
|
|
2020-01-20 19:59:00 -03:00
|
|
|
width: 2.5rem;
|
|
|
|
height: 2.5rem;
|
2020-01-15 20:42:02 +05:00
|
|
|
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
border-radius: var(--space-factor);
|
|
|
|
|
|
|
|
svg {
|
|
|
|
height: 1em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-01-17 15:43:24 +01:00
|
|
|
.ToolIcon_size_s .ToolIcon__icon {
|
2020-01-20 19:59:00 -03:00
|
|
|
width: 1.4rem;
|
|
|
|
height: 1.4rem;
|
2020-01-17 15:43:24 +01:00
|
|
|
font-size: 0.8em;
|
|
|
|
}
|
|
|
|
|
2020-01-15 20:42:02 +05:00
|
|
|
.ToolIcon_type_button {
|
|
|
|
padding: 0;
|
|
|
|
border: none;
|
|
|
|
margin: 0;
|
|
|
|
font-size: inherit;
|
|
|
|
|
|
|
|
&:hover .ToolIcon__icon {
|
2020-01-17 02:54:21 +02:00
|
|
|
background-color: #e9ecef;
|
2020-01-15 20:42:02 +05:00
|
|
|
}
|
|
|
|
&:active .ToolIcon__icon {
|
2020-01-17 02:54:21 +02:00
|
|
|
background-color: #ced4da;
|
2020-01-15 20:42:02 +05:00
|
|
|
}
|
|
|
|
&:focus .ToolIcon__icon {
|
2020-01-17 02:54:21 +02:00
|
|
|
box-shadow: 0 0 0 2px #a5d8ff;
|
2020-01-15 20:42:02 +05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.ToolIcon_type_radio {
|
|
|
|
position: absolute;
|
|
|
|
opacity: 0;
|
|
|
|
|
|
|
|
&:hover + .ToolIcon__icon {
|
2020-01-17 02:54:21 +02:00
|
|
|
background-color: #e9ecef;
|
2020-01-15 20:42:02 +05:00
|
|
|
}
|
|
|
|
&:checked + .ToolIcon__icon {
|
2020-01-17 02:54:21 +02:00
|
|
|
background-color: #ced4da;
|
2020-01-15 20:42:02 +05:00
|
|
|
}
|
|
|
|
&:focus + .ToolIcon__icon {
|
2020-01-17 02:54:21 +02:00
|
|
|
box-shadow: 0 0 0 2px #a5d8ff;
|
2020-01-15 20:42:02 +05:00
|
|
|
}
|
|
|
|
}
|