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
(defn toggle-class [id toggled-class] | |
(let [el-classList (.-classList (.getElementById js/document id))] | |
(if (.contains el-classList toggled-class) | |
(.remove el-classList toggled-class) | |
(.add el-classList toggled-class)))) |
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> | |
<!--[if lte IE 6]><html class="preIE7 preIE8 preIE9"><![endif]--> | |
<!--[if IE 7]><html class="preIE8 preIE9"><![endif]--> | |
<!--[if IE 8]><html class="preIE9"><![endif]--> | |
<!--[if gte IE 9]><!--><html><!--<![endif]--> | |
<head> | |
<meta charset="UTF-8"> | |
<title>title</title> | |
</head> | |
<body> |
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 box-shadow($top, $left, $blur, $color, $inset: false) { | |
@if $inset { | |
-webkit-box-shadow:inset $top $left $blur $color; | |
-moz-box-shadow:inset $top $left $blur $color; | |
box-shadow:inset $top $left $blur $color; | |
} @else { | |
-webkit-box-shadow: $top $left $blur $color; | |
-moz-box-shadow: $top $left $blur $color; | |
box-shadow: $top $left $blur $color; | |
} |