Skip to content

Instantly share code, notes, and snippets.

View philwareham's full-sized avatar
🚡
Huh?

Phil Wareham philwareham

🚡
Huh?
View GitHub Profile
@philwareham
philwareham / grid-with-flexbox-fallback.scss
Last active June 6, 2019 10:48
CSS Grid with CSS Flexbox fallback
// See a working demo at: http://hive-framework.philwareham.co.uk/#section-grid
/* ==========================================================================
Layout for screen media at 1st breakpoint
========================================================================== */
@media screen and (min-width: 32em) {
/**
* Grid container.
@addyosmani
addyosmani / package.json
Last active December 28, 2024 12:07
npm run-scripts boilerplate
{
"name": "my-app",
"version": "1.0.0",
"description": "My test app",
"main": "src/js/index.js",
"scripts": {
"jshint:dist": "jshint src/js/*.js",
"jshint": "npm run jshint:dist",
"jscs": "jscs src/*.js",
"browserify": "browserify -s Validating -o ./dist/js/build.js ./lib/index.js",
@simmo
simmo / gist:2235117
Created March 29, 2012 08:49
SASS: Using @content (3.2) - responding to devices
@mixin respond_to($device) {
@if $device == handheld {
@media only screen and (max-width: 767px) {
@content
}
} @else if $device == handheld-landscape {
@media only screen and (max-width: 767px) and (orientation: landscape) {
@content
}
} @else if $device == handheld-portrait {
@anthonyshort
anthonyshort / _media-queries.scss
Created March 13, 2012 10:37
Media Queries in Sass
// Media Queries in Sass 3.2
//
// These mixins make media queries a breeze with Sass.
// The media queries from mobile up until desktop all
// trigger at different points along the way
//
// And important point to remember is that and width
// over the portrait width is considered to be part of the
// landscape width. This allows us to capture widths of devices
// that might not fit the dimensions exactly. This means the break