From ef74c31a8a46f33b4a8c6f24c8f454057ac7a1a7 Mon Sep 17 00:00:00 2001 From: Ben Ogle Date: Fri, 22 Nov 2013 15:33:45 -0800 Subject: [PATCH] Add tooltip styles --- index.less | 1 + stylesheets/tooltips.less | 50 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 stylesheets/tooltips.less diff --git a/index.less b/index.less index a496028..1026805 100644 --- a/index.less +++ b/index.less @@ -10,5 +10,6 @@ @import 'stylesheets/lists'; @import 'stylesheets/editor'; @import 'stylesheets/tabs'; +@import 'stylesheets/tooltips'; @import 'stylesheets/overlays'; @import 'stylesheets/dropdowns'; diff --git a/stylesheets/tooltips.less b/stylesheets/tooltips.less new file mode 100644 index 0000000..df87172 --- /dev/null +++ b/stylesheets/tooltips.less @@ -0,0 +1,50 @@ +@import "ui-variables"; + +.tooltip { + @tip-background-color: #fff; + @tip-text-color: #333; + white-space: nowrap; + + .keystroke { + font-family: Helvetica, Arial, sans-serif; + font-size: 13px; + color: #777; + padding-left: 2px; + } + + &.in { opacity: 1; } + + .tooltip-inner { + line-height: 19px; + border-radius: @component-border-radius; + background-color: @tip-background-color; + color: @tip-text-color; + white-space: nowrap; + max-width: none; + } + + &.top .tooltip-arrow { + border-top-color: @tip-background-color; + } + &.top-left .tooltip-arrow { + border-top-color: @tip-background-color; + } + &.top-right .tooltip-arrow { + border-top-color: @tip-background-color; + } + &.right .tooltip-arrow { + border-right-color: @tip-background-color; + } + &.left .tooltip-arrow { + border-left-color: @tip-background-color; + } + &.bottom .tooltip-arrow { + border-bottom-color: @tip-background-color; + } + &.bottom-left .tooltip-arrow { + border-bottom-color: @tip-background-color; + } + &.bottom-right .tooltip-arrow { + border-bottom-color: @tip-background-color; + } +}