server/core/css/tooltip.scss
John Molakvoæ (skjnldsv) bf6505f30c
Everyone gets a copyright!
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2017-01-25 14:13:28 +01:00

130 lines
2.5 KiB
SCSS

/**
* @copyright Copyright (c) 2016, John Molakvoæ <skjnldsv@protonmail.com>
* @copyright Copyright (c) 2016, Robin Appelman <robin@icewind.nl>
* @copyright Copyright (c) 2016, Jan-Christoph Borchardt <hey@jancborchardt.net>
* @copyright Copyright (c) 2016, Erik Pellikka <erik@pellikka.org>
* @copyright Copyright (c) 2015, Vincent Petry <pvince81@owncloud.com>
*
* Bootstrap v3.3.5 (http://getbootstrap.com)
* Copyright 2011-2015 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
.tooltip {
position: absolute;
display: block;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-style: normal;
font-weight: normal;
letter-spacing: normal;
line-break: auto;
line-height: 1.42857143;
text-align: left;
text-align: start;
text-decoration: none;
text-shadow: none;
text-transform: none;
white-space: normal;
word-break: normal;
word-spacing: normal;
word-wrap: normal;
font-size: 12px;
opacity: 0;
z-index: 100000;
filter: alpha(opacity = 0);
&.in {
opacity: 0.9;
filter: alpha(opacity = 90);
}
&.top {
margin-top: -3px;
padding: 5px 0;
}
&.bottom {
margin-top: 3px;
padding: 5px 0;
}
&.right {
margin-left: 3px;
padding: 0 5px;
.tooltip-arrow {
top: 50%;
left: 0;
margin-top: -5px;
border-width: 5px 5px 5px 0;
border-right-color: #000000;
}
}
&.left {
margin-left: -3px;
padding: 0 5px;
.tooltip-arrow {
top: 50%;
right: 0;
margin-top: -5px;
border-width: 5px 0 5px 5px;
border-left-color: #000000;
}
}
/* TOP */
&.top .tooltip-arrow,
&.top-left .tooltip-arrow,
&.top-right .tooltip-arrow {
bottom: 0;
border-width: 5px 5px 0;
border-top-color: #000000;
}
&.top .tooltip-arrow {
left: 50%;
margin-left: -5px;
}
&.top-left .tooltip-arrow {
right: 5px;
margin-bottom: -5px;
}
&.top-right .tooltip-arrow {
left: 5px;
margin-bottom: -5px;
}
/* BOTTOM */
&.bottom .tooltip-arrow,
&.bottom-left .tooltip-arrow,
&.bottom-right .tooltip-arrow {
top: 0;
border-width: 0 5px 5px;
border-bottom-color: #000000;
}
&.bottom .tooltip-arrow {
left: 50%;
margin-left: -5px;
}
&.bottom-left .tooltip-arrow {
right: 5px;
margin-top: -5px;
}
&.bottom-right .tooltip-arrow {
left: 5px;
margin-top: -5px;
}
}
.tooltip-inner {
max-width: 350px;
padding: 3px 8px;
color: #ffffff;
text-align: center;
background-color: #000000;
border-radius: 4px;
}
.tooltip-arrow {
position: absolute;
width: 0;
height: 0;
border-color: transparent;
border-style: solid;
}