From 40f79af49dce0b53f7f04e24c3fe9902cbac5f84 Mon Sep 17 00:00:00 2001 From: Pablo Vazquez Date: Tue, 28 Aug 2018 15:54:14 +0200 Subject: [PATCH] Tooltips: Cleanup --- src/styles/_config.sass | 7 ++++++- src/styles/_utils.sass | 3 +++ src/styles/components/_tooltip.sass | 17 +---------------- 3 files changed, 10 insertions(+), 17 deletions(-) diff --git a/src/styles/_config.sass b/src/styles/_config.sass index 2cea30a5..cf088754 100644 --- a/src/styles/_config.sass +++ b/src/styles/_config.sass @@ -104,7 +104,6 @@ $project-sidebar-width: 50px !default $project_header-height: 50px !default $project_footer-height: 30px !default -$navbar-height: 42px !default $navbar-backdrop-height: 600px !default $node-type-asset_image: #e87d86 !default @@ -125,3 +124,9 @@ $z-index-base: 13 !default @media (min-width: $screen-lg-min) width: 1270px + + +// Tooltips. +$tooltip-font-size: 0.83rem +$tooltip-max-width: auto +$tooltip-opacity: 1 diff --git a/src/styles/_utils.sass b/src/styles/_utils.sass index 1f06804c..f68216a0 100644 --- a/src/styles/_utils.sass +++ b/src/styles/_utils.sass @@ -660,3 +660,6 @@ .cursor-pointer cursor: pointer + +.user-select-none + user-select: none diff --git a/src/styles/components/_tooltip.sass b/src/styles/components/_tooltip.sass index 3a317919..8a501463 100644 --- a/src/styles/components/_tooltip.sass +++ b/src/styles/components/_tooltip.sass @@ -1,20 +1,5 @@ .tooltip - transition: opacity 50ms ease-in-out - &.in - opacity: 1 + transition: none .tooltip-inner - max-width: auto white-space: nowrap - background-color: $color-background-nav-light - color: $color-text-light-primary - border-radius: 3px - - &.top .tooltip-arrow - border-top-color: $color-background-nav-light - &.bottom .tooltip-arrow - border-bottom-color: $color-background-nav-light - &.left .tooltip-arrow - border-left-color: $color-background-nav-light - &.right .tooltip-arrow - border-right-color: $color-background-nav-light