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
Специфичность селектора определяется компонентами самого селек | |
тора. Значение специфичности состоит из четырех частей: 0,0,0,0. Ре | |
альная специфичность селектора определяется следующим образом: | |
1) Для каждого указанного в селекторе значения идентификатора | |
к специфичности добавляется 0,1,0,0. | |
2) Для каждого указанного в селекторе имени класса, псевдокласса | |
или атрибута к специфичности добавляется 0,0,1,0. | |
3) Для каждого заданного в селекторе элемента и псевдоэлемента | |
к специфичности добавляется 0,0,0,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
{% set no_photo_path = 'bundles/custom/Brands/honda/images/no_photo.svg' %} | |
<img src="{{ nophoto(car.mainPhoto ? car.mainPhoto.fullPath : null, asset(no_photo_path)) }}" alt=""> | |
NewCarsBundle/Twig/PhotoHelper.php |
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
@each $icon-name, $icon-pos-x in $icon-map-position-x { | |
&--#{$icon-name} { | |
background-position: $icon-pos-x 38px; | |
} | |
} |
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
<a href="#" class="footer-contacts__callback" data-lead-form {{ goal('new_callback') }} data-layer="{{ hostpath('landing_forms_layer', {'alias' :'new_callback'}) }}">Обратная связь</a> |
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
{% set admin_panel_visible = (is_granted('manager_cars') or is_granted('manager') or is_granted('ROLE_SEO') or is_granted('ROLE_CONTENT')) %} | |
<body data-ng-app="front" data-ng-controller="common" {% if admin_panel_visible %}class="has_admin_panel" {% endif %}> |
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
$test_array = array( | |
"person-1" => array( | |
"name" => "pete", | |
"lastname" => "rock", | |
"age" => "20" | |
), | |
"person-2" => array( | |
"name" => "jay", | |
"lastname" => "dee", | |
"age" => "40" |
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
{{ car.SpecialOffer ? 'special-offer--' ~ car.specialOffer.type : '' }} |
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
function onPointerDownHandler (event) { | |
if (event.pointerType === 'touch') { | |
// Equivalent to a touchstart on MS Surface | |
} | |
} | |
// For IE 10 | |
element.addEventListener('MSPointerDown', onPointerDownHandler); | |
// For IE 11+ |