2021-11-17 23:53:43 +05:30
|
|
|
@import "../css/variables.module";
|
|
|
|
|
2020-09-26 02:48:45 +05:30
|
|
|
.excalidraw {
|
|
|
|
.library-unit {
|
|
|
|
align-items: center;
|
2022-06-21 20:03:23 +05:00
|
|
|
border: 1px solid transparent;
|
2020-09-26 02:48:45 +05:30
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
position: relative;
|
2022-11-01 17:29:58 +01:00
|
|
|
width: 55px;
|
|
|
|
height: 55px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
border-radius: var(--border-radius-lg);
|
2021-11-17 23:53:43 +05:30
|
|
|
|
|
|
|
&--hover {
|
2022-11-01 17:29:58 +01:00
|
|
|
border-color: var(--color-primary);
|
2021-11-17 23:53:43 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
&--selected {
|
2022-11-01 17:29:58 +01:00
|
|
|
border-color: var(--color-primary);
|
|
|
|
border-width: 1px;
|
2021-11-17 23:53:43 +05:30
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-09-26 02:48:45 +05:30
|
|
|
.library-unit__dragger {
|
|
|
|
display: flex;
|
2021-12-21 19:59:36 +01:00
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2020-09-26 02:48:45 +05:30
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
}
|
2020-07-10 02:20:23 -07:00
|
|
|
|
2020-09-26 02:48:45 +05:30
|
|
|
.library-unit__dragger > svg {
|
2021-03-13 18:58:06 +05:30
|
|
|
filter: var(--theme-filter);
|
2020-09-26 02:48:45 +05:30
|
|
|
flex-grow: 1;
|
|
|
|
max-height: 100%;
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
2020-07-10 02:20:23 -07:00
|
|
|
|
2021-11-17 23:53:43 +05:30
|
|
|
.library-unit__checkbox-container,
|
|
|
|
.library-unit__checkbox-container:hover,
|
|
|
|
.library-unit__checkbox-container:active {
|
2020-09-26 02:48:45 +05:30
|
|
|
align-items: center;
|
|
|
|
background: none;
|
|
|
|
border: none;
|
|
|
|
color: var(--icon-fill-color);
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
margin: 0;
|
2021-11-17 23:53:43 +05:30
|
|
|
padding: 0.5rem;
|
2020-09-26 02:48:45 +05:30
|
|
|
position: absolute;
|
2021-11-17 23:53:43 +05:30
|
|
|
left: 2rem;
|
|
|
|
bottom: 2rem;
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
input {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.library-unit__checkbox {
|
|
|
|
position: absolute;
|
2022-11-01 17:29:58 +01:00
|
|
|
top: 0.125rem;
|
|
|
|
right: 0.125rem;
|
|
|
|
margin: 0;
|
2021-11-17 23:53:43 +05:30
|
|
|
|
|
|
|
.Checkbox-box {
|
2022-11-01 17:29:58 +01:00
|
|
|
margin: 0;
|
|
|
|
width: 1rem;
|
|
|
|
height: 1rem;
|
|
|
|
border-radius: 4px;
|
|
|
|
background-color: var(--color-primary-light);
|
|
|
|
border: 1px solid var(--color-primary);
|
|
|
|
box-shadow: none !important;
|
|
|
|
padding: 2px;
|
2021-11-17 23:53:43 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
&.Checkbox:hover {
|
|
|
|
.Checkbox-box {
|
2022-11-01 17:29:58 +01:00
|
|
|
background-color: var(--color-primary-light);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-checked {
|
|
|
|
.Checkbox-box {
|
|
|
|
background-color: var(--color-primary) !important;
|
|
|
|
|
|
|
|
svg {
|
|
|
|
color: var(--color-primary-light);
|
|
|
|
}
|
2021-11-17 23:53:43 +05:30
|
|
|
}
|
|
|
|
}
|
2020-09-26 02:48:45 +05:30
|
|
|
}
|
2020-07-10 02:20:23 -07:00
|
|
|
|
2020-09-26 02:48:45 +05:30
|
|
|
.library-unit__removeFromLibrary > svg {
|
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
|
|
|
}
|
2020-07-10 02:20:23 -07:00
|
|
|
|
2021-11-17 23:53:43 +05:30
|
|
|
.library-unit__adder {
|
2020-09-26 02:48:45 +05:30
|
|
|
transform: scale(1);
|
2021-11-17 23:53:43 +05:30
|
|
|
animation: library-unit__adder-animation 1s ease-in infinite;
|
2020-07-10 02:20:23 -07:00
|
|
|
|
2020-09-26 02:48:45 +05:30
|
|
|
position: absolute;
|
2022-11-01 17:29:58 +01:00
|
|
|
width: 1.5rem;
|
|
|
|
height: 1.5rem;
|
|
|
|
background-color: var(--color-primary);
|
|
|
|
border-radius: var(--border-radius-md);
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
|
2020-09-26 02:48:45 +05:30
|
|
|
pointer-events: none;
|
2022-11-01 17:29:58 +01:00
|
|
|
|
|
|
|
svg {
|
|
|
|
color: var(--color-primary-light);
|
|
|
|
width: 1rem;
|
|
|
|
height: 1rem;
|
|
|
|
}
|
2020-07-10 02:20:23 -07:00
|
|
|
}
|
2022-11-01 17:29:58 +01:00
|
|
|
|
2021-11-26 12:46:23 +01:00
|
|
|
.library-unit:active .library-unit__adder {
|
|
|
|
animation: none;
|
|
|
|
transform: scale(0.8);
|
2021-11-17 23:53:43 +05:30
|
|
|
}
|
2020-07-10 02:20:23 -07:00
|
|
|
|
2020-09-26 02:48:45 +05:30
|
|
|
.library-unit__active {
|
|
|
|
cursor: pointer;
|
2020-07-10 02:20:23 -07:00
|
|
|
}
|
|
|
|
|
2021-11-17 23:53:43 +05:30
|
|
|
@keyframes library-unit__adder-animation {
|
2020-09-26 02:48:45 +05:30
|
|
|
0% {
|
2021-11-17 23:53:43 +05:30
|
|
|
transform: scale(0.85);
|
2020-09-26 02:48:45 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
50% {
|
|
|
|
transform: scale(1);
|
|
|
|
}
|
|
|
|
|
|
|
|
100% {
|
2021-11-17 23:53:43 +05:30
|
|
|
transform: scale(0.85);
|
2020-09-26 02:48:45 +05:30
|
|
|
}
|
2020-07-10 02:20:23 -07:00
|
|
|
}
|
|
|
|
}
|