Browse Source

amélioration du CSS custom

pull/19/head
paidge 9 months ago
parent
commit
02abbaf853
  1. 7
      tarteaucitron_custom.css.html
  2. 2
      tarteaucitron_pipelines.php

7
css/tarteaucitron_custom.css → tarteaucitron_custom.css.html

@ -1,3 +1,5 @@
#HTTP_HEADER{'Content-Type: text/css'}
#tarteaucitron #tarteaucitronServices .tarteaucitronLine .tarteaucitronName .tarteaucitron-toggle-group {
background: rgba(0, 0, 0, 0.1) !important;
padding: 11px 22px;
@ -18,7 +20,8 @@
#tarteaucitron #tarteaucitronServices .tarteaucitronLine .tarteaucitronAsk.tarteaucitronIsAllowed .tarteaucitronAllow{
background-color: #1B870B;
}
[(#CONFIG{tarteaucitron/groupServices})
#tarteaucitronServices .tarteaucitronLine:hover, #tarteaucitron .tarteaucitronHidden:hover ul li {
background: rgba(0, 0, 0, 0.2) !important;
}
}
]

2
tarteaucitron_pipelines.php

@ -27,7 +27,7 @@ include_spip('inc/tarteaucitron');
*/
function tarteaucitron_insert_head($flux) {
if (tarteaucitron_actif()) {
$css = find_in_path('css/tarteaucitron_custom.css');
$css = generer_url_public('tarteaucitron_custom.css');
$flux.= "<link rel='stylesheet' href='" . $css . "' type='text/css' />";
$tarteaucitron = find_in_path('lib/tarteaucitron/tarteaucitron.js');

Loading…
Cancel
Save