Skip to content

Instantly share code, notes, and snippets.

View alexsc6955's full-sized avatar
🏠
Working from home

Santiago alexsc6955

🏠
Working from home
View GitHub Profile
@alexsc6955
alexsc6955 / html-ie.html
Created March 15, 2017 01:26
Ad a HTML class just for IE || a less robust version putting class on bodyelement
<!DOCTYPE html>
<!--[if IEMobile 7 ]> <html dir="ltr" lang="en-US"class="no-js iem7"> <![endif]-->
<!--[if lt IE 7 ]> <html dir="ltr" lang="en-US" class="no-js ie6 oldie"> <![endif]-->
<!--[if IE 7 ]> <html dir="ltr" lang="en-US" class="no-js ie7 oldie"> <![endif]-->
<!--[if IE 8 ]> <html dir="ltr" lang="en-US" class="no-js ie8 oldie"> <![endif]-->
<!--[if (gte IE 9)|(gt IEMobile 7)|!(IEMobile)|!(IE)]><!--><html dir="ltr" lang="en-US" class="no-js"><!--<![endif]-->
<head></head>
<!--[if IE ]>
@alexsc6955
alexsc6955 / -center.styl
Last active September 22, 2021 21:30
Stylus centered mixin
/**
* Name: Stylus -centered mixin
* Description: Mixin to center elements
* Author: Santiago Rincón
* Author URI: http://github.com/rincorpes
* Version: 2.0
* License: GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007
* License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
*/
-center()
@alexsc6955
alexsc6955 / -padding.styl
Last active September 22, 2021 21:30
Stylus padding mixin
/**
* Name: Stylus -padding mixin
* Description: Mixin to set paddings
* Author: Santiago Rincón
* Author URI: http://github.com/rincorpes
* Version: 2.0
* License: GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007
* License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
*/
-padding()
@alexsc6955
alexsc6955 / -margin.styl
Last active September 22, 2021 21:30
Stylus margin mixin
/**
* Name: Stylus -margin mixin
* Description: Mixin to set margins
* Author: Santiago Rincón
* Author URI: http://github.com/rincorpes
* Version: 2.0
* License: GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007
* License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
*/
-margin()