Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <svg style="position:absolute;left:-9999px;top:-9999px;">
    <symbol viewBox="0 0 12 12" id="svg-status_error">
        <title>icon</title>
        <path d="M8.5,0h-5L0,3.5v5L3.5,12h5L12,8.5v-5ZM5,2H7V7H5V2Zm1,8A1.3,1.3,0,1,1,7.3,8.8,1.2,1.2,0,0,1,6,10Z"></path>
    </symbol>
    <symbol viewBox="0 0 12 12" id="svg-status_ok">
        <title>icon</title>
        <path d="M6,0a6,6,0,1,0,6,6A6,6,0,0,0,6,0Zm4,4L5,9,2,6V5H3L5,7,9,3h1V4Z"></path>
    </symbol>
    <symbol viewBox="0 0 12 12" id="svg-status_unknown">
        <title>icon</title>
        <path d="M6,0a6,6,0,1,0,6,6A6,6,0,0,0,6,0ZM9,9H8L6,7,4,9H3V8L5,6,3,4V3H4L6,5,8,3H9V4L7,6,9,8V9Z"></path>
    </symbol>
    <symbol viewBox="0 0 12 12" id="svg-status_warning">
        <title>icon</title>
        <path d="M12,8.3L7.5,0.7H4.5L0,8.3,1.6,11h8.8ZM5,2H7V7H5V2Zm1,8A1.3,1.3,0,1,1,7.3,8.8,1.2,1.2,0,0,1,6,10Z"></path>
    </symbol>
</svg>

