Skip to content

Instantly share code, notes, and snippets.

View Grawl's full-sized avatar
🔨
work work

Даниил Пронин Grawl

🔨
work work
View GitHub Profile
@Grawl
Grawl / prefix-free.styl
Created February 4, 2012 08:29 — forked from sapegin/gist:1735915
-prefix-free for Stylus
// #### it's compilable -prefix-free
// © 2011 Artem Sapegin http://sapegin.ru
// + 2011 Grawl http://grawl.ru
// + radial-gradient and other rules with vendor prefixes added by Grawl.
// add your fixes to My table of vendor prefixes there: http://goo.gl/3hPfR
/* mask:
parameter()
-webkit-parameter arguments
-moz-parameter arguments
-ms-parameter arguments
@Grawl
Grawl / test.css
Created February 9, 2012 11:09
nib prefix-free test
body {
background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #fff), color-stop(1, #000));
background: -webkit-linear-gradient(top, #fff 0%, #000 100%);
background: -moz-linear-gradient(top, #fff 0%, #000 100%);
background: -ms-linear-gradient(top, #fff 0%, #000 100%);
background: -o-linear-gradient(top, #fff 0%, #000 100%);
background: linear-gradient(top, #fff 0%, #000 100%);
}
@Grawl
Grawl / dabblet.css
Created February 28, 2012 11:54
Comments
/**
* Comments
*/
* {
margin: 0;
padding: 0;
border: 0;
}
body {
font-family: sans-serif;
<!—[if IE 6]>
<style>
* { position: relative }
</style>
<![endif]—>
YMaps.jQuery(window).load(function () {
// ..
// здесь параметры карты — объекты, стили и прочее
// ..
$("#change-map-visibility").click(function(e){
$("#YMapsID").css('display','block'); // не забудь сначала скрыть этот блок
map.redraw(); // перерисовка карты
e.preventDefault();
});
});
$(function(){
var unscrolled = 'unscrolled'
$('body').addClass(unscrolled);
$(window).scroll(function(){
if( $(window).scrollTop() > 0 ) {
$('body').removeClass(unscrolled);
} else {
$('body').addClass(unscrolled);
}
});
@Grawl
Grawl / ie6dead.htm
Created March 30, 2012 06:57
IE6 another funeral
<!--[if IE 6]>
Ваш браузер не поддерживает интернет.
<![endif]-->
/**
* GLH
*/
#body {
text-align: center;
background-color: white;
color: black;
}
#body::before {
@Grawl
Grawl / dabblet.css
Created June 12, 2012 15:41
HackStore Download button
/**
* HackStore Download button
*/
a[href^="http://"] {
display: inline-block;
position: relative;
height: 7px;
width: 54px;
font-family: sans-serif;
@Grawl
Grawl / dabblet.css
Created July 6, 2012 02:39
Loading spinner
/**
* Loading spinner */
/* Centering */
html, body {
height: 100%;
}
body {
display: box;
box-align: center;
box-pack: center;