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
.cool-widget { | |
position: relative; | |
} | |
.cool-widget__title { | |
font: bold 20px/1 sans-serif; | |
} | |
.cool-widget__body { | |
font: normal 14px/1.4 sans-serif; | |
color: white; | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Gradient Performance Test</title> | |
<style> | |
div { | |
height: 150px; | |
width: 1024px; | |
} |
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 Environment = (function () { | |
var _mqDesktop, _mqMobile; | |
function getMobileMediaQuery() { | |
return _mqMobile || (_mqMobile = window.matchMedia("(max-width: 719px)")); | |
} | |
function getDesktopMediaQuery() { | |
return _mqDesktop || (_mqDesktop = window.matchMedia("(min-width: 720px)")); |
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
$ele.fotorama() | |
.find(".fotorama__html") | |
.on("click mousedown MSPointerDown touchstart", function (e) { | |
e.preventDefault(); | |
e.stopPropagation(); | |
}); |
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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
html, body { | |
height: 100%; | |
padding: 0; | |
margin: 0; | |
} |
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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
.t { | |
display: table; | |
} | |
.tr { | |
display: table-row; | |
} | |
.td { |
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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
body { | |
font-size: 12px; | |
font-family: Arial, sans-serif; | |
} | |
.ts { | |
font-size: 50%; |
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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
body { | |
font-size: 11px; | |
font-family: Arial, sans-serif; | |
} | |
.ts { | |
font-size: 50%; |
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
/** | |
* Align vertically absolutely positioned element without known height | |
*/ | |
#has-known-height { | |
background: lightgray; | |
height: 300px; | |
} | |
#absolutely-positioned { | |
position: absolute; /* don't touch this property */ | |
background: blue; |
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
/** | |
* Opera hack | |
*/ | |
.body { | |
background: lightgray; | |
height: 200px; | |
} | |
/* .opera-only - is dummy selector */ | |
.opera-only :-o-prefocus, | |
.body { |