aboutsummaryrefslogtreecommitdiffstats
path: root/core/css/tooltip.scss
blob: 7c6a2f8a580cb4dbd9cb8fe162967528da0e1039 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
/**
 * @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: 'Open Sans', Frutiger, Calibri, 'Myriad Pro', Myriad, sans-serif;
	font-style: normal;
	font-weight: 400;
	letter-spacing: normal;
	line-break: auto;
	line-height: 1.6;
	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: 1;
		filter: alpha(opacity = 100);
	}

	&.top {
		margin-top: -3px;
		padding: 10px 0;
	}
	&.bottom {
		margin-top: 3px;
		padding: 10px 0;
	}

	&.right {
		margin-left: 3px;
		padding: 0 10px;
		.tooltip-arrow {
			top: 50%;
			left: 0;
			margin-top: -10px;
			border-width: 10px 10px 10px 0;
			border-right-color: $color-main-background;
		}
	}
	&.left {
		margin-left: -3px;
		padding: 0 5px;
		.tooltip-arrow {
			top: 50%;
			right: 0;
			margin-top: -10px;
			border-width: 10px 0 10px 10px;
			border-left-color: $color-main-background;
		}
	}

	/* TOP */
	&.top .tooltip-arrow,
	&.top-left .tooltip-arrow,
	&.top-right .tooltip-arrow  {
		bottom: 0;
		border-width: 10px 10px 0;
		border-top-color: $color-main-background;
	}
	&.top .tooltip-arrow {
		left: 50%;
		margin-left: -10px;
	}
	&.top-left .tooltip-arrow {
		right: 10px;
		margin-bottom: -10px;
	}
	&.top-right .tooltip-arrow {
		left: 10px;
		margin-bottom: -10px;
	}

	/* BOTTOM */
	&.bottom .tooltip-arrow,
	&.bottom-left .tooltip-arrow,
	&.bottom-right .tooltip-arrow  {
		top: 0;
		border-width: 0 10px 10px;
		border-bottom-color: $color-main-background;
	}
	&.bottom .tooltip-arrow {
		left: 50%;
		margin-left: -10px;
	}
	&.bottom-left .tooltip-arrow {
		right: 10px;
		margin-top: -10px;
	}
	&.bottom-right .tooltip-arrow {
		left: 10px;
		margin-top: -10px;
	}
}

.tooltip-inner {
	max-width: 350px;
	padding: 5px 8px;
	background-color: $color-main-background;
	color: $color-main-text;
	box-shadow: 0 1px 10px rgba(150, 150, 150, .75);
	text-align: center;
	border-radius: 3px;
}

.tooltip-arrow {
	position: absolute;
	width: 0;
	height: 0;
	border-color: transparent;
	border-style: solid;
}