forked from mgcrea/angular-strap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopover-viewport.html
More file actions
119 lines (98 loc) · 5.92 KB
/
popover-viewport.html
File metadata and controls
119 lines (98 loc) · 5.92 KB
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
<!doctype html>
<html lang="en" ng-app="mgcrea.ngStrapDocs">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>AngularStrap - AngularJS 1.2+ native directives for Twitter Bootstrap 3.</title>
<meta name="description" content="AngularJS 1.2+ native directives for Twitter Bootstrap 3.">
<!-- Sets initial viewport load and disables zooming -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui">
<!-- Makes your prototype chrome-less once bookmarked to your phone's home screen -->
<meta name="apple-mobile-web-app-capable" content="yes">
<!-- Set a shorter title for iOS6 devices when saved to home screen -->
<meta name="apple-mobile-web-app-title" content="AngularStrap">
<!-- Properties for Google+ snippets -->
<meta property="og:title" content="AngularStrap">
<meta property="og:description" content="AngularJS 1.2+ native directives for Twitter Bootstrap 3.">
<meta property="og:image" content="http://mgcrea.github.io/angular-strap/static/images/snippet-logo.png">
<!--[if lt IE 9]>
<script src="//cdnjs.cloudflare.com/ajax/libs/es5-shim/4.0.3/es5-shim.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.2/html5shiv.min.js"></script>
<![endif]-->
<link rel="author" href="https://plus.google.com/103156582871250188205">
<link rel="icon" href="http://angularjs.org/favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="http://angularjs.org/favicon.ico" type="image/x-icon">
<!-- bower:css -->
<link rel="stylesheet" href="bower_components/angular-motion/dist/angular-motion.css">
<link rel="stylesheet" href="bower_components/bootstrap-additions/dist/bootstrap-additions.css">
<link rel="stylesheet" href="bower_components/font-awesome/css/font-awesome.css">
<link rel="stylesheet" href="bower_components/highlightjs/styles/default.css">
<!-- endinject -->
<link rel="stylesheet" href="bower_components/highlightjs/styles/github.css">
<!-- inject:css -->
<link rel="stylesheet" href="styles/main.css">
<!-- endinject -->
<style>
body {
height: 1200px;
padding-top: 0px;
}
.popover {
min-width: 250px;
max-width: 500px;
}
.popover .popover-content {
min-width: 250px;
max-width: 500px;
min-height: 100px;
text-align: left;
}
.container-viewport {
position: absolute;
top: 100px;
right: 250px;
left: 250px;
height: 300px;
background-color: #eee;
}
.btn-bottom-left {
position: absolute;
bottom: 0;
left: 0;
}
.btn-bottom-right {
position: absolute;
bottom: 0;
right: 0;
}
</style>
</head>
<body>
<button type="button" class="btn btn-default pull-right" bs-popover data-title="This should be shifted to the left" data-placement="bottom" data-trigger="hover">Shift Left</button>
<button type="button" class="btn btn-default" bs-popover data-title="This should be shifted to the right" data-placement="bottom" data-trigger="hover">Shift Right</button>
<button type="button" class="btn btn-default" bs-popover data-title="This should be shifted down" data-placement="right" data-trigger="hover">Shift Down</button>
<button type="button" class="btn btn-default" bs-popover data-title="This should be shifted down" data-placement="right" data-animation="am-flip-x" data-trigger="hover">Shift Down w/ Animation</button>
<button type="button" class="btn btn-default" bs-popover data-title="This should not be shifted down" data-placement="right" data-viewport="null" data-trigger="hover">Don't Shift Down</button>
<button type="button" class="btn btn-default tooltip-right btn-bottom-left" bs-popover data-title="This should be shifted up" data-placement="right" data-trigger="hover">Shift Up</button>
<button type="button" class="btn btn-default tooltip-right btn-bottom-right" bs-popover data-title="This should be shifted left" data-placement="top" data-trigger="hover">Shift Left</button>
<div class="container-viewport">
<button type="button" class="btn btn-default" bs-popover data-title="This should be shifted to the right" data-placement="bottom" data-viewport="'.container-viewport'" data-trigger="hover">Shift Right</button>
<button type="button" class="btn btn-default" bs-popover data-title="This should be shifted down" data-placement="right" data-viewport="{selector: '.container-viewport', padding: 2}" data-trigger="hover">Shift Down</button>
<button type="button" class="btn btn-default" bs-popover data-title="This should be shifted down" data-placement="right" data-viewport="{selector: '.container-viewport', padding: 2}" data-trigger="hover" data-animation="am-slide-top">Shift Down w/ Animation</button>
<button type="button" class="btn btn-default" bs-popover data-title="This should not be shifted down" data-placement="right" data-viewport="null" data-trigger="hover">Don't Shift Down</button>
<button type="button" class="btn btn-default pull-right" bs-popover data-title="This should be shifted to the left" data-placement="bottom" data-viewport="{selector: '.container-viewport', padding: 2}" data-trigger="hover">Shift Left</button>
<button type="button" class="btn btn-default tooltip-viewport-right btn-bottom-left" bs-popover data-title="This should be shifted up" data-placement="right" data-viewport="{selector: '.container-viewport', padding: 2}" data-trigger="hover">Shift Up</button>
<button type="button" class="btn btn-default tooltip-viewport-right btn-bottom-right" bs-popover data-title="This should be shifted left" data-placement="top" data-viewport="{selector: '.container-viewport', padding: 2}" data-trigger="hover">Shift Left</button>
</div>
<!-- bower:js -->
<!-- endinject -->
<!-- source:js -->
<!-- endinject -->
<!-- inject:js -->
<!-- endinject -->
<!-- source-docs:js -->
<!-- endinject -->
<!-- views:js -->
<!-- endinject -->
</body>
</html>