<form id="" class="contactForm contactForm--long" autocomplete accept-charset="UTF-8" action="" enctype="multipart/form-data"
    method="POST">

    <div class="contactForm__set contactForm__set--text">
        <input class="contactForm__textInput contactForm__field" type="text" name="firstname" autocomplete="given-name" placeholder="John"
            required/>
        <label class="contactForm__label contactForm__label--text" for="firstname" tabindex="-1">
            <div class="statusIconSet">
                <svg class="statusIcon statusIcon--error" focusable="false">
                    <use xlink:href="#svg-status_error" /> </svg>
                <svg class="statusIcon statusIcon--ok" focusable="false">
                    <use xlink:href="#svg-status_ok" /> </svg>
                <svg class="statusIcon statusIcon--unknown" focusable="false">
                    <use xlink:href="#svg-status_unknown" /> </svg>
                <svg class="statusIcon statusIcon--warning" focusable="false">
                    <use xlink:href="#svg-status_warning" /> </svg>
            </div>First Name</label>
    </div>

    <div class="contactForm__set contactForm__set--text">
        <input class="contactForm__textInput contactForm__field" type="text" name="lastname" autocomplete="family-name" placeholder="Smith"
            required/>
        <label class="contactForm__label contactForm__label--text" for="lastname" tabindex="-1">
            <div class="statusIconSet">
                <svg class="statusIcon statusIcon--error" focusable="false">
                    <use xlink:href="#svg-status_error" /> </svg>
                <svg class="statusIcon statusIcon--ok" focusable="false">
                    <use xlink:href="#svg-status_ok" /> </svg>
                <svg class="statusIcon statusIcon--unknown" focusable="false">
                    <use xlink:href="#svg-status_unknown" /> </svg>
                <svg class="statusIcon statusIcon--warning" focusable="false">
                    <use xlink:href="#svg-status_warning" /> </svg>
            </div>Last Name</label>
    </div>

    <div class="contactForm__set contactForm__set--text">
        <input class="contactForm__textInput contactForm__field" type="email" name="email" autocomplete="email" placeholder="j.smith@companyand.co"
            autocapitalize="off" autocorrect="off" required/>
        <label class="contactForm__label contactForm__label--text" for="email" tabindex="-1">
            <div class="statusIconSet">
                <svg class="statusIcon statusIcon--error" focusable="false">
                    <use xlink:href="#svg-status_error" /> </svg>
                <svg class="statusIcon statusIcon--ok" focusable="false">
                    <use xlink:href="#svg-status_ok" /> </svg>
                <svg class="statusIcon statusIcon--unknown" focusable="false">
                    <use xlink:href="#svg-status_unknown" /> </svg>
                <svg class="statusIcon statusIcon--warning" focusable="false">
                    <use xlink:href="#svg-status_warning" /> </svg>
            </div>Email</label>
    </div>

    <div class="contactForm__set contactForm__set--text">
        <input class="contactForm__textInput contactForm__field" type="tel" name="phone" autocomplete="tel" placeholder="XXX.123.4567"
            autocorrect="off" required/>
        <label class="contactForm__label contactForm__label--text" for="phone" tabindex="-1">
            <div class="statusIconSet">
                <svg class="statusIcon statusIcon--error" focusable="false">
                    <use xlink:href="#svg-status_error" /> </svg>
                <svg class="statusIcon statusIcon--ok" focusable="false">
                    <use xlink:href="#svg-status_ok" /> </svg>
                <svg class="statusIcon statusIcon--unknown" focusable="false">
                    <use xlink:href="#svg-status_unknown" /> </svg>
                <svg class="statusIcon statusIcon--warning" focusable="false">
                    <use xlink:href="#svg-status_warning" /> </svg>
            </div>Phone</label>
    </div>

    <div class="contactForm__set contactForm__set--text">
        <input class="contactForm__textInput contactForm__field" type="text" name="company" autocomplete="organization" placeholder="Company &amp; Co."
            autocorrect="off" required/>
        <label class="contactForm__label contactForm__label--text" for="company" tabindex="-1">
            <div class="statusIconSet">
                <svg class="statusIcon statusIcon--error" focusable="false">
                    <use xlink:href="#svg-status_error" /> </svg>
                <svg class="statusIcon statusIcon--ok" focusable="false">
                    <use xlink:href="#svg-status_ok" /> </svg>
                <svg class="statusIcon statusIcon--unknown" focusable="false">
                    <use xlink:href="#svg-status_unknown" /> </svg>
                <svg class="statusIcon statusIcon--warning" focusable="false">
                    <use xlink:href="#svg-status_warning" /> </svg>
            </div>Company Name</label>
    </div>

    <div class="contactForm__set contactForm__set--text">
        <input class="contactForm__textInput contactForm__field" type="text" name="jobtitle" autocomplete="organization-title" placeholder="Manager"
            autocorrect="off" required/>
        <label class="contactForm__label contactForm__label--text" for="jobtitle" tabindex="-1">
            <div class="statusIconSet">
                <svg class="statusIcon statusIcon--error" focusable="false">
                    <use xlink:href="#svg-status_error" /> </svg>
                <svg class="statusIcon statusIcon--ok" focusable="false">
                    <use xlink:href="#svg-status_ok" /> </svg>
                <svg class="statusIcon statusIcon--unknown" focusable="false">
                    <use xlink:href="#svg-status_unknown" /> </svg>
                <svg class="statusIcon statusIcon--warning" focusable="false">
                    <use xlink:href="#svg-status_warning" /> </svg>
            </div>Job Title</label>
    </div>

    <div class="contactForm__set contactForm__set--text">
        <input class="contactForm__textInput contactForm__field" type="text" name="city" autocomplete="address-level2" placeholder="Townsville"
            autocorrect="off" required/>
        <label class="contactForm__label contactForm__label--text" for="city" tabindex="-1">
            <div class="statusIconSet">
                <svg class="statusIcon statusIcon--error" focusable="false">
                    <use xlink:href="#svg-status_error" /> </svg>
                <svg class="statusIcon statusIcon--ok" focusable="false">
                    <use xlink:href="#svg-status_ok" /> </svg>
                <svg class="statusIcon statusIcon--unknown" focusable="false">
                    <use xlink:href="#svg-status_unknown" /> </svg>
                <svg class="statusIcon statusIcon--warning" focusable="false">
                    <use xlink:href="#svg-status_warning" /> </svg>
            </div>City</label>
    </div>

    <div class="contactForm__set contactForm__set--text">
        <input class="contactForm__textInput contactForm__field" type="text" name="state" autocomplete="address-level1" placeholder="Earth"
            autocorrect="off" required/>
        <label class="contactForm__label contactForm__label--text" for="state" tabindex="-1">
            <div class="statusIconSet">
                <svg class="statusIcon statusIcon--error" focusable="false">
                    <use xlink:href="#svg-status_error" /> </svg>
                <svg class="statusIcon statusIcon--ok" focusable="false">
                    <use xlink:href="#svg-status_ok" /> </svg>
                <svg class="statusIcon statusIcon--unknown" focusable="false">
                    <use xlink:href="#svg-status_unknown" /> </svg>
                <svg class="statusIcon statusIcon--warning" focusable="false">
                    <use xlink:href="#svg-status_warning" /> </svg>
            </div>State / Region</label>
    </div>

    <div class="contactForm__set contactForm__set--radioList">
        <div class="contactForm__radioList">
            <input id="interested_in_pga--" class="contactForm__radio contactForm__field" type="radio" name="interested_in__c" value="Automotive Automation"
                required/>
            <label for="interested_in_pga--" class="contactForm__radioLabel" tabindex="-1">Automotive</label>
            <input id="interested_in_mining--" class="contactForm__radio contactForm__field" type="radio" name="interested_in__c" value="Mining Automation"
                required/>
            <label for="interested_in_mining--" class="contactForm__radioLabel" tabindex="-1">Mining</label>
            <input id="interested_in_ag--" class="contactForm__radio contactForm__field" type="radio" name="interested_in__c" value="Farming Automation"
                required/>
            <label for="interested_in_ag--" class="contactForm__radioLabel" tabindex="-1">Agriculture</label>
            <input id="interested_in_partner--" class="contactForm__radio contactForm__field" type="radio" name="interested_in__c" value="Partnering"
                required/>
            <label for="interested_in_partner--" class="contactForm__radioLabel" tabindex="-1">Partnering</label>
            <input id="interested_in_job--" class="contactForm__radio contactForm__field" type="radio" name="interested_in__c" value="Employment"
                required/>
            <label for="interested_in_job--" class="contactForm__radioLabel" tabindex="-1">Employment</label>
            <input id="interested_in_edu--" class="contactForm__radio contactForm__field" type="radio" name="interested_in__c" value="Education"
                required/>
            <label for="interested_in_edu--" class="contactForm__radioLabel" tabindex="-1">Education</label>
            <input id="interested_in_other--" class="contactForm__radio contactForm__field" type="radio" name="interested_in__c" value="Other"
                required/>
            <label for="interested_in_other--" class="contactForm__radioLabel" tabindex="-1">Other</label>
            <label class="contactForm__label contactForm__label--radioList" for="interested_in__c" tabindex="-1">
                <div class="statusIconSet">
                    <svg class="statusIcon statusIcon--error" focusable="false">
                        <use xlink:href="#svg-status_error" /> </svg>
                    <svg class="statusIcon statusIcon--ok" focusable="false">
                        <use xlink:href="#svg-status_ok" /> </svg>
                    <svg class="statusIcon statusIcon--unknown" focusable="false">
                        <use xlink:href="#svg-status_unknown" /> </svg>
                    <svg class="statusIcon statusIcon--warning" focusable="false">
                        <use xlink:href="#svg-status_warning" /> </svg>
                </div>Interested In</label>
        </div>
    </div>

    <div class="contactForm__set contactForm__set--radioList" data-showif="mining" style="display:none;">
        <div class="contactForm__radioList">
            <input id="mining_products_fms--" class="contactForm__radio contactForm__field" type="checkbox" name="mining_products" value="FMS"
            />
            <label for="mining_products_fms--" class="contactForm__radioLabel" tabindex="-1">FMS</label>
            <input id="mining_products_assist--" class="contactForm__radio contactForm__field" type="checkbox" name="mining_products"
                value="Driver Assist" />
            <label for="mining_products_assist--" class="contactForm__radioLabel" tabindex="-1">Driver Assist</label>
            <input id="mining_products_ahs--" class="contactForm__radio contactForm__field" type="checkbox" name="mining_products" value="AHS"
            />
            <label for="mining_products_ahs--" class="contactForm__radioLabel" tabindex="-1">AHS</label>
            <input id="mining_products_drill--" class="contactForm__radio contactForm__field" type="checkbox" name="mining_products"
                value="Drill Automation" />
            <label for="mining_products_drill--" class="contactForm__radioLabel" tabindex="-1">Drill Automation</label>
            <input id="mining_products_blast--" class="contactForm__radio contactForm__field" type="checkbox" name="mining_products"
                value="Blast Automation" />
            <label for="mining_products_blast--" class="contactForm__radioLabel" tabindex="-1">Blast Automation</label>
            <input id="mining_products_teleop--" class="contactForm__radio contactForm__field" type="checkbox" name="mining_products"
                value="Teleop" />
            <label for="mining_products_teleop--" class="contactForm__radioLabel" tabindex="-1">Teleop</label>
            <input id="mining_products_train--" class="contactForm__radio contactForm__field" type="checkbox" name="mining_products"
                value="Road Train/Caravan" />
            <label for="mining_products_train--" class="contactForm__radioLabel" tabindex="-1">Road Train/Caravan</label>
            <input id="mining_products_underground--" class="contactForm__radio contactForm__field" type="checkbox" name="mining_products"
                value="Underground" />
            <label for="mining_products_underground--" class="contactForm__radioLabel" tabindex="-1">Underground</label>
            <input id="mining_products_products--" class="contactForm__radio contactForm__field" type="checkbox" name="mining_products"
                value="TMS" />
            <label for="mining_products_products--" class="contactForm__radioLabel" tabindex="-1">TMS</label>
            <label class="contactForm__label contactForm__label--radioList" for="interested_in__c" tabindex="-1">
                <div class="statusIconSet">
                    <svg class="statusIcon statusIcon--error" focusable="false">
                        <use xlink:href="#svg-status_error" /> </svg>
                    <svg class="statusIcon statusIcon--ok" focusable="false">
                        <use xlink:href="#svg-status_ok" /> </svg>
                    <svg class="statusIcon statusIcon--unknown" focusable="false">
                        <use xlink:href="#svg-status_unknown" /> </svg>
                    <svg class="statusIcon statusIcon--warning" focusable="false">
                        <use xlink:href="#svg-status_warning" /> </svg>
                </div>Mining Products - select all that apply</label>
        </div>
    </div>

    <div class="contactForm__set contactForm__set--textArea">
        <textarea class="contactForm__textArea contactForm__field" name="message" placeholder="What can we help you with today?"
            required></textarea>
        <label class="contactForm__label contactForm__label--textArea" for="message" tabindex="-1">
            <div class="statusIconSet">
                <svg class="statusIcon statusIcon--error" focusable="false">
                    <use xlink:href="#svg-status_error" /> </svg>
                <svg class="statusIcon statusIcon--ok" focusable="false">
                    <use xlink:href="#svg-status_ok" /> </svg>
                <svg class="statusIcon statusIcon--unknown" focusable="false">
                    <use xlink:href="#svg-status_unknown" /> </svg>
                <svg class="statusIcon statusIcon--warning" focusable="false">
                    <use xlink:href="#svg-status_warning" /> </svg>
            </div>Project details</label>
    </div>

    <input id="contactForm__pageUrl--" type="hidden" name="pageUrl" value="" />
    <input id="contactForm__pageName--" type="hidden" name="pageName" value="" />
    <script>
        document.getElementById('contactForm__pageUrl--').setAttribute('value', document.location.href);
        document.getElementById('contactForm__pageName--').setAttribute('value', document.title);
    </script>
    <input id="contactForm__GUID--" type="hidden" name="GUID" value="" />
    <input id="contactForm__HSID--" type="hidden" name="HSID" value="" />
    <input id="contactForm__redirectUrl--" type="hidden" name="redirectUrl" value="" />

    <div class="contactForm__set contactForm__set--text contactForm__set--important">
        <input class="contactForm__textInput contactForm__field" type="text" name="size" placeholder="This is a Test!" autocorrect="off"
        />
        <label class="contactForm__label contactForm__label--text" for="color" tabindex="-1">
            <div class="statusIconSet">
                <svg class="statusIcon statusIcon--error" focusable="false">
                    <use xlink:href="#svg-status_error" /> </svg>
                <svg class="statusIcon statusIcon--ok" focusable="false">
                    <use xlink:href="#svg-status_ok" /> </svg>
                <svg class="statusIcon statusIcon--unknown" focusable="false">
                    <use xlink:href="#svg-status_unknown" /> </svg>
                <svg class="statusIcon statusIcon--warning" focusable="false">
                    <use xlink:href="#svg-status_warning" /> </svg>
            </div>Please do not enter anything into this field</label>
    </div>
    <script>
        document.getElementsByClassName('contactForm__set--important')[0].style.display = 'none';
    </script>

    <input class="contactForm__submit" type="submit" value="Send Your Message" />

