Skip to content

Instantly share code, notes, and snippets.

@galcev
galcev / media
Created July 5, 2017 13:36
standart - reset, media
/*========== Desktop First Method ==========*/
/* Large Devices, Wide Screens */
@media only screen and (max-width : 1200px) {
}
/* Medium Devices, Desktops */
@media only screen and (max-width : 992px) {
@galcev
galcev / jquery.mmenu.all.css
Created July 5, 2017 11:37
Adaptiv menu for device (mobile menu)
.mm-hidden{display:none!important}.mm-wrapper{overflow-x:hidden;position:relative}.mm-menu{box-sizing:border-box;background:inherit;display:block;padding:0;margin:0;position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.mm-panels,.mm-panels>.mm-panel{background:inherit;border-color:inherit;box-sizing:border-box;margin:0;position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.mm-panels{overflow:hidden}.mm-panel{transform:translate(100%,0);transform:translate3d(100%,0,0);transition:transform .4s ease;transform-origin:top left}.mm-panel.mm-opened{transform:translate(0,0);transform:translate3d(0,0,0)}.mm-panel.mm-subopened{transform:translate(-30%,0);transform:translate3d(-30%,0,0)}.mm-panel.mm-highest{z-index:1}.mm-panel.mm-noanimation{transition:none!important}.mm-panel.mm-noanimation.mm-subopened{transform:translate(0,0);transform:translate3d(0,0,0)}.mm-panels>.mm-panel{-webkit-overflow-scrolling:touch;overflow:scroll;overflow-x:hidden;overflow-y:auto;padding:0 20px}.mm-panels>.mm-panel.mm-hasnavbar{pad
@galcev
galcev / common.js
Last active July 5, 2017 11:54
Install menu superfish
$(document).ready(function() {
//Таймер обратного отсчета
//Документация: http://keith-wood.name/countdown.html
//<div class="countdown" date-time="2015-01-07"></div>
var austDay = new Date($(".countdown").attr("date-time"));
$(".countdown").countdown({until: austDay, format: 'yowdHMS'});
//Попап менеджер FancyBox
//Документация: http://fancybox.net/howto