diff options
Diffstat (limited to 'packages/excalidraw/components/hyperlink/Hyperlink.scss')
| -rw-r--r-- | packages/excalidraw/components/hyperlink/Hyperlink.scss | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/packages/excalidraw/components/hyperlink/Hyperlink.scss b/packages/excalidraw/components/hyperlink/Hyperlink.scss new file mode 100644 index 0000000..6a5db32 --- /dev/null +++ b/packages/excalidraw/components/hyperlink/Hyperlink.scss @@ -0,0 +1,70 @@ +@import "../../css/variables.module.scss"; + +.excalidraw-hyperlinkContainer { + display: flex; + align-items: center; + justify-content: space-between; + position: absolute; + box-shadow: 0px 2px 4px 0 rgb(0 0 0 / 30%); + z-index: var(--zIndex-hyperlinkContainer); + background: var(--island-bg-color); + border-radius: var(--border-radius-md); + box-sizing: border-box; + // to account for LS due to rendering icons after new link created + min-height: 42px; + + &-input, + button { + z-index: 100; + } + + &-input, + &-link { + height: 24px; + padding: 0 8px; + line-height: 24px; + font-size: 0.9rem; + font-weight: 500; + font-family: var(--ui-font); + } + + &-input { + width: 18rem; + border: none; + background-color: transparent; + color: var(--text-primary-color); + + outline: none; + border: none; + box-shadow: none !important; + } + + &-link { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + max-width: 15rem; + } + + button { + color: $oc-blue-6; + background-color: transparent !important; + font-weight: 500; + &.excalidraw-hyperlinkContainer--remove { + color: $oc-red-9; + } + } + + &--remove .ToolIcon__icon svg { + color: $oc-red-6; + } + + .ToolIcon__icon { + width: 2rem; + height: 2rem; + } + + &__buttons { + flex: 0 0 auto; + } +} |
