Project

General

Profile

1
.demo {
2
	padding:2%;
3
	border-radius:3px;
4
	box-shadow:inset 0px 1px 0px rgba(255,255,255,0.1), 0px 1px 3px rgba(0,0,0,0.1);
5
	border:1px solid #acac9c;
6
	background:#d7d8c8 url('body-bg.png');
7
}
8

    
9
.demo p + p {
10
	margin:30px 0px 0px;
11
}
12

    
13
.demo p {
14
	font-size:14px;
15
}
16

    
17
.demo a {
18
	margin:5px 10px 0px 0px;
19
	float:left;
20
}
21

    
22
	.demo .tooltip {
23
		width:10px;
24
		height:10px;
25
		display:inline-block;
26
		position:relative;
27
		box-shadow:0px 0px 0px 2px #aaaa9e;
28
		border-radius:1000px;
29
		border:1px solid #fdfdfc;
30
		background:#f2f3ee;
31
	}
32

    
33
	.demo .tooltip:hover .txt {
34
		display:inline-block;
35
	}
36

    
37
		.demo .tooltip .txt {
38
			width:200px;
39
			padding:10px 15px;
40
			display:none;
41
			position:absolute;
42
			z-index:1000;
43
			border-radius:3px;
44
			background:rgba(0,0,0,0.75);
45
			font-size:12px;
46
			font-weight:normal;
47
			text-shadow:-1px 1px 0px rgba(0,0,0,0.2);
48
			line-height:150%;
49
			color:#fff;
50
		}
51

    
52
		.demo .tooltip .txt:before {
53
			width:0px;
54
			padding:0px;
55
			position:absolute;
56
			content:'';
57
		}
58

    
59
		/* Top */
60
		.demo .tooltip.top .txt {
61
			bottom:20px;
62
			left:-10px;
63
		}
64

    
65
		.demo .tooltip.top .txt:before {
66
			bottom:-5px;
67
			left:10px;
68
			border-left:5px solid transparent;
69
			border-right:5px solid transparent; 
70
			border-top:5px solid rgba(0,0,0,0.75); 
71
		}
72

    
73
		/* Right */
74
		.demo .tooltip.right .txt {
75
			top:-10px;
76
			left:20px;
77
		}
78

    
79
		.demo .tooltip.right .txt:before {
80
			top:10px;
81
			left:-5px;
82
			border-top:5px solid transparent;
83
			border-bottom:5px solid transparent; 
84
			border-right:5px solid rgba(0,0,0,0.75); 
85
		}
86

    
87
		/* Bottom */
88
		.demo .tooltip.bottom .txt {
89
			top:20px;
90
			left:-10px;
91
		}
92

    
93
		.demo .tooltip.bottom .txt:before {
94
			top:-5px;
95
			left:10px;
96
			bottom:auto;
97
			border-left:5px solid transparent;
98
			border-right:5px solid transparent; 
99
			border-bottom:5px solid rgba(0,0,0,0.75); 
100
		}
101

    
102
		/* Left */
103
		.demo .tooltip.left .txt {
104
			top:-10px;
105
			right:20px;
106
		}
107

    
108
		.demo .tooltip.left .txt:before {
109
			top:10px;
110
			right:-5px;
111
			bottom:auto;
112
			border-top:5px solid transparent;
113
			border-bottom:5px solid transparent; 
114
			border-left:5px solid rgba(0,0,0,0.75); 
115
		}
(6-6/6)