Skip to content

Instantly share code, notes, and snippets.

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

Andrey Pelykh andreypelykh

🏠
Working from home
View GitHub Profile
@andreypelykh
andreypelykh / _select-reset.sass
Last active March 5, 2016 09:33
Отмена стандартного отображения select
=select-reset
-webkit-appearance: none
-moz-appearance: none
text-indent: 0.01px
text-overflow: ''
-ms-appearance: none
appearance: none!important
&::-ms-expand
display: none

Font Face

A mixin for writing @font-face rules in SASS.

Usage

Create a font face rule. Embedded OpenType, WOFF2, WOFF, TrueType, and SVG files are automatically sourced.

@include font-face(Samplino, fonts/Samplino);
.container {
line-height: 200px;
}
.block {
display: inline-block;
line-height: 1.2;
vertical-align: middle;
}
.triangle{
width: 0;
height: 0;
border-bottom: 100px solid #000;
border-left: 50px solid transparent;
border-right: 50px solid transparent;
}
$('#circles .open-modal').click(function(e){
e.stopImmediatePropagation();
$('#circles .modal:visible').fadeOut();
$(this).next('.modal').fadeIn();
});
$('#circles .close').click(function(){
$(this).parent('.modal').fadeOut();
})
$("body").click(function(e) {