diff options
author | Stephane Desneux <stephane.desneux@iot.bzh> | 2016-05-31 18:16:48 +0200 |
---|---|---|
committer | Stephane Desneux <stephane.desneux@iot.bzh> | 2016-05-31 18:16:48 +0200 |
commit | 5b1e6cc132f44262a873fa8296a2a3e1017b0278 (patch) | |
tree | 43b2cd54e2e300b399ff3f2af4458a2c4ed8a144 /afb-client/bower_components/tether/examples/facebook | |
parent | f7d2f9ac4168ee5064580c666d508667a73cefc0 (diff) | |
parent | 85ace9c1ce9a98e9b8a22f045c7dd752b38d9129 (diff) |
Merge afb-client
Diffstat (limited to 'afb-client/bower_components/tether/examples/facebook')
-rw-r--r-- | afb-client/bower_components/tether/examples/facebook/facebook.css | 86 | ||||
-rw-r--r-- | afb-client/bower_components/tether/examples/facebook/index.html | 209 |
2 files changed, 295 insertions, 0 deletions
diff --git a/afb-client/bower_components/tether/examples/facebook/facebook.css b/afb-client/bower_components/tether/examples/facebook/facebook.css new file mode 100644 index 0000000..eae1508 --- /dev/null +++ b/afb-client/bower_components/tether/examples/facebook/facebook.css @@ -0,0 +1,86 @@ +.drop-target.drop-open { + outline: 2px solid; +} + +.body { + position: relative; + margin-right: 300px; +} + +.page { + max-width: 100%; + width: 1080px; + padding: 0 10px; + box-sizing: border-box; + margin: 0 auto; +} + +.navigation { + background: blue; + color: #fff; + margin-right: 300px; + margin-bottom: 30px; +} + +.navigation .item a { + padding: 30px 20px; + display: inline-block; +} + +.navigation .item a { + color: inherit; +} + +.navigation .drop-target.drop-open { + background: #fff; + color: blue; + outline: none; +} + +.right-sidebar { + position: fixed; + height: 50%; + width: 300px; + background: #eee; + overflow: auto; + right: 0; +} + +.right-sidebar .drop-target.drop-open { + background: blue; + color: #fff; + outline: none; +} + +.right-sidebar .item a { + display: block; + padding: 20px; + margin-bottom: 10px; + background: rgba(0, 0, 0, .1); +} + +.right-sidebar-top { + top: 0; +} + +.right-sidebar-bottom { + top: 50%; + background: #ccc; +} + +.scroll-container { + position: relative; + overflow: auto; + background: #eee; + padding: 20px; + margin-bottom: 20px; + margin-right: 20px; + height: 200px; + width: 200px; +} + +.absolute-container { + position: absolute; + top: 20px; + right: 300px; +} diff --git a/afb-client/bower_components/tether/examples/facebook/index.html b/afb-client/bower_components/tether/examples/facebook/index.html new file mode 100644 index 0000000..d4bcf8e --- /dev/null +++ b/afb-client/bower_components/tether/examples/facebook/index.html @@ -0,0 +1,209 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8"> + <meta http-equiv="X-UA-Compatible" content="chrome=1"> + <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> + <link rel="stylesheet" href="../../css/drop.css" /> + <link rel="stylesheet" href="../../css/drop-theme-default.css" /> + <link rel="stylesheet" href="../../css/drop-theme-arrows.css" /> + <link rel="stylesheet" href="../resources/css/base.css" /> + <link rel="stylesheet" href="facebook.css" /> + </head> + <body> + <div class="navigation"> + <div class="page"> + <span class="item">DROPBOOK</span> + <span class="item"> + <a class="drop-target" data-constrain="false" data-attach="bottom left">DROP</a> + </span> + <span class="item"> + <a class="drop-target" data-constrain="false" data-attach="bottom left">DROP</a> + </span> + <span class="item"> + <a class="drop-target" data-constrain="false" data-attach="bottom left">DROP</a> + </span> + </div> + </div> + <div class="right-sidebar right-sidebar-top"> + <div class="item"> + <a class="drop-target" data-constrain="false" data-class="drop-theme-arrows" data-attach="left top">DROP</a> + </div> + <div class="item"> + <a class="drop-target" data-constrain="false" data-class="drop-theme-arrows" data-attach="left top">DROP</a> + </div> + <div class="item"> + <a class="drop-target" data-constrain="true" data-class="drop-theme-arrows" data-attach="left top">DROP</a> + </div> + <div class="item"> + <a class="drop-target" data-constrain="false" data-class="drop-theme-arrows" data-attach="left top">DROP</a> + </div> + <div class="item"> + <a class="drop-target" data-constrain="false" data-class="drop-theme-arrows" data-attach="left top">DROP</a> + </div> + <div class="item"> + <a class="drop-target" data-constrain="false" data-class="drop-theme-arrows" data-attach="left top">DROP</a> + </div> + <div class="item"> + <a class="drop-target" data-constrain="false" data-class="drop-theme-arrows" data-attach="left top">DROP</a> + </div> + <div class="item"> + <a class="drop-target" data-constrain="false" data-class="drop-theme-arrows" data-attach="left top">DROP</a> + </div> + <div class="item"> + <a class="drop-target" data-constrain="false" data-class="drop-theme-arrows" data-attach="left top">DROP</a> + </div> + <div class="item"> + <a class="drop-target" data-constrain="false" data-class="drop-theme-arrows" data-attach="left top">DROP</a> + </div> + <div class="item"> + <a class="drop-target" data-constrain="false" data-class="drop-theme-arrows" data-attach="left top">DROP</a> + </div> + <div class="item"> + <a class="drop-target" data-constrain="false" data-class="drop-theme-arrows" data-attach="left top">DROP</a> + </div> + <div class="item"> + <a class="drop-target" data-constrain="false" data-class="drop-theme-arrows" data-attach="left top">DROP</a> + </div> + <div class="item"> + <a class="drop-target" data-constrain="false" data-class="drop-theme-arrows" data-attach="left top">DROP</a> + </div> + <div class="item"> + <a class="drop-target" data-constrain="false" data-class="drop-theme-arrows" data-attach="left top">DROP</a> + </div> + <div class="item"> + <a class="drop-target" data-constrain="false" data-class="drop-theme-arrows" data-attach="left top">DROP</a> + </div> + </div> + <div class="right-sidebar right-sidebar-bottom"> + <div class="item"> + <a class="drop-target" data-constrain="false" data-class="drop-theme-arrows" data-attach="left bottom">DROP</a> + </div> + <div class="item"> + <a class="drop-target" data-constrain="false" data-class="drop-theme-arrows" data-attach="left bottom">DROP</a> + </div> + <div class="item"> + <a class="drop-target" data-constrain="true" data-class="drop-theme-arrows" data-attach="left bottom">DROP</a> + </div> + <div class="item"> + <a class="drop-target" data-constrain="false" data-class="drop-theme-arrows" data-attach="left bottom">DROP</a> + </div> + <div class="item"> + <a class="drop-target" data-constrain="false" data-class="drop-theme-arrows" data-attach="left bottom">DROP</a> + </div> + <div class="item"> + <a class="drop-target" data-constrain="false" data-class="drop-theme-arrows" data-attach="left bottom">DROP</a> + </div> + <div class="item"> + <a class="drop-target" data-constrain="false" data-class="drop-theme-arrows" data-attach="left bottom">DROP</a> + </div> + <div class="item"> + <a class="drop-target" data-constrain="false" data-class="drop-theme-arrows" data-attach="left bottom">DROP</a> + </div> + <div class="item"> + <a class="drop-target" data-constrain="false" data-class="drop-theme-arrows" data-attach="left bottom">DROP</a> + </div> + <div class="item"> + <a class="drop-target" data-constrain="false" data-class="drop-theme-arrows" data-attach="left bottom">DROP</a> + </div> + <div class="item"> + <a class="drop-target" data-constrain="false" data-class="drop-theme-arrows" data-attach="left bottom">DROP</a> + </div> + <div class="item"> + <a class="drop-target" data-constrain="false" data-class="drop-theme-arrows" data-attach="left bottom">DROP</a> + </div> + <div class="item"> + <a class="drop-target" data-constrain="false" data-class="drop-theme-arrows" data-attach="left bottom">DROP</a> + </div> + <div class="item"> + <a class="drop-target" data-constrain="false" data-class="drop-theme-arrows" data-attach="left bottom">DROP</a> + </div> + </div> + <div class="body"> + <div class="page"> + Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor<br/> + incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud<br/> + exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.<br/><br/> + + Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor<br/> + incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud<br/> + exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.<br/><br/> + + Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor<br/> + incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud<br/> + exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.<br/><br/> + + Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor<br/> + incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud<br/> + exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.<br/><br/> + + <a class="drop-target" data-constrain="true" data-attach="bottom left">DROP</a><br/><br/> + <div class="scroll-container"> + Lorem ipsum dolor sit amet, consectetur adipisicing elit, + Lorem ipsum dolor sit amet, consectetur adipisicing elit, + Lorem ipsum dolor sit amet, consectetur adipisicing elit, + Lorem ipsum dolor sit amet, consectetur adipisicing elit, + Lorem ipsum dolor sit amet, consectetur adipisicing elit, + Lorem ipsum dolor sit amet, consectetur adipisicing elit, + Lorem ipsum dolor sit amet, consectetur adipisicing elit, + <br/><br/><a class="drop-target" data-constrain="true" data-attach="bottom left">DROP</a><br/><br/> sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.<br/> + Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.<br/> + </div> + Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.<br/><br/> + Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.<br/><br/> + Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.<br/><br/> + Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.<br/><br/> + <div class="scroll-container"> + <br/> + <a class="drop-target" data-constrain="true" data-attach="bottom left">DROP</a><br/> + <br/> + <div style="width: 150%; background: #ccc; height: 1px"></div> + </div> + <div class="scroll-container"> + Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.<br/> + Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.<br/> + Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.<br/> + Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.<br/> + Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.<br/> + Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.<br/> + <br/><br/> + <div style="width: 150%; background: #ccc; height: 1px"> + <div style="margin-left: 100%"> + <a class="drop-target" data-constrain="true" data-attach="bottom left">DROP</a> + </div> + </div> + <br/><br/> + Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.<br/> + </div> + <div class="scroll-container absolute-container"> + Lorem ipsum dolor sit amet, consectetur adipisicing elit, <br/><br/><a class="drop-target" data-constrain="false" data-attach="left top">DROP</a><br/><br/> sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.<br/> + Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.<br/> + </div> + </div> + </div> + + <script src="../resources/js/log.js"></script> + <script src="../resources/js/jquery.js"></script> + <script src="../../utils.js"></script> + <script src="../../tether.js"></script> + <script src="../../drop.js"></script> + <script src="../../constraint.js"></script> + <style> + .drop .drop-content { + min-height: 100px; + min-width: 100px; + } + </style> + <script> + $('.drop-target').each(function(){ + new Drop({ + target: this, + className: $(this).data().class || 'drop-theme-default', + attach: $(this).data().attach, + constrainToScrollParent: $(this).data().constrain, + openOn: 'click' + }); + }); + </script> + </body> +</html> |