Skip to content

Instantly share code, notes, and snippets.

@Andreydum
Andreydum / button.sass
Created September 16, 2017 10:32 — forked from agragregra/button.sass
Button Sass Styles (Universal Starter)
.button
display: inline-block
border: none
color: #fff
text-decoration: none
background-color: $accent
padding: 15px 45px
font-size: 13px
text-transform: uppercase
font-weight: 600
@Andreydum
Andreydum / jQuery Tabs Short
Last active September 28, 2016 09:38
jQuery Tabs Short
HTML:
<div class="wrapper">
<div class="tabs">
<span class="tab">Вкладка 1</span>
<span class="tab">Вкладка 2</span>
<span class="tab">Вкладка 3</span>
</div>
<div class="tab_content">
<div class="tab_item">Содержимое 1</div>
@Andreydum
Andreydum / sandwich
Last active September 23, 2016 13:05
$(".sandwich, .menu_item").click(function() {
$(".sandwich").toggleClass("active");
});
});
//HTML вставить в <button>
<span class='sandwich'>
#loader {
background: none repeat scroll 0 0 #ffffff;
bottom: 0;
height: 100%;
left: 0;
$(document).ready(function() {
function heightDetect(){
$(".main_head").css("height", $(window).height());
};
heightDetect();
$(window).resize(function(){
heightDetect();
});