Merge pull request #151 from brianhall/tooltip

Update tooltip according to UX review.
master
Addy Osmani 2015-04-09 08:47:14 +01:00
commit 8b96d4c23a
2 changed files with 4 additions and 4 deletions

View File

@ -202,7 +202,7 @@ $default-dropdown-bg-color: unquote("rgb(#{$palette-white-100})") !default;
/* ========== Tooltips ========== */ /* ========== Tooltips ========== */
$tooltip-text-color: unquote("rgb(#{$palette-white-100})") !default; $tooltip-text-color: unquote("rgb(#{$palette-white-100})") !default;
$tooltip-background-color: unquote("rgb(#{$palette-grey-600})") !default; $tooltip-background-color: unquote("rgba(#{$palette-black-100}, .9)") !default;
/* ========== Footer ========== */ /* ========== Footer ========== */

View File

@ -6,13 +6,13 @@
transform: scale(0); transform: scale(0);
transform-origin: top center; transform-origin: top center;
background: $tooltip-background-color; background: $tooltip-background-color;
border-radius: 5px; border-radius: 2px;
color: $tooltip-text-color; color: $tooltip-text-color;
display: none; display: none;
font-size: 10px; font-size: 10px;
line-height: 14px; line-height: 14px;
max-width: 170px; max-width: 170px;
padding: 5px 8px; padding: 4px 8px;
position: absolute; position: absolute;
text-align: center; text-align: center;
} }
@ -24,7 +24,7 @@
.wsk-tooltip--large { .wsk-tooltip--large {
line-height: 14px; line-height: 14px;
font-size: 14px; font-size: 14px;
padding: 16px; padding: 15px 16px;
} }
@-webkit-keyframes pulse { @-webkit-keyframes pulse {