Skip to content

Instantly share code, notes, and snippets.

View mturnwall's full-sized avatar

Michael Turnwall mturnwall

View GitHub Profile
@mturnwall
mturnwall / SassMeister-output.css
Last active September 9, 2015 07:44
Z-index stacking partial
header .heroImage {
background: url("/images/hero.jpg") no-repeat 0 0;
position: absolute;
z-index: 3000;
}
header .siteLogo {
position: absolute;
z-index: 3100;
}
@mturnwall
mturnwall / SassMeister-input.scss
Created April 23, 2014 17:26
Generated by SassMeister.com.
// ----
// Sass (v3.3.5)
// Compass (v1.0.0.alpha.18)
// ----
$zIndex: (
scroller: 100,
dropdown: 200,
absolute: 300,
fixed: 4000,
@mturnwall
mturnwall / SassMeister-input.scss
Created April 24, 2014 16:58
Generated by SassMeister.com.
// ----
// Sass (v3.3.5)
// Compass (v1.0.0.alpha.18)
// ----
.firstClass {
border: 1px solid red;
}
.secondClass {
@extend .firstClass;
// ----
// Sass (v3.3.6)
// Compass (v1.0.0.alpha.18)
// ----
// When compiling with Compass (v0.12.6) I get the following error
// error workspace/submoduled-assets/styles/styleguide.scss
// (Line 2 of workspace/submoduled-assets/styles/modules/_node-homepage-rotator.scss:
// Invalid CSS after " template1": expected ")", was ": (svg: "vertic...")
$homepageShapes: (
@mturnwall
mturnwall / SassMeister-input.scss
Created July 11, 2014 17:14
Generated by SassMeister.com.
// ----
// Sass (v3.3.9)
// Compass (v1.0.0.alpha.20)
// ----
$hoverOffset: -36px;
$socialIconsSprite: (
email: (blur: 0 0, focus: 0 $hoverOffset),
facebook: (blur: -36px 0, focus: -36px $hoverOffset),
twitter: (blur: -72px 0, focus: -72px $hoverOffset),
@mturnwall
mturnwall / Front-End Code Formatting.md
Last active August 29, 2015 14:04
Front-End Code Formatting

Front-End Coding Standards

HTML

  • All tags, attributes, and attribute values must be lowercase.
  • All attribute values must be inside double quotation marks.
  • All tags must be closed. Tags that do not contain data such as image and line break tags do not need to have a closing tag.
  • All IDs and Classes are lower camel case.
  • A tag's ID should be the first attribute followed by a class if one exists.
  • Use Unix-style line endings (LF).
@mturnwall
mturnwall / SassMeister-input.scss
Created August 27, 2014 19:29
Generated by SassMeister.com.
// ----
// Sass (v3.4.1)
// Compass (v1.0.1)
// ----
$color-wild-sand: #f5f5f5;
$color-black: #000;
%charlieHdr {
font-size: 22px;
}
@mturnwall
mturnwall / SassMeister-input.scss
Last active August 29, 2015 14:06
Generated by SassMeister.com.
// ----
// Sass (v3.4.4)
// Compass (v1.0.1)
// ----
%alertHeader {
font-size: 18px;
line-height: 1;
text-transform: uppercase;
color: #9b9b9b;
@mturnwall
mturnwall / SassMeister-output.css
Last active May 6, 2020 18:54
SASS mixin for styling input placeholder text
::-moz-placeholder {
color: red;
font-weight: 300;
padding-top: 5px;
}
::-webkit-input-placeholder {
color: red;
font-weight: 300;
padding-top: 5px;
@mturnwall
mturnwall / _fontSize.scss
Last active August 29, 2015 14:12
Sass mixin to build font sizes using rem units and provide a fallback.
/**
* Default font size for the page.
* Leave the unit type off to make the math easier later on.
* Add this variable to the HTML element of the page.
*
* @group Fonts
*/
$font-size-base: 14;
/**