</form>
              
            
!

CSS

              
                // -custom-reset.scss
// James Bradford's favorite defaults


*{ // remove outline around buttons
    outline: none;
}

// Apply a natural box layout model to all elements: http://paulirish.com/2012/box-sizing-border-box-ftw/
*,*::before,*::after{
    // -moz-box-sizing: border-box; /* ff2 */
    // -ms-box-sizing: border-box; /* ie8 */
    // -webkit-box-sizing: border-box; /* safari3 */
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
}

// mobile tap highlight color
// and remove the underline
a,a:link,a:visited {
	-webkit-tap-highlight-color: rgba(0,0,0,0);
	-webkit-tap-highlight-color: transparent; /* For some Androids */
	text-decoration: none;
}

pre, code, kbd, samp {font-family: monospace, sans-serif;}

// makes the 100% height work. Might close off everything into a scroallable div?
html, body{
  height:100%;
	padding: 20px;
}

object{
	max-width: 100%;
}




// -vars.scss

$ASILogoAspectRatio:264/120;
$scrollBarWIDTH: 10px; // the natural width of a scrollbar
$buttonRADIUS: 3px;

// --------------------------------------------------------------- TIMING
$aciveDURATION: 100ms;

// --------------------------------------------------------------- COLORS
// --------------------------------------------------------------- ASI COLORS
$ASIlightBlue    :#09BBFF;
$ASIblue         :#009FDA;
$ASIdarkBlue     :#007EAE;
$ASIcobalt       :#006991;
$ASInavy         :#002B45;
$ASItan          :#DCD6B2;
$ASIdarkTan      :#BFB073;
$ASIpurple       :#C499F7;
$ASIteal         :#00D392;
$ASIgreen        :#92D400;
$ASIdarkGreen    :#84AF10;
$ASIyellow       :#FED100;
$ASIdarkYellow   :#E0A700;
$ASIorange       :#FF8000;
$ASIred          :#ED2939;
$ASIredder       :#FF0000;
$ASIblack        :#000000;

