This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| HTML: | |
| <!-- slider main container --> | |
| <div class="swiper-container"> | |
| <!-- additional required wrapper --> | |
| <div class="swiper-wrapper"> | |
| <!-- slides --> | |
| <div class="swiper-slide"> | |
| <div class="product"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| state = { | |
| deadline: 'May, 16, 2019', | |
| days: '0', | |
| hours: '0', | |
| minutes: '0', | |
| second: '0' | |
| } | |
| getTimeUntil(deadline) { | |
| const time = Date.parse(deadline) - Date.parse(new Date()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ul.cards__list | |
| li.card | |
| .card__img | |
| img(src="img/cards/card-img.jpg", alt="Card image") | |
| h6 Микроскоп | |
| .card__text | |
| p Самый нужный инструмент в исследованиях. Простой и стильный. | |
| .card__price(data-price="5000") Цена: 5000,00р | |
| // begin rating | |
| .rating.rating-1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .lg(@name, @value){ | |
| @media screen and (max-width: @break_lg){ | |
| @{name}: @value; | |
| } | |
| } | |
| .lg-block(@content){ | |
| @media screen and (max-width: @break_lg){ | |
| @content(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .sandwich | |
| .sandwich__line.sandwich__line--top | |
| .sandwich__line.sandwich__line--middle | |
| .sandwich__line.sandwich__line--bottom | |
| .sandwich { | |
| cursor: pointer; | |
| display: none; | |
| height: 20px; | |
| position: relative; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .font-face(@font-family, @file-path, @font-weight, @font-style) { | |
| @font-face { | |
| font-family: @font-family; | |
| src: url('@{file-path}.eot'); | |
| src: url('@{file-path}.eot?#iefix') format('embedded-opentype'), | |
| url('@{file-path}.woff') format('woff'), | |
| url('@{file-path}.ttf') format('truetype'); | |
| font-weight: @font-weight; | |
| font-style: @font-style; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jQuery(document).ready(function() { | |
| var carouselWidth = 768; | |
| var carousel = null; | |
| if( jQuery(window).width() <= carouselWidth) { | |
| if(carousel == null) | |
| carousel = jQuery('.mobile__slider').bxSlider(); | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $('.tabs-list li').click(function() { | |
| var tabName = $(this).attr('show-tab'); | |
| $(this).addClass('active').siblings().removeClass('active'); | |
| $('.tabs-content .' + tabName).addClass('active').siblings().removeClass('active'); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $('.accordions__button').click(function () { | |
| $(this).toggleClass('active'); | |
| $('.accordions__item + .accordions__button').not($(this).next()).slideUp(400); | |
| $(this).next().slideToggle(400); | |
| }); |