Ctrl+KB | toggle side bar |
Ctrl+Shift+P | command prompt |
Ctrl+` | python console |
Ctrl+N | new file |
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
$tappable-height:60px; | |
$default-border-radius:4px; | |
$Green: #97cb5b; | |
.ButtonStyle { | |
background:#fff; | |
display: inline-block; | |
border-radius:$default-border-radius; | |
font-size: 18px; | |
font-weight: bold; | |
cursor: pointer; |
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
%GutterPaddingContent { | |
padding:40px 20px; | |
} | |
.Content { | |
@extend %GutterPaddingContent /* Mobile */ | |
} | |
@media all and (min-width: 1001px) { | |
%GutterPaddingContent { |
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
/* CSS Photo Album */ | |
/* Rebound of this shot by @daryl: http://drbl.in/fwwM */ | |
* { | |
margin: 0; | |
padding: 0; | |
position: relative; | |
box-sizing: border-box; | |
} |
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 psuedo-placeholder($color-placeholder) { | |
&::-webkit-input-placeholder { | |
color: $color-placeholder; | |
@include transition-color; | |
} | |
&:-moz-placeholder { /* Firefox 18- */ | |
color: $color-placeholder; | |
@include transition-color; | |
} |
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
<?php | |
add_action( 'wp_head', 'wps_add_ie_html5_shim' ); | |
/** | |
* Add IE conditional html5 shim to header | |
*/ | |
function wps_add_ie_html5_shim() { | |
global $is_IE; | |
if ( $is_IE ) { | |
echo '<!--[if lt IE 9]>'; | |
echo '<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>'; |
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
img.grayscale.disabled { | |
filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'1 0 0 0 0, 0 1 0 0 0, 0 0 1 0 0, 0 0 0 1 0\'/></filter></svg>#grayscale"); | |
-webkit-filter: grayscale(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
if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) { | |
$(".body-section").addClass("app-visible"); | |
/* | เมื่อ user เปิดเว็บผ่าน iPhone/iPod ให้ addClass .app-visible เข้าไปใน body-section | */ | |
// credit : http://davidwalsh.name/detect-iphone | |
IS_IPAD = navigator.userAgent.match(/iPad/i) != null; | |
IS_IPHONE = (navigator.userAgent.match(/iPhone/i) != null) || (navigator.userAgent.match(/iPod/i) != null); | |
IS_android = navigator.userAgent.match(/Android/i) != null; |
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
.polling_message { | |
color:white; | |
float:left; | |
margin-right:2%; | |
} | |
.view_port { | |
background-color:black; | |
height:25px; | |
width:100%; |
OlderNewer