2020-01-15 20:42:02 +05:00
|
|
|
.ToolIcon {
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
2020-01-29 02:30:03 +02:00
|
|
|
font-family: Cascadia;
|
2020-01-21 23:07:09 +02:00
|
|
|
cursor: pointer;
|
2020-01-15 20:42:02 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
.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 {
|
2020-01-26 02:34:15 -08:00
|
|
|
position: relative;
|
2020-01-15 20:42:02 +05:00
|
|
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-01-20 15:52:19 -08:00
|
|
|
.ToolIcon_type_radio,
|
|
|
|
.ToolIcon_type_checkbox {
|
2020-01-15 20:42:02 +05:00
|
|
|
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
|
|
|
}
|
|
|
|
}
|
2020-01-26 19:01:56 +00:00
|
|
|
|
|
|
|
.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;
|
|
|
|
}
|
|
|
|
}
|
2020-02-01 17:31:28 +00:00
|
|
|
|
|
|
|
.ToolIcon__keybinding {
|
|
|
|
position: absolute;
|
|
|
|
bottom: 2px;
|
|
|
|
right: 3px;
|
|
|
|
font-size: 0.5em;
|
|
|
|
color: #adb5bd; // OC GRAY 5
|
|
|
|
font-family: Arial, Helvetica, sans-serif;
|
|
|
|
}
|