$ASIbackgroundDark: #111;


// --------------------------------------------------------------- ANIMATION VARS
$speedOutEASING: cubic-bezier(1,0,1,1);
$speedInEASING:  cubic-bezier(0,0,0,1);

$flyOutEASING: cubic-bezier(.5,0,1,0);
$flyInEASING:  cubic-bezier(0,1,.5,1);

$smoothEASING: cubic-bezier(.5,.2,0,1);

$defaultDURATION: 250ms;
$panelTransitionDURATION: 400ms;


// --------------------------------------------------------------- UTILITY CLASSES
.checkbox-hack{
	display: none;
	// position: absolute;
	// top:  -9999px;
	// left: -9999px;
}

// --------------------------------------------------------------- POSITION
@mixin absoluteFill{
	position: absolute;
	top:      0;
	left:     0;
	bottom:   0;
	right:    0;
}
.absolute-fill{ @include absoluteFill; display: flex; align-items:center; justify-content: center; }

@mixin position ($position, $args:()) {
	position: $position;
	$length: length($args);
	@if ($length == 1) {
		top:    nth($args, 1);
		right:  nth($args, 1);
		bottom: nth($args, 1);
		left:   nth($args, 1);
	}
	@elseif ($length == 2) {
		top:    nth($args, 1);
		right:  nth($args, 2);
		bottom: nth($args, 1);
		left:   nth($args, 2);
	}
	@elseif ($length == 3) {
		top:    nth($args, 1);
		right:  nth($args, 2);
		bottom: nth($args, 3);
		left:   nth($args, 2);
	}
	@elseif ($length == 4) {
		top:    nth($args, 1);
		right:  nth($args, 2);
		bottom: nth($args, 3);
		left:   nth($args, 4);
	}
	@elseif ($length > 4) {
		top:    nth($args, 1);
		right:  nth($args, 2);
		bottom: nth($args, 3);
		left:   nth($args, 4);
		@warn "Invalid nuber of args.";
	}
}
@mixin absolute ($args:()) {
  @include position(absolute, $args);
}
@mixin fixed ($args:()) {
  @include position(fixed, $args);
}
@mixin relative ($args:()) {
  @include position(relative, $args);
}

