tournai: keep categories open (#18987)

This commit is contained in:
Frédéric Péters 2017-09-26 19:23:16 +02:00
parent 3ccb84ad74
commit b0e02106a9
3 changed files with 3 additions and 25 deletions

View File

@ -442,29 +442,17 @@ $category_icons: ((etat-civil, "\e86b"), /* icon-inbox-mail-2 */
}
div.description,
div.intro,
p, ul {
p {
display: none;
background: $primary-color;
}
ul {
position: absolute;
width: 100%;
z-index: 1000;
}
ul > li:last-child > a {
border: none;
}
&.toggled {
background: $primary-color;
a,
h2::before,
h2 {
color: white;
}
ul {
display: block;
}
}
}
#content div.wcscurrentdraftscell,

View File

@ -1,11 +0,0 @@
$(function() {
$('div.wcsformsofcategorycell').on('mouseenter', function() {
$(this).addClass('toggled');
});
$('div.wcsformsofcategorycell').on('mouseleave', function() {
$(this).removeClass('toggled');
});
$('div.wcsformsofcategorycell').delegate('h2', 'click', function() {
$(this).parents('div.wcsformsofcategorycell').toggleClass('toggled');
});
});

View File

@ -388,7 +388,8 @@
"label": "Tournai",
"variables": {
"css_variant": "tournai",
"theme_color": "#D62D8A"
"theme_color": "#D62D8A",
"no_extra_js": true
}
},
{"id": "urville-nacqueville",