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
<p class="text">Vertical Text</p> |
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
<form> | |
<p class="radiogroup"> | |
<!-- This is one radio group --> | |
<input type="radio" name="group1" value="1" /> Item 1<br /> | |
<input type="radio" name="group1" value="2" /> Item 2<br /> | |
<input type="radio" name="group1" value="3" /> Item 3<br /> | |
<!-- This is a separate radio group --> | |
<input type="radio" name="group2" value="1" /> Item 4<br /> | |
<input type="radio" name="group2" value="2" /> Item 5<br /> |
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
.author[data-name="Jeremy Fields"]:after { | |
content: "ields"; | |
display: inline; | |
} | |
.author[data-name="Jeremy Frank"]:after { | |
content: "rank"; | |
display: inline; | |
} |
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
ul, | |
li { | |
list-style: none; | |
margin: 0; | |
padding: 0; | |
} | |
li { | |
display: block; | |
height: 110px; |
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
var JS = JS || {}; | |
JS.Global = (function(window,document,undefined) { | |
'use strict'; | |
var private_var; | |
function private_method() { | |
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
@font-face { | |
font-family: 'MyFont'; | |
src: url('path-to-normal-font'); | |
... | |
font-weight: 400; | |
font-style: normal; | |
} | |
@font-face { | |
font-family: 'MyFont'; | |
src: url('path-to-bold-font'); |
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
var gulp = require('gulp'); | |
var rename = require('gulp-rename'); | |
var postcss = require('gulp-postcss'); | |
gulp.task('styles', function () { | |
var processors = [ | |
]; | |
return gulp.src('./*.postcss') | |
.pipe(postcss(processors)) | |
.pipe(rename({ |
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
@mixin rem($size, $base: 16) { | |
font-size: ($size + 0rem) / $base; | |
.lt-ie8 & { | |
font-size: $size * 1px; | |
} | |
} |
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
var body = document.getElementsByTagName('body')[0]; | |
var captureEvent = function(e) { | |
var target = e.target || e.srcElement; | |
if (target.nodeName === 'A') { | |
alert(target.getAttribute('data-track')); | |
} | |
return false; | |
}; |
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
import debounce from 'debounce' | |
export default class MessagePreview { | |
constructor(el) { | |
this.el = el | |
this.setVariables() | |
this.setUpListeners() | |
this.updatePreview() | |
} |
OlderNewer