// --------------------------------------------------------------- STRIP UNIT
@function strip-unit($number) {
  @if type-of($number) == 'number' and not unitless($number) {
    @return $number / ($number * 0 + 1);
  }

  @return $number;
}

// --------------------------------------------------------------- TRANSITION & TRANSFORM ADD-ONS
// adds translateZ to transforms to force Hardware Acceleration.
@mixin transform($transforms){
	// transform: $transforms; // to compare
	transform: $transforms translateZ(0);
	// backface-visibility: hidden; // prevent blinking in webkit
	// perspective: 1000; // might help prevent blinking ??
}

// TODO: add transition chaining function
// adds backface visibility to all transitions to prevent "blinky" transitions.
@mixin transition( $properties:(all), $duration:$defaultDURATION, $timing:$smoothEASING, $backface:hidden ) {
	$transitionsLIST:'';
	@each $property in $properties {
		$transitionsLIST: $transitionsLIST +' '+ $property +' '+ $duration +' '+ $timing +' '+ 1ms+', ';
	}
	transition: #{$transitionsLIST} ;
	backface-visibility: $backface;
}
@mixin transitionVis( $visibilityFirst, $properties:(all), $duration:250ms, $timing:'', $backface:hidden ) {
	$transitionsLIST:'';
	@if $visibilityFirst{
		$transitionsLIST: $transitionsLIST+visibility 1ms 0ms+', ';
		@each $property in $properties {
			$transitionsLIST: $transitionsLIST +' '+ $property +' '+ $duration +' '+ $timing +' '+ 1ms+', ';
		}
		transition: #{$transitionsLIST} ;
		visibility: visible;
	}
	@else {
		@each $property in $properties {
			$transitionsLIST: $transitionsLIST+' '+$property+' '+$duration+' '+$timing+' '+0ms+', ';
		}
		$transitionsLIST: $transitionsLIST+' '+visibility 1ms +' '+$duration;
		transition: #{$transitionsLIST} ;
		visibility: hidden;
	}
	backface-visibility: $backface;
}

// --------------------------------------------------------------- CLEARFIX MIXIN
// $order is a choice between :before and :after - use without the "::" prefix
@mixin clearfix($order:after){
	&:#{$order}{
		content: '';
		display: table;
		clear:   both;
	}
}
.clearfixer{
	height: 0;
	display: table;
	clear:   both;
}
// doesn't work on ie6 or ie7

// --------------------------------------------------------------- AUTOPREFIXERS
@mixin inputPlaceholder{
	&::-webkit-input-placeholder 	{@content;}
	&:-moz-placeholder 				{@content;}	 	/* Firefox 18- */
	&::-moz-placeholder 			{@content;}   	/* Firefox 19+ */
	&:-ms-input-placeholder 		{@content;}
}
















// typography.scss

@import url(https://fonts.googleapis.com/css?family=Roboto:400,300,100,700,400italic|Roboto+Condensed:700);


$roboto: 'Roboto', sans-serif;
$robotoCondensed: 'Roboto Condensed','Roboto', sans-serif;

html{
	font-family: $roboto;
	font-style: normal;
	font-weight: 300;
	color: #8c8c8c;
}

a{
	text-decoration: none;
	color: currentColor;
}

@mixin navBarTYPOGRAPHY{
	// color: $ASInavy;
	font-weight: 300;
	font-size: 16px;
}
@mixin navTitleTYPOGRAPHY{
	text-transform: uppercase;
	font-weight: 400;
	font-size: 16px;
}
@mixin activeTYPOGRAPHY{
	font-weight: 500;
}

$navMinorTypeCOLOR: rgba(black, .4);
@mixin navMinorTYPOGRAPHY{
	color: $navMinorTypeCOLOR;
}

@mixin subNavTitleTYPOGRAPHY{
	@include navTitleTYPOGRAPHY;
	font-size: 20px;
}
@mixin subNavMinorTYPOGRAPHY{
	@include navMinorTYPOGRAPHY;
	font-size: 14px;
	font-weight: 700;
}

@mixin heroTitle{
	font-family: $robotoCondensed;
	font-style: normal;
	font-size: 80px;
	font-weight: 700;
	text-transform: uppercase;
	line-height: 0.85em;
	letter-spacing: -0.03em;
	word-spacing: 0.08em;
	@include mq('(max-width: 1500px)') {
		font-size: 60px;
	}
	@include mq('(max-width: 1000px)') {
		font-size: 36px;
	}
	@include mq('(max-width: 500px)') {
		font-size: 30px;
	}
}
// negating the heroTitle
@mixin heroDeck{
	font-family: $roboto;
	font-weight: 700;
	font-size: 24px;
	text-transform: none;
	letter-spacing: normal;
	word-spacing: normal;
	@include mq('(max-width: 500px)') {
		padding:.3em 0;
	}
}





















// svg.scss

svg{
	max-height:100%;
	max-width:100%;
}
$iconSIZE:22px;

// ------------------------------------------------------------ ASI LOGO
// http://codepen.io/arniebradfo/pen/QyxGZm

@keyframes spin{
	0%  {transform: rotate(0deg);}
	100%{transform: rotate(360deg);}
}

#Logo{
	// height: 100%;
	// width: $ASILogoAspectRatio*100%;
	fill-rule:evenodd;clip-rule:evenodd;
	&__ASI{ fill:$ASInavy; }
	&__Gear,&__Compass{ fill:$ASIblue; transform-origin:55px 60px; }
	&__Gear{ animation: spin 100s linear infinite; }
}

