diff --git a/css/tarteaucitron.css b/css/tarteaucitron.css index baf52c2..e7fb85d 100644 --- a/css/tarteaucitron.css +++ b/css/tarteaucitron.css @@ -421,7 +421,8 @@ div#tarteaucitronServices { #tarteaucitronAlertSmall #tarteaucitronCookiesListContainer #tarteaucitronCookiesList .tarteaucitronTitle, #tarteaucitron #tarteaucitronServices .tarteaucitronTitle button, #tarteaucitron #tarteaucitronInfo, -#tarteaucitron #tarteaucitronServices .tarteaucitronDetails { +#tarteaucitron #tarteaucitronServices .tarteaucitronDetails, +#tarteaucitronRoot .asCatToggleBtn { color: #fff; display: inline-block; font-size: 14px; @@ -458,7 +459,7 @@ div#tarteaucitronServices { } #tarteaucitron #tarteaucitronInfo, -#tarteaucitron #tarteaucitronServices .tarteaucitronDetails { +#tarteaucitron #tarteaucitronServices .tarteaucitronDetails:not(.tarteaucitronDetailsInline) { color: #fff; display: none; font-size: 12px; @@ -470,6 +471,15 @@ div#tarteaucitronServices { z-index: 2147483647; } +#tarteaucitron #tarteaucitronServices .tarteaucitronTitle + [id^="tarteaucitronDetails"] { + width: 100%; + font-weight:500; + margin:0; + padding:1.5rem; + background:rgba(51, 51, 51, 0.2); + color:#333; +} + #tarteaucitron #tarteaucitronInfo a { color: #fff; text-decoration: underline; diff --git a/tarteaucitron.js b/tarteaucitron.js index 2c3b0c1..9fa6c0b 100644 --- a/tarteaucitron.js +++ b/tarteaucitron.js @@ -209,6 +209,7 @@ var tarteaucitron = { "bodyPosition": "bottom", "removeCredit": false, "showAlertSmall": false, + "showDetailsOnClick": true, "showIcon": true, "iconPosition": "BottomRight", "cookieslist": false, @@ -358,7 +359,11 @@ var tarteaucitron = { if (tarteaucitron.parameters.mandatory == true) { html += '
  • '; html += '
    '; - html += ' '; + if(tarteaucitron.parameters.showDetailsOnClick){ + html += ' '; + }else{ + html += ' ' + tarteaucitron.lang.mandatoryTitle + ''; + } html += '
    '; html += '