2021-01-28 12:58:35 +01:00
|
|
|
@import "../css/variables.module";
|
2020-12-11 17:17:28 +00:00
|
|
|
|
|
|
|
.excalidraw {
|
|
|
|
.picker-container {
|
|
|
|
display: inline-block;
|
|
|
|
box-sizing: border-box;
|
|
|
|
margin-right: 0.25rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.picker {
|
2021-02-16 20:22:18 +02:00
|
|
|
background: var(--popup-bg-color);
|
|
|
|
border: 0 solid transparentize($oc-white, 0.75);
|
|
|
|
box-shadow: transparentize($oc-black, 0.75) 0 1px 4px;
|
2020-12-11 17:17:28 +00:00
|
|
|
border-radius: 4px;
|
|
|
|
position: absolute;
|
|
|
|
}
|
|
|
|
|
|
|
|
.picker-container button,
|
|
|
|
.picker button {
|
|
|
|
position: relative;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
outline: transparent;
|
|
|
|
background-color: var(--button-gray-2);
|
|
|
|
& svg {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: var(--button-gray-2);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
background-color: var(--button-gray-3);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:disabled {
|
|
|
|
cursor: not-allowed;
|
|
|
|
}
|
|
|
|
|
|
|
|
svg {
|
|
|
|
margin: 0;
|
|
|
|
width: 36px;
|
|
|
|
height: 18px;
|
|
|
|
opacity: 0.6;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.picker button {
|
|
|
|
padding: 0.25rem 0.28rem 0.35rem 0.25rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.picker-triangle {
|
2021-02-16 20:22:18 +02:00
|
|
|
width: 0;
|
|
|
|
height: 0;
|
2020-12-11 17:17:28 +00:00
|
|
|
position: relative;
|
|
|
|
top: -10px;
|
|
|
|
:root[dir="ltr"] & {
|
|
|
|
left: 12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
:root[dir="rtl"] & {
|
|
|
|
right: 12px;
|
|
|
|
}
|
|
|
|
z-index: 10;
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
border-style: solid;
|
2021-02-16 20:22:18 +02:00
|
|
|
border-width: 0 9px 10px;
|
2020-12-11 17:17:28 +00:00
|
|
|
border-color: transparent transparent transparentize($oc-black, 0.9);
|
|
|
|
top: -1px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
border-style: solid;
|
2021-02-16 20:22:18 +02:00
|
|
|
border-width: 0 9px 10px;
|
|
|
|
border-color: transparent transparent var(--popup-bg-color);
|
2020-12-11 17:17:28 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.picker-content {
|
|
|
|
padding: 0.5rem;
|
|
|
|
display: grid;
|
2021-10-27 18:27:39 +01:00
|
|
|
grid-template-columns: repeat(3, auto);
|
2020-12-11 17:17:28 +00:00
|
|
|
grid-gap: 0.5rem;
|
|
|
|
border-radius: 4px;
|
2020-12-16 17:36:55 +05:30
|
|
|
:root[dir="rtl"] & {
|
|
|
|
padding: 0.4rem;
|
|
|
|
}
|
2020-12-11 17:17:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.picker-keybinding {
|
|
|
|
position: absolute;
|
|
|
|
bottom: 2px;
|
2020-12-11 21:41:54 +02:00
|
|
|
font-size: 0.7em;
|
2021-01-06 02:05:03 +05:30
|
|
|
color: var(--keybinding-color);
|
2020-12-11 17:17:28 +00:00
|
|
|
|
|
|
|
:root[dir="ltr"] & {
|
|
|
|
right: 2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
:root[dir="rtl"] & {
|
|
|
|
left: 2px;
|
|
|
|
}
|
2021-04-08 19:54:50 +02:00
|
|
|
@include isMobile {
|
2020-12-11 21:41:54 +02:00
|
|
|
display: none;
|
|
|
|
}
|
2020-12-11 17:17:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.picker-type-canvasBackground .picker-keybinding {
|
|
|
|
color: #aaa;
|
|
|
|
}
|
|
|
|
|
|
|
|
.picker-type-elementBackground .picker-keybinding {
|
2021-02-16 20:22:18 +02:00
|
|
|
color: $oc-white;
|
2020-12-11 17:17:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.picker-swatch[aria-label="transparent"] .picker-keybinding {
|
|
|
|
color: #aaa;
|
|
|
|
}
|
|
|
|
|
|
|
|
.picker-type-elementStroke .picker-keybinding {
|
|
|
|
color: #d4d4d4;
|
|
|
|
}
|
|
|
|
|
2021-03-13 18:58:06 +05:30
|
|
|
&.theme--dark {
|
2020-12-11 17:17:28 +00:00
|
|
|
.picker-type-elementBackground .picker-keybinding {
|
2021-02-16 20:22:18 +02:00
|
|
|
color: $oc-black;
|
2020-12-11 17:17:28 +00:00
|
|
|
}
|
|
|
|
.picker-swatch[aria-label="transparent"] .picker-keybinding {
|
2021-02-16 20:22:18 +02:00
|
|
|
color: $oc-black;
|
2020-12-11 17:17:28 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|