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
$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 |
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
//mozilla adds opacity to placeholder by default, set opacity for -moz- to 1 | |
::-webkit-input-placeholder { /* Chrome/Opera/Safari */ | |
color: rgba(0,0,0,1); | |
} | |
::-moz-placeholder { /* Firefox 19+ */ | |
color: rgba(0,0,0,1); | |
opacity: 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
<a class="header-phone" href="tel:{{ currentHost.company.phone()|replace({'(':'',' ':'',')':'','-':''}) }}">{{ currentHost.company.phone() }}</a> |
OlderNewer