This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Le Sass | |
// This goes through media queries and puts value in pseudo element as a js-hook | |
$_query-list: palm-and-down hand-and-up lap-and-up desk-and-up; | |
@each $mq in $_query-list { | |
@include media-query($mq) { | |
body:before { content: "#{$mq}"; display: none; } | |
} | |
} | |
// Le JavaScript |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Explore Map | |
*/ | |
define([ | |
'jquery' | |
], function( | |
$ | |
) { | |
'use strict'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Backgrounds | |
*/ | |
.bg--radial { | |
background: url('/public/images/bg-radial.png') transparent no-repeat center bottom; | |
} | |
@include media-query(1035px){ | |
.bg--radial { | |
background: url('/public/images/bg-grate--alt.png') transparent no-repeat center bottom; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// *************************************************************************** | |
// in _vars.scss | |
// *************************************************************************** | |
// Breakpoints | |
$hand-start: 481px; | |
$lap-start: 768px; | |
$desk-start: 1024px; | |
$wall-start: 1200px; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.crazy-css3 { | |
css3prop: crazy-value; | |
.lt-ie9 & { | |
ie-fallback: awesome; | |
} | |
} | |
// compiles to: | |
.crazy-css3 { | |
css3prop: crazy-value; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class TrackAnalytics | |
constructor: (@el) -> | |
@bindEvents() | |
bindEvents: -> | |
$('body').on 'click', '.track', (e) => | |
e.preventDefault() | |
@setEventProps() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class TrackAnalytics | |
constructor: (@el) -> | |
@bindEvents() | |
bindEvents: -> | |
@el.on 'click', (e) => | |
e.preventDefault() | |
@setEventProps() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*------------------------------------*\ | |
3M Homepage Feed Nav Bar Styles | |
\*------------------------------------*/ | |
.feed { | |
.nav { | |
.h4 { | |
} | |
ul { | |
li { | |
a { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div data-picture data-alt="A giant stone face at The Bayon temple in Angkor Thom, Cambodia"> | |
<div data-src="small.jpg"></div> | |
<div data-src="small.jpg" data-media="(min-device-pixel-ratio: 2.0)"></div> | |
<div data-src="medium.jpg" data-media="(min-width: 400px)"></div> | |
<div data-src="medium_x2.jpg" data-media="(min-width: 400px) and (min-device-pixel-ratio: 2.0)"></div> | |
<div data-src="large.jpg" data-media="(min-width: 800px)"></div> | |
<div data-src="large_x2.jpg" data-media="(min-width: 800px) and (min-device-pixel-ratio: 2.0)"></div> | |
<div data-src="extralarge.jpg" data-media="(min-width: 1000px)"></div> | |
<div data-src="extralarge_x2.jpg" data-media="(min-width: 1000px) and (min-device-pixel-ratio: 2.0)"></div> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.$initialCardCollection.length = $('.js-memory-card'); | |
this.fullCardCollection = []; | |
// this.$initialCardCollection.length has the original divs on the page that i'll clone. | |
for ( var i = 0; i < this.$initialCardCollection.length; i++ ) { | |
var $thisCard = $(this.$initialCardCollection[i]); | |
this.fullCardCollection.push( $thisCard ); | |
this.fullCardCollection.push( $thisCard.clone() ); | |
} |
OlderNewer