/// @type Number
$topbar-title-spacing: 1rem !default;
-/// Width of `<input>` elements inside the top bar.
+/// Maximum width of `<input>` elements inside the top bar.
/// @type Number
$topbar-input-width: 200px !default;
// Restrain width of inputs by default to make them easier to arrange
input {
- width: $topbar-input-width;
+ max-width: $topbar-input-width;
margin-#{$global-right}: 1rem;
}
--- /dev/null
+<!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">
+ <title>Foundation for Sites Testing</title>
+ <link href="../assets/css/foundation.css" rel="stylesheet" />
+ </head>
+ <body>
+ <div class="row column">
+ <h1>Dropdown: Inside Top Bar</h1>
+
+ <p>Text fields inside of a top bar should not be super long.</p>
+
+ <div class="top-bar">
+ <div class="top-bar-left">
+ <ul class="dropdown menu" data-dropdown-menu>
+ <li class="menu-text">Site Title</li>
+ </ul>
+ </div>
+ <div class="top-bar-right">
+ <ul class="menu">
+ <li>
+ <button class="button" type="button" data-toggle="example-dropdown">Toggle Dropdown</button>
+ <div class="dropdown-pane" id="example-dropdown" data-dropdown data-auto-focus="true">
+ Example form in a dropdown.
+ <form>
+ <div class="row">
+ <div class="medium-6 columns">
+ <label>Name
+ <input type="text" placeholder="Kirk, James T.">
+ </label>
+ </div>
+ <div class="medium-6 columns">
+ <label>Rank
+ <input type="text" placeholder="Captain">
+ </label>
+ </div>
+ </div>
+ </form>
+ </div>
+ </li>
+ </ul>
+ </div>
+ </div>
+ </div>
+
+ <script src="../assets/js/vendor.js"></script>
+ <script src="../assets/js/foundation.js"></script>
+ <script>
+ $(document).foundation();
+ </script>
+ </body>
+</html>