Form
“Form follows function – that has been misunderstood. Form and function should be one, joined in a sacred union.”
, Architect, circa. 1906
Typography
The typography of A.mphibio.us is designed to create a strong visual hierarchy based on the golden ratio with basic styles, with h6, h3, and h1 as the proportional steps. The primary font is Lucida Grande, but the font stack can be easily changed with just a couple adjustments. Regular paragraphs are set at the equilvalent of 16px base with 22px line height.
Margins and line heights are set relative to the base for the most adaptive/scalable user experience indepentant of what device you are using
Heading <h1>
Heading <h2>
Heading <h3>
Heading <h4>
Heading <h5>
Heading <h6>
<h1>Heading <h1></h1> <h2>Heading <h2></h2> <h3>Heading <h3></h3> <h4>Heading <h4></h4> <h5>Heading <h5></h5> <h6>Heading <h6></h6>
Blockquote Example
It strikes me as obvious now that “responsive web” should actually be called “amphibious web”. It works here, it works there.
, CEO, Treefrog Interactive Inc.
Where else would you like it to work?
<blockquote class="vcard row mb"> <p>It strikes me as obvious now that “responsive web” should actually be called “amphibious web”. It works here, it works there.<br> Where else would you like it to work?</p> <cite class="r"><span class="author fn">Sean Stephens</span>, CEO, <span class="org">Treefrog Interactive Inc.</span></cite> </blockquote class="
Microformats hCard Example
<div class="vcard row"> <h6 class="org"><a class="url" href="#">Treefrog Interactive Inc</a><h6> <p class="n"><a class="url nickname" href="https://twitter.com/cliveMoore"><span class="given-name">Clive</span> <span>Moore</span></a><p> <p class="adr"> <span class="street-address">My Favourite Place</span><br> <span class="region">Whotown</span>, <span class="postal-code">R0F LMA</span>, <span class="country-name">Canada</span> </p> <p class="tel"><a href="tel:9058364442">(905) 836 4442</a></p> </div>
Standard Lists
- Unordered Lists
- Including Some
- Nesting Styles
- Including Some
- Nesting Styles
- Nesting Styles
- Including Some
Classes
- Disc Bullets
- Circle Bullets
- Square Bullets
- Circle Bullets
- Image Bullets
- Image Bullets
- Ordered Lists
- Including Some
- Deeply Nesting
- <ol> Styles
- Deeply Nesting
- Including
- Deeply Nesting
- Deeply Nesting
- Deeply Nesting
- Including Some
- Default Bullets
- Including Some
- Deeply Nesting
- <ol> Styles
- Deeply Nesting
- Including Some
Classes
- Upper Roman
- Roman
- Upper Latin
- Latin
- Upper Latin
- Roman
<ul class="disc"> <li>Disc Bullets <ul class="circle"> <li>Circle Bullets <ul class="square"> <li>Square Bullets</li> </ul></li> </ul></li> </ul> <ul class="img"> <li>Image Bullets <ul> <li>Image Bullets</li> </ul></li> </ul>
<ol class="upper_roman"> <li>Upper Roman <ol class="roman"> <li>Roman <ol class="upper_latin"> <li>Upper Latin <ol class="latin"> <li>Latin</li> </ol></li> </ol></li> </ol></li> </ol>
Definition Lists
- am·phib·i·ous noun \am-ˈfi-bē-əs\
- : simply the most elegant css framework
- a : relating to or adapted for both desktop and mobile
<a.mphibio.us devices>
b : design executed by the coordinated action of HTML5, CSS3, and JavaScript organized for rapid development <RDK>;
also : architected to optimize the inherent strenghts of <casscading style sheets>
<dl> <dt>am·phib·i·ous <sub class="meta">noun <i>\am-ˈfi-bē-əs\</i></sub></dt> <dd>: simply the most elegant css framework</dd> <dd><b>a</b> : relating to or adapted for both desktop and mobile<br> <a.mphibio.us devices><br> <b>b</b> : design executed by the coordinated action of HTML5, CSS3, and JavaScript organized for rapid development <<abbr title="Rapid Development Tool Kit">RDK</abbr>>;<br> also : architected to optimize the inherent strengths of <casscading style sheets></dd> </dl>
Buttons
A.mphibio.us treats buttons as they are meant to be treated, giving them the right amount of weight and a powerful hover effect to make them irresistibly clickable. Calls to action have never been more apparent. Did I mention easy to use, just add a button or submit or even add the class button to a link
Click Me For Action<a class="button modal_opener" amp-target="amp_overlay">Click Me For Action</a>
Forms
Web developers I often fear the form itself. They are usually a pain in the neck to code. But with A.mphibio.us’ versatile naming convention basic sytatic structure and time-saving style attributes, forms are a cinch to program and implement.
Standard Fields
<form> <fieldset> <label class="above" for="regularInput">Regular Input</label> <input type="text" id="regularInput" placeholder="Sample Placeholder Text" /> </fieldset> <fieldset> <label class="above" for="regularInputError">Regular Input with error class</label> <input type="text" id="regularInputError" class="error" placeholder="Sample of an error field" /> </fieldset> <fieldset> <label class="above" for="regularTextarea">Regular Textarea</label> <textarea id="regularTextarea"></textarea> </fieldset> <fieldset class="radio"> <label for="notifications">Notifications</label> <ul> <li><label><input type="radio" name="notifications" /> Send me email</label></li> <li><label><input type="radio" name="notifications" /> Don't send me email</label></li> <li><label><input type="radio" name="notifications" /> Send me flowers</label></li> </ul> </fieldset> <button type="submit">Submit Form</button> </form>
Search Field
<form action="/" class="search"> <fieldset> <input type="text" placeholder="Search" /> <input type="submit" class="icon" value="🔍" /> </fieldset> </form>
Advanced Search Field
<div id="search_form" class="inline search"> <form class="search_form" action="/search-results"> <fieldset> <input class="search_text" type="text" name="q" placeholder="Search"> <button type="reset" class="search_cancel search_toggle"> <span class="icon-cross-round"></span> </button> <button type="submit" class="search_submit"> <span class="icon-search"></span> </button> </fieldset> </form> </div>
Multi Form
Simply by adding the class(es) multi and beside to the form itself everything is new again
<form class="multi beside"> <fieldset> <label for="name">Name</label> <input type="text" id="name" class="form-text" /> <p class="form-help">This is help text under the form field.</p> </fieldset> <fieldset> <label for="email">Email</label> <input type="email" id="email" class="form-text" /> </fieldset> <fieldset> <label for="gender">Gender</label> <div class="styled_select"> <select id="gender"> <option>Male</option> <option>Female</option> <option>Cylon</option> </select> </div> </fieldset> <fieldset class="radio"> <label for="notifications">Notifications</label> <ul> <li><label><input type="radio" name="notifications" class="custom"><span></span>Send me email</label></li> <li><label><input type="radio" name="notifications" class="custom"><span></span>Don't send me email</label></li> <li><label><input type="radio" name="notifications" class="custom"><span></span>Send me flowers</label></li> </ul> </fieldset> <fieldset> <label for="url">URL</label> <input type="url" id="url" class="form-text" placeholder="http://yourdomain.com" /> </fieldset> <fieldset> <label for="bio">Bio</label> <textarea id="bio"></textarea> </fieldset> <fieldset class="check"> <label><input type="checkbox" class="custom"><span></span>I accept the terms of service.</label> </fieldset> <fieldset class="form-actions"> <input type="submit" value="Submit" /> </fieldset> </form>
Append and Prepend Icons
Like fancy form layouts we do to, that's we've added the prepend and append icon classes to form elements.
<div class="col eight first"> <form> <fieldset> <label for="user">Username</label> <input type="text" id="user" class="prepend_icon"> <label for="user" class="prepend_to"><span class="icon-user"></span></label> </fieldset> <fieldset> <label for="password">Password</label> <input type="password" id="password" class="prepend_icon"> <label for="password" class="prepend_to"><span class="icon-lock"></span></label> </fieldset> </form> </div> <div class="col eight first"> <form> <fieldset> <label for="user2">Username</label> <input type="text" id="user2" class="append_icon"> <label for="user2" class="append_to"><span class="icon-user"></span></label> </fieldset> <fieldset> <label for="password2">Password</label> <input type="password" id="password2" class="append_icon"> <label for="password2" class="append_to"><span class="icon-lock"></span></label> </fieldset> </form> </div>
<form class="multi beside"> <fieldset> <label for="user">Username</label> <input type="text" id="user" class="prepend_icon"> <label for="user" class="prepend_to"><span class="icon-user"></span></label> </fieldset> <fieldset> <label for="password">Password</label> <input type="password" id="password" class="prepend_icon"> <label for="password" class="prepend_to"><span class="icon-lock"></span></label> </fieldset> </form>
<form class="multi beside"> <fieldset> <label for="user">Username</label> <input type="text" id="user" class="append_icon"> <label for="user" class="append_to"><span class="icon-user"></span></label> </fieldset> <fieldset> <label for="password">Password</label> <input type="password" id="password" class="append_icon"> <label for="password" class="append_to"><span class="icon-lock"></span></label> </fieldset> </form>
<form class="multi beside"> <fieldset class="date_picker_set"> <fieldset class="form_group"> <label for="startdateB">From</label> <input type="text" id="startdateB" class="datepicker prepend_icon"> <label for="startdateB" class="prepend_to"><span class="icon-calendar"></span></label> </fieldset> <fieldset class="form_group"> <label for="enddateB">To</label> <input type="text" id="enddateB" class="datepicker prepend_icon"> <label for="enddateB" class="prepend_to"><span class="icon-calendar"></span></label> </fieldset> </fieldset> </form>
<form class="multi beside"> <fieldset class="date_picker_set"> <fieldset class="form_group"> <label for="startdateB">From</label> <input type="text" id="startdateB" class="datepicker append_icon"> <label for="startdateB" class="append_to"><span class="icon-calendar"></span></label> </fieldset> <fieldset class="form_group"> <label for="enddateB">To</label> <input type="text" id="enddateB" class="datepicker append_icon"> <label for="enddateB" class="append_to"><span class="icon-calendar"></span></label> </fieldset> </fieldset> </form>
Table Styles
We hate tables for layout but they do come in handy when building and application. A.mphibio.us has some default styles to help get you started but they do require you to add the class amp to the table. We do this on purpose to avoid conflicting table styles with third party plugins like datepickers and calendars you may wish to use in your next project.
TH 1 | TH Two | TH Three |
---|---|---|
Col 1 | Col 2 | Col 3 |
Col 1 | Col 2 | Col 3 |
Col 1 | Col 2 | Col 3 |
Col 1 | Col 2 | Col 3 |
Col 1 | Col 2 | Col 3 |
TF 1 | TF 2 | TF 3 |
TH 1 | TH Two | TH Three |
---|---|---|
Col 1 | Col 2 | Col 3 |
Col 1 | Col 2 | Col 3 |
Col 1 | Col 2 | Col 3 |
Col 1 | Col 2 | Col 3 |
Col 1 | Col 2 | Col 3 |
TF 1 | TF 2 | TF 3 |