Component-Builder-fork/media/uikit-v2/css/components/tooltip.almost-flat.css

119 lines
2.3 KiB
CSS
Raw Normal View History

2017-11-12 00:33:10 +00:00
/*! UIkit 2.27.4 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
2016-01-30 20:28:43 +00:00
/* ========================================================================
Component: Tooltip
========================================================================== */
/*
* 1. Hide by default
* 2. Set fixed position
* 3. Set dimensions
* 4. Set style
*/
.uk-tooltip {
/* 1 */
display: none;
/* 2 */
position: absolute;
z-index: 1030;
/* 3 */
box-sizing: border-box;
max-width: 200px;
padding: 5px 8px;
/* 4 */
2017-11-12 00:33:10 +00:00
background: #333;
2016-01-30 20:28:43 +00:00
color: rgba(255, 255, 255, 0.7);
font-size: 12px;
line-height: 18px;
border-radius: 3px;
text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}
/* Triangle
========================================================================== */
/*
* 1. Dashed is less antialised than solid
*/
.uk-tooltip:after {
content: "";
display: block;
position: absolute;
width: 0;
height: 0;
/* 1 */
2017-11-12 00:33:10 +00:00
border: 5px dashed #333;
2016-01-30 20:28:43 +00:00
}
/* Direction modifiers
========================================================================== */
/*
* Top
*/
.uk-tooltip-top:after,
.uk-tooltip-top-left:after,
.uk-tooltip-top-right:after {
bottom: -5px;
border-top-style: solid;
border-bottom: none;
border-left-color: transparent;
border-right-color: transparent;
2017-11-12 00:33:10 +00:00
border-top-color: #333;
2016-01-30 20:28:43 +00:00
}
/*
* Bottom
*/
.uk-tooltip-bottom:after,
.uk-tooltip-bottom-left:after,
.uk-tooltip-bottom-right:after {
top: -5px;
border-bottom-style: solid;
border-top: none;
border-left-color: transparent;
border-right-color: transparent;
2017-11-12 00:33:10 +00:00
border-bottom-color: #333;
2016-01-30 20:28:43 +00:00
}
/*
* Top/Bottom center
*/
.uk-tooltip-top:after,
.uk-tooltip-bottom:after {
left: 50%;
margin-left: -5px;
}
/*
* Top/Bottom left
*/
.uk-tooltip-top-left:after,
.uk-tooltip-bottom-left:after {
left: 10px;
}
/*
* Top/Bottom right
*/
.uk-tooltip-top-right:after,
.uk-tooltip-bottom-right:after {
right: 10px;
}
/*
* Left
*/
.uk-tooltip-left:after {
right: -5px;
top: 50%;
margin-top: -5px;
border-left-style: solid;
border-right: none;
border-top-color: transparent;
border-bottom-color: transparent;
2017-11-12 00:33:10 +00:00
border-left-color: #333;
2016-01-30 20:28:43 +00:00
}
/*
* Right
*/
.uk-tooltip-right:after {
left: -5px;
top: 50%;
margin-top: -5px;
border-right-style: solid;
border-left: none;
border-top-color: transparent;
border-bottom-color: transparent;
2017-11-12 00:33:10 +00:00
border-right-color: #333;
2016-01-30 20:28:43 +00:00
}