Skip to content

Instantly share code, notes, and snippets.

View bradstrong's full-sized avatar

Brad Strong bradstrong

View GitHub Profile
@bradstrong
bradstrong / html-practiceupdate-footer.html
Created December 19, 2012 15:25
html-practiceupdate-footer
@bradstrong
bradstrong / html-select-error-markup.html
Created December 19, 2012 02:58
select error state markup
<select id="CountryId" name="CountryId" class="error">
<option value="0">Country of Residence</option>
</select>
<small class="error">Invalid entry</small>
<div id="select-country" class="select-container">
<div class="select-content">
<select id="CountryId" name="CountryId" class="error">
<option value="0">Country of Residence</option>
</select>
</div></!--/.select-content-->
@bradstrong
bradstrong / zurb-app.scss
Created November 16, 2012 21:52
scss zurb app.scss template
// You custom settings file to override Foundation defaults
@import "settings";
// Comment out this import if you are customizing you imports below
@import "foundation";
// ----------------------------------------
// Import specific parts of Foundation by commenting the import "foundation"
// and uncommenting what you want below. You must uncomment the following if customizing
@bradstrong
bradstrong / _site-wide-gradient.scss
Created November 16, 2012 19:06
scss mixin site-wide gradient background
@mixin site-gradient($color:$pri-blue, $colorDif:15%, $shinyEdge:"false", $ie-compat:"true"){
@if $ie-compat == "true"{
@include filter-gradient($color, lighten($pri-blue, $colorDif), vertical);
}
background-color: $color;
@include background(linear-gradient(lighten($color,$colorDif), $color));
@if $shinyEdge != "false" {
@include box-shadow(0 0 4px opacify($color, 0.3), 0 1px 0 $shinyEdge inset);
}
}
@bradstrong
bradstrong / zurb-topbar-breakpoints.txt
Created November 8, 2012 20:19
zurb topbar breakpoints
/* Topbar Specific Breakpoint that you can customize */
@media only screen and (max-width: $topBarBreakPoint) {
.top-bar { margin-bottom: 0; overflow: hidden; height: $topBarHeightMobile; background: $topBarDropBgColor;
.js-generated { display: block; }
/* Override contain to grid stuff for breakpoint */
.contain-to-grid & { width: auto; }
/* Setting up the sliding area */