// ------------------------------------------------------------ ICONS
@mixin icon--light{
	stroke-width: 0px;
}
@mixin icon--medium{
	stroke-width: 1px;
	padding: 0.5px;
}
@mixin icon--bold{
	stroke-width: 2px;
}
.icon{
	$iconSIZEsvg: $iconSIZE - 1;
	height:     $iconSIZEsvg;
	min-height: $iconSIZEsvg;
	width:      $iconSIZEsvg;
	min-width:  $iconSIZEsvg;
	fill: currentColor;
	stroke: currentColor;
	@include icon--light;
	&--medium{
		@include icon--medium;
	}
	&--bold{
		@include icon--bold;
	}
	$iconSIZEsocial: 30px;
	&--social{
		height:     $iconSIZEsocial;
		min-height: $iconSIZEsocial;
		width:      $iconSIZEsocial;
		min-width:  $iconSIZEsocial;
	}
}
.button-icon{
	min-height: $iconSIZE;
	min-width:  $iconSIZE;
	// or we might get blurry svg icons :(
}

// ------------------------------------------------------------ STATUS ICONS
$statusIconSIZE: 12px;
.statusIconSet{
	display: inline-block;
	width: 0;
	height: 1em;
	vertical-align: middle;
	position: relative;
	@include transition;
	&--ok, &--error, &--warning, &--unknown{
		width: $statusIconSIZE;
		margin-right: $statusIconSIZE / 2;
	}
	&--ok      .statusIcon--ok      ,
	&--error   .statusIcon--error   ,
	&--warning .statusIcon--warning ,
	&--unknown .statusIcon--unknown
	{
		visibility: visible;
	}
}
.statusIcon{
	@include absolute(0);
	fill: currentColor;
	stroke: currentColor;
	stroke-width: 0px;
	visibility: hidden;
	&--ok      { fill: $ASIgreen;  }
	&--error   { fill: $ASIred;    }
	&--warning { fill: $ASIorange; }
	&--unknown { fill: gray;       }
}























// forms.scss

// RESETS & DEFAULTS //
fieldset{
	border: 0px;
	margin: 0;
	padding: 0;
}
legend{
	font-size: 0px;
}
input, textarea, select{
	border: 0;
	padding: 0;
	background-color: transparent;
	box-shadow: none; // for firefox
}
select{
	appearance: none;
	position: relative;
}
option[value=""]{ // dis dont wurk
	opacity: 0.5;
}



$fieldSPACING: 10px;
$radioListSPACING: 10px;
$underlineHEIGHT: 2px;

