Skip to content

Instantly share code, notes, and snippets.

View webix's full-sized avatar

Mika Lee webix

  • webix
  • Seoul, Korea
View GitHub Profile
@webix
webix / get-first-elem-of-array.php
Last active October 11, 2017 02:49
배열의 첫번째 놈만 가져오기
<?php
$array = array( 1 => 'banila', 2 => 'macchiato', 3 => 'capuccino' )
echo reset($array);
@webix
webix / _png.scss
Created January 13, 2015 07:43
remove PNG black border below IE8
%fix-png {
-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF)"; /* IE8 */
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF); /* IE6 & 7 */
zoom:1;
&:hover {
-ms-filter:"progid:DXImageTransform.Microsoft.gradient(enabled=false)";
filter:"progid:DXImageTransform.Microsoft.gradient(enabled=false)";
}
}
// SCSS
.rwdImage {
position: relative;
margin:0;
padding-bottom: 56.25%; /* 16:9 ratio */
height: 0;
overflow: hidden;
img {
position: absolute;
@webix
webix / _grid.scss
Last active August 29, 2015 14:13
This snippet is based on Hugo Giraudel's article(http://www.sitepoint.com/managing-responsive-breakpoints-sass/)
// susy default settings
@include border-box-sizing;
$susy: 16 ( 45px 30px ) static;
$layout-desktop: 16 ( 40px 20px ) static;
$layout-tablet : 12 ( 40px 20px ) static;
$layout-mobile : 2 ( 50% 15px ) fluid inside;
$layout-mobileport : 2 ( 50% 15px ) fluid inside;
$layouts: (
desktop: $layout-desktop,