UNPKG

foundation-sites

Version:

The most advanced responsive front-end framework in the world.

136 lines (120 loc) 7.95 kB
<!doctype html> <!--[if IE 9]><html class="lt-ie10" lang="en" > <![endif]--> <html class="no-js" lang="en" dir="ltr"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> <title>Foundation for Sites Testing</title> <link href="../assets/css/foundation.css" rel="stylesheet" /> </head> <body> <div class="grid-container"> <div class="grid-x grid-padding-x"> <div class="cell"> <h1>Dropdown: Explicit Positioning Content - no offsets</h1> <p>These dropdowns test various positioning and alignments. Valid positions are left/right/top/bottom. Valid alignments are left/right/top/bottom/center. Left align means left sides should line up. Right align means right sides should line up. Center align means centers should line up. </p> <h4>Top and Bottom positioned</h4> <div class="grid-x grid-padding-x"> <div class="cell medium-4"> <p>Bottom Left</p> <button class="button" type="button" data-toggle="example-dropdown-bottom-left">Toggle Dropdown</button> <div class="dropdown-pane" data-position="bottom" data-alignment="left" id="example-dropdown-bottom-left" data-dropdown data-auto-focus="true"> <p>This dropdown has position bottom and alignment left should align with its top left corner at the bottom left of the button</p> </div> </div> <div class="cell medium-4"> <p>Bottom Center</p> <button class="button" type="button" data-toggle="example-dropdown-bottom-center">Toggle Dropdown</button> <div class="dropdown-pane" data-position="bottom" data-alignment="center" id="example-dropdown-bottom-center" data-dropdown data-auto-focus="true"> <p>This dropdown has position bottom and alignment center should align below the button with its center aligned with the center of the button</p> </div> </div> <div class="cell medium-4"> <p>Bottom Right</p> <button class="button" type="button" data-toggle="example-dropdown-bottom-right">Toggle Dropdown</button> <div class="dropdown-pane" data-position="bottom" data-alignment="right" id="example-dropdown-bottom-right" data-dropdown data-auto-focus="true"> <p>This dropdown has position bottom and alignment right should align with its top right corner at the bottom right of the button</p> </div> </div> <div class="cell medium-4"> <p>Top Left</p> <button class="button" type="button" data-toggle="example-dropdown-top-left">Toggle Dropdown</button> <div class="dropdown-pane" data-position="top" data-alignment="left" id="example-dropdown-top-left" data-dropdown data-auto-focus="true"> <p>This dropdown has position top and alignment left should align with its bottom left corner at the top left of the button</p> </div> </div> <div class="cell medium-4"> <p>Top Center</p> <button class="button" type="button" data-toggle="example-dropdown-top-center">Toggle Dropdown</button> <div class="dropdown-pane" data-position="top" data-alignment="center" id="example-dropdown-top-center" data-dropdown data-auto-focus="true"> <p>This dropdown has position top and alignment center should align above with its center aligned with the center of the button</p> </div> </div> <div class="cell medium-4"> <p>Top Right</p> <button class="button" type="button" data-toggle="example-dropdown-top-right">Toggle Dropdown</button> <div class="dropdown-pane" data-position="top" data-alignment="right" id="example-dropdown-top-right" data-dropdown data-auto-focus="true"> <p>This dropdown has position top and alignment right should align with its bottom right corner at the top right of the button</p> </div> </div> </div> <h4>Left and Right Positioned</h4> <div class="grid-x grid-padding-x"> <div class="cell medium-4"> <p>Right Top</p> <button class="button" type="button" data-toggle="example-dropdown-right-top">Toggle Dropdown</button> <div class="dropdown-pane" data-position="right" data-alignment="top" id="example-dropdown-right-top" data-dropdown data-auto-focus="true"> <p>This dropdown has position right and alignment top should align with its top left corner at the top right of the button</p> </div> </div> <div class="cell medium-4"> <p>Left Top</p> <button class="button" type="button" data-toggle="example-dropdown-left-top">Toggle Dropdown</button> <div class="dropdown-pane" data-position="left" data-alignment="top" id="example-dropdown-left-top" data-dropdown data-auto-focus="true"> <p>This dropdown has position left and alignment top should align with its top right corner at the top left of the button</p> </div> </div> <div class="cell medium-4"> <p>Right Center</p> <button class="button" type="button" data-toggle="example-dropdown-right-center">Toggle Dropdown</button> <div class="dropdown-pane" data-position="right" data-alignment="center" id="example-dropdown-right-center" data-dropdown data-auto-focus="true"> <p>This dropdown has position right and alignment center should align to the right of the button with the center of the dropdown vertically aligned with the center of the button</p> </div> </div> <div class="cell medium-4"> <p>Left Center</p> <button class="button" type="button" data-toggle="example-dropdown-left-center">Toggle Dropdown</button> <div class="dropdown-pane" data-position="left" data-alignment="center" id="example-dropdown-left-center" data-dropdown data-auto-focus="true"> <p>This dropdown has position left and alignment center should align to the left of the button with the center of the dropdown vertically aligned with the center of the button</p> </div> </div> <div class="cell medium-4"> <p>Right Bottom</p> <button class="button" type="button" data-toggle="example-dropdown-right-bottom">Toggle Dropdown</button> <div class="dropdown-pane" data-position="right" data-alignment="bottom" id="example-dropdown-right-bottom" data-dropdown data-auto-focus="true"> <p>This dropdown has position right and alignment bottom should align with its bottom left corner at the bottom right of the button</p> </div> </div> <div class="cell medium-4"> <p>Left Bottom</p> <button class="button" type="button" data-toggle="example-dropdown-left-bottom">Toggle Dropdown</button> <div class="dropdown-pane" data-position="left" data-alignment="bottom" id="example-dropdown-left-bottom" data-dropdown data-auto-focus="true"> <p>This dropdown has position left and alignment bottom should align with its bottom right corner at the bottom left of the button</p> </div> </div> </div> </div> </div> </div> <script src="../assets/js/vendor.js"></script> <script src="../assets/js/foundation.js"></script> <script> $(document).foundation(); </script> </body> </html>