.contactForm{


	////////////
	// LAYOUT //
	////////////

	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	margin: 0 ($fieldSPACING * -1);

	&__submit{ margin:$fieldSPACING $fieldSPACING 0 $fieldSPACING; }

	&__set{
		margin: 0 $fieldSPACING $fieldSPACING;
		flex-grow: 1;
		// flex-basis: 32%;
		display: flex;
		flex-direction: column;
		&--textArea{
			flex-basis: 100%;
		}
		&--radioList{
			flex-basis: 100%;
			overflow: hidden; // to hide the overflowing underlines
		}
		&--text{ }
	}

	&__textArea{
		resize: vertical;
		height: 2.5em;
		padding: .8em 0 .5em;
		// border-bottom: 1px solid gray;
	}

	&__textInput, &__radioLabel, &__select{
		padding: .6em 0 .2em;
		font-size: 18px;
	}

	&__label{
		padding: .5em 0;
		position: relative;
		font-weight: 700;
		text-transform: uppercase;
		font-size: 13px;
		&:before, &:after{
			content: '';
			height: $underlineHEIGHT;
			@include absolute(0 0 null 0);
		}
		&--textArea{
			order: -1;
			padding-top: 16px;
			&:before, &:after{ @include absolute(auto 0 0 0); }
		}
		&--radioList{
			order: -1;
		    flex-basis: 100%;
			padding-left: $radioListSPACING;
			padding-right: $radioListSPACING;
		    padding-bottom: 0;
		    margin-bottom: -4px;
			&:before, &:after{ content:none; }
		}
	}

	// &__radio{ display:none; }
	// &__radio{ height:0!important; width:0!important; }
	&__radio{ position:absolute; bottom:0; left:0; opacity:0; z-index:-999; }

	&__radioList{
		display: flex;
		flex-wrap: wrap;
		margin: 0 $radioListSPACING * -1;
		padding-bottom: $underlineHEIGHT + 1;
		position: relative;
		&:after{ // filler underline
			content:'';
			display: block;
			order: 99;
			flex-grow: 100;
			height: $underlineHEIGHT;
			align-self: flex-end;
			margin-bottom: -1 * $underlineHEIGHT;
			margin-left: 1px;
			// @include absolute(100% null 0 );
		}
	}

	&__radioLabel{
		padding-left: $radioListSPACING;
		padding-right: $radioListSPACING;
		position: relative;
		flex-grow: 1;
		&:before, &:after{
			content: '';
			@include absolute(100% 1px 0 1px);
			height: $underlineHEIGHT;
		}
	}



	////////////
	// STATES //
	////////////

	$placeholderOPACITY : 0.4;
	$placeholderCOLOR   : black;
	$staticOPACITY      : 0.8;
	$staticCOLOR        : rgba($ASIcobalt, $staticOPACITY);
	$checkedCOLOR		: $ASIblue;
	$focusCOLOR         : $ASIblue;
	$hoverCOLOR         : $ASIlightBlue;
	$warningCOLOR       : $ASIorange;
	$errorCOLOR         : $ASIred;
	$okCOLOR            : $ASIgreen;
	$filledCOLOR        : black;

	color: $staticCOLOR; // global color

	// STATIC //
	&__field, &__label, &__radioLabel{
		&:before{
			transform-origin: top left;
			background-color: $staticCOLOR;
			opacity: 0;
			@include transform(scaleX(0) scaleY(1));
			@include transition(background-color opacity transform);
		}
		&:after{
			transform-origin: top right;
			background-color: $staticCOLOR;
			opacity: 1;
			@include transform(scaleX(1) scaleY(1));
			@include transition(background-color opacity transform);
		}
	}
	&__field{
		color: $filledCOLOR;
		@include transition(color);
		&::placeholder{
			color: rgba($placeholderCOLOR,  $placeholderOPACITY);
			opacity: 1;
			@include transition(color);
		}
		+ label svg{
			@include transition(fill);
		}
	}
	&__label{
		@include transition(color);
		&:before, &:after{ }
	}
	&__radioList{
		&:after{ // filler underline
			background-color: $staticCOLOR;
			opacity: 0.5;
		}
	}
	&__radioLabel{
		color: rgba($placeholderCOLOR,  $placeholderOPACITY);
		@include transition(color);
		&:before, &:after{ }
	}

	// CHECKED //
	&__radio:checked + &__radioLabel{
		color: $checkedCOLOR;
		font-weight: 400;
		&:before, &:after{
			background-color: $checkedCOLOR;
		}
		&:before{
			opacity: 1;
			@include transform(scaleX(1) scaleY(1.5));
		}
		&:after{
			opacity: 0;
			@include transform(scaleX(0) scaleY(1.5));
		}
	}

	// ERROR / INVALID //
	// :not([value=""]:focus):invalid,
	.filled:invalid{ // .filled set by js in contactForm.js
		&::placeholder{
			color: rgba($errorCOLOR,  $placeholderOPACITY);
		}
		&, & + label, & ~ .contactForm__label--radioList{
			color: $errorCOLOR;
			&:before, &:after{
				background-color: $errorCOLOR;
			}
		}
	}
	.filled:invalid ~ .contactForm__label > .statusIconSet{
		@extend .statusIconSet--error;
	}

	// WARNING - SKIPPED //
	.skipped:invalid{ // .skipped set by js in contactForm.js
		&::placeholder{
			color: rgba($warningCOLOR,  $placeholderOPACITY);
		}
		&, & + label, & ~ .contactForm__label--radioList{
			color: $warningCOLOR;
			&:before, &:after{
				background-color: $warningCOLOR;
			}
		}
	}
	.skipped:invalid ~ .contactForm__label > .statusIconSet {
		@extend .statusIconSet--warning;
	}

	// OK //
	:valid ~ .contactForm__label > .statusIconSet {
		@extend .statusIconSet--ok;
	}

	// HOVER //
	&__field:not(:focus):not(:checked):hover{
		&::placeholder{
			// color: $hoverCOLOR; // this disables the label hover color !??? buggy
			color: rgba($hoverCOLOR, .99); // setting this to 1 disables the label hover color too !?!?!?
		}
		&, & + label, & ~ .contactForm__label--radioList{
			color: $hoverCOLOR;
			&:before, &:after{
				background-color: $hoverCOLOR;
			}
			&:before{
				opacity: 0;
				@include transform(scaleX(0) scaleY(1.5));
			}
			&:after{
				opacity: 1;
				@include transform(scaleX(1) scaleY(1.5));
			}
		}
		+ label svg{
			fill: $hoverCOLOR;
		}
	}

	// FOCUSED //
	&__field:focus{
		// &::placeholder{
		// 	color: rgba($focusCOLOR,  $placeholderOPACITY);
		// }
		&, & + label, & ~ .contactForm__label--radioList{
			color: $focusCOLOR;
			&:before, &:after{
				background-color: $focusCOLOR;
			}
			&:before{
				opacity: 1;
				@include transform(scaleX(1) scaleY(1.5));
			}
			&:after{
				opacity: 0;
				@include transform(scaleX(0) scaleY(1.5));
			}
		}
	}

	:indeterminate{ } // maybe need this later?



	////////////
	// SUBMIT //
	////////////

	@keyframes buttonBackgroundPULSE {
		from { background-color: $ASIcobalt; }
		to   { background-color: $ASIlightBlue; }
	}

	&:invalid{ // form:invalid doesn't work in IE and Edge
		.contactForm__submit{
			opacity: 0.5;
			background-color: gray;
			animation: none;
		}
	}
	&:valid{ // form:valid doesn't work in IE and Edge
		.contactForm__submit{
			animation: buttonBackgroundPULSE 1s ease infinite alternate;
		}
	}
	&__submit{
		@include transition(background-color opacity);
		cursor: pointer;
		width: 100%;
		background: $ASIcobalt;
		border-radius: $buttonRADIUS;
		color: white;
		padding: .6em;
		text-transform: uppercase;
		font-weight: 700;
	}
}



