amiens-metropole: adapt to new forms of category markup (#30095)

This commit is contained in:
Frédéric Péters 2019-01-25 11:52:46 +01:00
parent a66c2177ec
commit cfaa2ca532
2 changed files with 6 additions and 5 deletions

View File

@ -79,7 +79,7 @@ nav {
// Declare the right class name within the following list
// and get little icons for your div>h2
@each $category in (enfance, etatcivil, deces, association, signalement, emploi, paiement, economie, solidarite, habitation, nouveau) {
&.#{$category} div h2 {
&.#{$category} h2 {
background: none;
&::before {
content: ' ';
@ -97,8 +97,9 @@ nav {
}
div {
background-color: $content-background-color;
padding: 0;
div h2 {
h2 {
text-align: left;
border: 2px solid white;

View File

@ -5,9 +5,9 @@ $(function() {
sheet.insertRule('body.has-picture #content .topbanner-wrapper { background: white 0 0 / cover no-repeat url("' + document.body.attributes['data-picture'].value + '"); }', 0);
}
$('#main-content-wrapper').delegate('div.wcsformsofcategorycell > div > div > h2', 'click', function() {
$('#main-content-wrapper').delegate('div.wcsformsofcategorycell h2', 'click', function() {
$(this).parent().children().each(function(index, elt) {
$(this).parent().find('ul').each(function(index, elt) {
var $elt = $(elt);
if (! $elt.hasClass('on')) {
$elt.removeClass('on');
@ -17,4 +17,4 @@ $(function() {
return false;
});
})
})