Links

Advanced Design

This guide will show you how to change the appearance of the widget using simple CSS rules

CSS integration

In order to obtain good display performance, the Dastra widget is rendered directly in the site page, in the container with the id #dastra-widget
It's possible to override the appearance of the widget using simple CSS rules.
Exemple:
/**Trigger button**/
.dastra-cw-trigger-button{
background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFYAAABHCAYAAACd3LDJAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOwQAADsEBuJFr7QAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xMkMEa+wAAArDSURBVHhe7Vx5cFXlFQeULSA7kQhhF6sdO6J0Y+pfxbF0Os60ztiqVVtby0C1qEUdcKsimgJ1QbFGXFAcEEqjuFCoCA5WoRhnIkasCSEJhJCEhLzt7vc7p+f77nnv3by8PB4vC1neb+Y333LPPd85J9+933K/l35ZZJFFFln0TSAWD8TAySsgfOpGsPQbnbrDP64v3TOcL2dxpsDQ8XFghJ4Gxw5hAsB1bLCNDVD75cUsnkU6gED91SBEPcexTQjHtsEI3sq3ZZEKGG6cB8K1OXZxONRxnQBlwCszgOBqoYV8exbJACcO59Jj3sgxI1AQa7ci7p+PuPsi4izET65ErHqBums89vIPYTXXzGY1WSQCzPCrHCsCIJQuRfj3zOT87EYKrsmyJO1Y/6WkP6vKIgoINn6fnmsvSgQ4tgVh+/TUPLScpT1k37cJoJgMQMcs9sJDsAModlyO4p1pqfnuTMTg13yTHMysRqw+OJrVZgGR5ts4Ngqi5CEURVPS495f0h3xni704POstm8jWHNorHCdkxwXhOav0P3HVHS3TE6bUL2N76bACmFbTXWXsvq+C2FGnuWYUFQB3Q+uRXfjpDNgPrpvfZemYhorITWm9h9W3zcBNEVC4XI4qLcdKULn9YkZUXy+grV4gODJX3MzfQvke39hGR97YSDYYXQ2zUb7lQuIeei8LFOPjmKeryzzUsZXt34KQuAwK5MDmX0M4OhQbq7vAPTA9RwDBXf/crRfnNAuOttvYG0ehBZaxc31DWBF8Uia0Nex/winytH6+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cVjaDzAi8QNQjolW4RXJt+F6I5+cRAPZcXaeeq2tf8hhaR8QHx4Art3AetHZt1aN5LGtN5lvi+nKpKpPpSMdmSjTlUlSb29bxN6rd62AioPnc3gyB9Z9M511Kphr53rnqxJopChH84mpn6nub6s+HZnEcqprbdUZyye0fNdqwWs4PJkDwP4e6yONtMp6cBzqy4arQxIt02RMRybKRJlM7k0lm4m+eBmafPNagJs4PJnDPll9BetT0B7I845ILslRJwQV75F5Lqtr0dRXl1QmoU6Vo3lfXUxepok6fHWqLPMpZGQ+A1sgEv//FLTMbX9gobFshPw8zDrRfPlX6gxWX6K+4jvsvQe7vnwuh6d9oDls7EOhqPoMI7fnYGTR4D5DZ98G9p56q/qlegctb93mEy0/Fn78CoYXDGl9wk/y90nqzpTp6OgomdPQ3LyEvWZYWgGHpWMAlvEpq1ZwK4vReO46DN8xAUO3Dkng4Fb5cKzc8rpX31qmdT61jHc9qjeuP1m+9X0ty+FFY1FfPR+dg/9ibz3Qkr420NH/wUM/8vkU4cZ/TtTXQONMM2iBORyOjgUcK5vU4qfwfQTUof5nNVRdzmHoHKiPiHrgemFpnwjXiR/Z62UAEEA+fuXaBi27Sgex+10DLN0y3Kwtu8SpODCvNxGqD86Bsr0998cfWWSRRRZZZJEZ+vX7P1VNlJ+GTcVpAAAAAElFTkSuQmCC')
}
.dastra-cw-trigger-button svg{
display:none;
}
/**Modal container**/
.dastra-cw-container{
border-radius:0;
box-shadow: 0 0 50px rgba(0,0,0,.3);
}
/**Button in the footer**/
.dastra-cw-button {
font-weight:bold;
}
/**Button view more**/
.dastra-cw-viewmore-button {
border:none;
color:red;
}
/**Title of consent category**/
.dastra-cw-collection-title {
letter-spacing:1px;
font-size:19px;
font-weight:200;
}
Be careful, some modifications on the widget container may cause undesirable effects.