This file contains 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
.img-wrap { | |
height: 100px; | |
line-height: 100px; | |
} | |
.img-wrap img { | |
display: inline-block; | |
vertical-align: middle; | |
} |
This file contains 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
Чтобы отрицательные margin-left/right растягивали элемент, ширина элемента не должна быть задана явно (либо не задана вовсе, либо auto) |
This file contains 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
function validate(items){ | |
items.removeClass('invalid'); | |
var retval = true; | |
items.each(function (i,e){ | |
if($(e).val() == ''){ | |
$(e).addClass('invalid'); | |
retval = false; | |
} | |
}); | |
return retval; |
This file contains 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
<script> | |
var toTopBtn = document.getElementsByClassName('to-top-btn')[0]; | |
window.onscroll = function() { | |
var scrollTop = window.pageYOffset; | |
if ( scrollTop >= 120 ) { | |
toTopBtn.classList.add('to-top-btn--active'); | |
} | |
else { | |
toTopBtn.classList.remove('to-top-btn--active'); |
This file contains 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: 'MyFontFamily'; | |
src: url('myfont-webfont.eot?') format('eot'), | |
url('myfont-webfont.woff') format('woff'), | |
url('myfont-webfont.ttf') format('truetype'), | |
url('myfont-webfont.otf') format("opentype"), | |
url('myfont-webfont.svg#svgFontName') format('svg'); | |
font-weight: normal; | |
font-style: normal; | |
} |
This file contains 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
<a class="header-phone" href="tel:{{ currentHost.company.phone()|replace({'(':'',' ':'',')':'','-':''}) }}">{{ currentHost.company.phone() }}</a> |
This file contains 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
Специфичность селектора определяется компонентами самого селек | |
тора. Значение специфичности состоит из четырех частей: 0,0,0,0. Ре | |
альная специфичность селектора определяется следующим образом: | |
1) Для каждого указанного в селекторе значения идентификатора | |
к специфичности добавляется 0,1,0,0. | |
2) Для каждого указанного в селекторе имени класса, псевдокласса | |
или атрибута к специфичности добавляется 0,0,1,0. | |
3) Для каждого заданного в селекторе элемента и псевдоэлемента | |
к специфичности добавляется 0,0,0,1. Внутреннее противоречие |
This file contains 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
$phone: 480px; | |
$tablet-portrait: 768px; | |
$tablet: 1024px; | |
$desktop-lg: 1200px; | |
/* | |
phone = max-width: 480px | |
tablet = min-width: 480px and max-width: 1024px | |
mobile-between = min-width: 480px and max-width: 768px |
OlderNewer