////////////////////////////
// SAFARI FORM VALIDATION //
////////////////////////////

// this css exists as a string in formValidation.js

// /* styles added to this sheet with js */
// @keyframes safariFormValidationWarningElementEnter {
// 	from { transform: translateY(50%) translateZ(0); opacity: 0; }
// 	to   { transform: translateY(0)   translateZ(0); opacity: 1; }
// }
// .safariFormValidationWarningElement{
// 	position: fixed;
// 	background-color: white;
// 	z-index: 9999;
// 	padding: 7px 6px 4px;
// 	border-radius: 5px;
// 	box-shadow: 0px 0px 1px 0px rgba(0,0,0,0.55), 0px 0px 4px 0px rgba(0,0,0,0.4);
// 	wrap: nowrap;
// 	color: #666;
// 	font-weight: 700;
// 	text-transform: uppercase;
// 	font-size: 12px;
// 	line-height: 1em;
// 	font-style: normal;
// 	font-family: Helvetica Nue, Helvetica, sans-serif;
// 	transition: transform opacity;
// 	animation: safariFormValidationWarningElementEnter 300ms ease-out;
// }
// .safariFormValidationWarningElement:before{
// 	content: "";
// 	bottom: 100%;
// 	left: 10px;
// 	height: 3px;
// 	position:absolute;
// 	height: 5px;
// 	width: 10px;
// 	border-bottom: 5px solid orange;
// 	border-right: 5px solid transparent;
// 	border-left: 5px solid transparent;
// 	background-color: transparent;
// }
// .safariFormValidationWarningElement:after{
// 	content:"";
// 	right: 0;
// 	left: 0;
// 	top: 0;
// 	height: 3px;
// 	position: absolute;
// 	background-color: orange;
// 	border-top-right-radius: 5px;
// 	border-top-left-radius: 5px;
// }

              
            
!

JS

              
                (function (document, window) {
	var addValidateClasses = function (e) {
		e = e.target || e;
		if (!e.required) return false;
		if (e.type === 'radio' || e.type === 'checkbox') {
			if (!e.valid) {
				if (e.classList.contains('skipped')) return false;
				var radioOrCheckboxSet = e.form.querySelectorAll('[name="' + e.name + '"]');
				for (var i = 0; i < radioOrCheckboxSet.length; i++) {
					radioOrCheckboxSet[i].classList.add('skipped');
				}
			} else {
				e.classList.add('filled');
			}
		} else if (e.value === '') {
			e.classList.remove('filled');
			e.classList.add('skipped');
		} else {
			e.classList.remove('skipped');
			e.classList.add('filled');
		}
		return true;
	};

	var removeSkipped = function (e) {
		e = e.target || e;
		if (!e.required || !e.classList.contains('skipped')) {
			return false;
		} else {
			e.classList.remove('skipped');
			return true;
		}
	};

	var validate = function () {
		var form = this.form;
		for (var i = 0; i < form.elements.length; i++) {
			var field = form.elements[i];
			if (field.type === 'hidden' || field.valid) return;
			addValidateClasses(field);
		}
	};

	var formChange = function (event) {
		var miningProducts = event.target.form.querySelector('[data-showif="mining"]');
		if (event.target.value === 'Mining Automation' && event.target.checked) {
			miningProducts.style.display = '';
		} else if (event.target.name === 'interested_in__c') {
			miningProducts.style.display = 'none';
		}
	};

	var initalize = function () {
		var fields = document.getElementsByClassName('contactForm__field');
		for (var i = 0; i < fields.length; i++) {
			var field = fields[i];
			field.addEventListener('blur', addValidateClasses, false);
			field.addEventListener('focus', removeSkipped, false);
		}
		var forms = document.getElementsByClassName('contactForm');
		for (var j = 0; j < forms.length; j++) {
			var form = forms[j];
			form.addEventListener('change', formChange);
			var submit = form.querySelector('.contactForm__submit');
			submit.addEventListener('click', validate, false);

		}
	};

	// if it just needs raw DOM HTML
	if (document.readyState === 'loading') {
		document.addEventListener('DOMContentLoaded', initalize, false);
	} else { initalize(); }
})(document, window);

              
            
!
999px

Console