excalidraw/src/components/HintViewer.scss
José Quinto ed6fb60337
resize elements from center point (#1225)
* add hint & support multi-line hints

* resize from center point using the new resize maths

* resize with origin element when lifting alt key

* add readonly to elementOriginPosition

* add setResizeWithCenterKeyLifted

* isResizeFromCenter logic

* offsetX and offsetY

* simplify equations

* creating element from center point

* lint

* lint

* lint

* remove revert on key up logic

Co-authored-by: dwelle <luzar.david@gmail.com>
Co-authored-by: daishi <daishi@axlight.com>
2020-04-22 17:57:17 +02:00

25 lines
499 B
SCSS

@import "../css/_variables";
.HintViewer {
color: $oc-gray-6;
font-size: 0.8rem;
left: 50%;
pointer-events: none;
position: absolute;
top: 54px;
transform: translateX(calc(-50% - 16px)); /* 16px is half of lock icon */
white-space: pre;
text-align: center;
@media #{$media-query} {
position: static;
transform: none;
margin-top: 0.5rem;
}
> span {
background-color: transparentize($oc-white, 0.12);
padding: 0.2rem 0.4rem;
border-radius: 3px;
}
}