Form

“Form follows function – that has been misunderstood. Form and function should be one, joined in a sacred union.”

Frank Lloyd Wright, 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 &lt;h1&gt;</h1>
<h2>Heading &lt;h2&gt;</h2>
<h3>Heading &lt;h3&gt;</h3>
<h4>Heading &lt;h4&gt;</h4>
<h5>Heading &lt;h5&gt;</h5>
<h6>Heading &lt;h6&gt;</h6>
Blockquote Example

It strikes me as obvious now that “responsive web” should actually be called “amphibious web”. It works here, it works there.
Where else would you like it to work?

Sean Stephens, CEO, Treefrog Interactive Inc.
<blockquote class="vcard row mb">
	<p>It strikes me as obvious now that &ldquo;responsive web&rdquo; should actually be called &ldquo;amphibious web&rdquo;. 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
Treefrog Interactive Inc

Clive Moore

My Favourite Place
Whotown, R0F LMA, Canada

(905) 836 4442

<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
Classes
  • Disc Bullets
    • Circle Bullets
      • Square Bullets
  • Image Bullets
    • Image Bullets
  1. Ordered Lists
    1. Including Some
      1. Deeply Nesting
        1. <ol> Styles
    2. Including
      1. Deeply Nesting
      2. Deeply Nesting
      3. Deeply Nesting
  2. Default Bullets
    1. Including Some
      1. Deeply Nesting
        1. <ol> Styles
Classes
  1. Upper Roman
    1. Roman
      1. Upper Latin
        1. Latin
<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>
	&lt;a.mphibio.us devices&gt;<br>
	<b>b</b> : design executed by the coordinated action of HTML5, CSS3, and JavaScript organized for rapid development &lt;<abbr title="Rapid Development Tool Kit">RDK</abbr>&gt;;<br>
	also : architected to optimize the inherent strengths of &lt;casscading style sheets&gt;</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="&#128269;" />
	</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

This is help text under the form field.

Wrap the select element in a div with the class styled_select for more control over presentation.

<div class="styled_select">
  <select id="gender">
    <option>Male</option>
    <option>Female</option>
    <option>Cylon</option>
  </select>
</div>

Custom radio and checkboxes are also a snap by adding the class custom to the radio or checkbox element and including an empty span right after the input.

<label><input type="radio" name="notifications" class="custom"><span></span>Send me email</label>
<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.

This table has the class "amp" so inehrits certain properties from the base.
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
This table has the classes amp and stripped so inehrits both base and stripped styles.
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