2020-03-01 14:39:03 -05:00
|
|
|
:root {
|
|
|
|
--button-gray-1: #e9ecef;
|
|
|
|
--button-gray-2: #ced4da;
|
|
|
|
--button-gray-3: #adb5bd;
|
|
|
|
--button-blue: #a5d8ff;
|
|
|
|
}
|
|
|
|
|
2020-01-15 20:42:02 +05:00
|
|
|
.ToolIcon {
|
2020-02-20 18:44:38 -05:00
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
2020-01-15 20:42:02 +05:00
|
|
|
position: relative;
|
2020-01-29 02:30:03 +02:00
|
|
|
font-family: Cascadia;
|
2020-01-21 23:07:09 +02:00
|
|
|
cursor: pointer;
|
2020-03-01 14:39:03 -05:00
|
|
|
background-color: var(--button-gray-1);
|
2020-02-21 14:34:18 -05:00
|
|
|
-webkit-tap-highlight-color: transparent;
|
2020-03-13 15:32:47 -04:00
|
|
|
border-radius: var(--space-factor);
|
2020-01-15 20:42:02 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
.ToolIcon__icon {
|
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-03-11 19:42:18 +01:00
|
|
|
|
|
|
|
& + .ToolIcon__label {
|
2020-04-03 15:24:25 +01:00
|
|
|
margin-inline-start: 0;
|
2020-03-11 19:42:18 +01:00
|
|
|
}
|
2020-01-15 20:42:02 +05:00
|
|
|
}
|
|
|
|
|
2020-02-20 18:44:38 -05:00
|
|
|
.ToolIcon__label {
|
|
|
|
font-family: var(--ui-font);
|
2020-03-11 19:42:18 +01:00
|
|
|
margin: 0 0.8em;
|
2020-03-18 11:31:40 -04:00
|
|
|
text-overflow: ellipsis;
|
2020-02-20 18:44:38 -05:00
|
|
|
}
|
|
|
|
|
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;
|
|
|
|
|
2020-02-20 18:44:38 -05:00
|
|
|
&:hover {
|
2020-03-01 14:39:03 -05:00
|
|
|
background-color: var(--button-gray-1);
|
2020-01-15 20:42:02 +05:00
|
|
|
}
|
2020-02-20 18:44:38 -05:00
|
|
|
&:active {
|
2020-03-01 14:39:03 -05:00
|
|
|
background-color: var(--button-gray-2);
|
2020-01-15 20:42:02 +05:00
|
|
|
}
|
2020-02-20 18:44:38 -05:00
|
|
|
&:focus {
|
2020-03-01 14:39:03 -05:00
|
|
|
box-shadow: 0 0 0 2px var(--button-blue);
|
|
|
|
}
|
|
|
|
&.ToolIcon--selected {
|
|
|
|
background-color: var(--button-gray-2);
|
|
|
|
&:active {
|
|
|
|
background-color: var(--button-gray-3);
|
|
|
|
}
|
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;
|
2020-02-23 04:26:06 +09:00
|
|
|
pointer-events: none;
|
2020-01-15 20:42:02 +05:00
|
|
|
|
|
|
|
&:checked + .ToolIcon__icon {
|
2020-03-01 14:39:03 -05:00
|
|
|
background-color: var(--button-gray-2);
|
2020-01-15 20:42:02 +05:00
|
|
|
}
|
|
|
|
&:focus + .ToolIcon__icon {
|
2020-03-01 14:39:03 -05:00
|
|
|
box-shadow: 0 0 0 2px var(--button-blue);
|
2020-01-15 20:42:02 +05:00
|
|
|
}
|
2020-02-09 17:09:21 +01:00
|
|
|
&:active + .ToolIcon__icon {
|
2020-03-01 14:39:03 -05:00
|
|
|
background-color: var(--button-gray-3);
|
2020-02-09 17:09:21 +01:00
|
|
|
}
|
2020-01-15 20:42:02 +05:00
|
|
|
}
|
2020-01-26 19:01:56 +00:00
|
|
|
|
2020-02-21 14:34:18 -05:00
|
|
|
.ToolIcon_type_floating {
|
2020-02-20 18:44:38 -05:00
|
|
|
background-color: transparent;
|
|
|
|
&:hover {
|
2020-01-26 19:01:56 +00:00
|
|
|
background-color: transparent;
|
|
|
|
}
|
2020-02-20 18:44:38 -05:00
|
|
|
&:active {
|
2020-01-26 19:01:56 +00:00
|
|
|
background-color: transparent;
|
|
|
|
}
|
2020-02-20 18:44:38 -05:00
|
|
|
&:focus {
|
2020-01-26 19:01:56 +00:00
|
|
|
box-shadow: none;
|
|
|
|
}
|
2020-02-21 14:34:18 -05:00
|
|
|
.ToolIcon__icon {
|
|
|
|
width: 2rem;
|
|
|
|
height: 2em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.ToolIcon.ToolIcon__lock {
|
|
|
|
&.ToolIcon_type_floating {
|
|
|
|
margin-left: 0.1rem;
|
|
|
|
}
|
2020-01-26 19:01:56 +00:00
|
|
|
}
|
2020-02-01 17:31:28 +00:00
|
|
|
|
|
|
|
.ToolIcon__keybinding {
|
|
|
|
position: absolute;
|
|
|
|
bottom: 2px;
|
|
|
|
right: 3px;
|
|
|
|
font-size: 0.5em;
|
2020-03-01 14:39:03 -05:00
|
|
|
color: var(--button-gray-3); // OC GRAY 5
|
2020-02-20 18:44:38 -05:00
|
|
|
font-family: var(--ui-font);
|
2020-02-09 17:09:21 +01:00
|
|
|
user-select: none;
|
2020-02-01 17:31:28 +00:00
|
|
|
}
|
2020-03-24 19:51:49 +09:00
|
|
|
|
|
|
|
@media (max-width: 360px) {
|
|
|
|
.ToolIcon.ToolIcon__lock {
|
|
|
|
display: inline-block;
|
|
|
|
position: absolute;
|
|
|
|
top: 60px;
|
|
|
|
right: -8px;
|
|
|
|
|
|
|
|
margin-left: 0;
|
|
|
|
border-radius: 20px 0 0 20px;
|
|
|
|
|
|
|
|
background-color: var(--button-gray-1);
|
|
|
|
&:hover {
|
|
|
|
background-color: var(--button-gray-1);
|
|
|
|
}
|
|
|
|
&:active {
|
|
|
|
background-color: var(--button-gray-2);
|
|
|
|
}
|
|
|
|
|
|
|
|
.ToolIcon__icon {
|
|
|
|
width: 2.5rem;
|
|
|
|
height: 2.5rem;
|
|
|
|
border-radius: inherit;
|
|
|
|
}
|
|
|
|
svg {
|
|
|
|
position: static;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-04-02 12:21:19 -04:00
|
|
|
|
|
|
|
.unlocked-icon {
|
|
|
|
:root[dir="ltr"] & {
|
|
|
|
left: 2px;
|
|
|
|
}
|
|
|
|
:root[dir="rtl"] & {
|
|
|
|
right: 2px;
|
|
|
|
}
|
|
|
|
}
|