Last active
May 23, 2025 11:14
-
-
Save tonai126/a165c0ccb04486453bac868dba3ae03e to your computer and use it in GitHub Desktop.
floating-icon-with-svg-support-css-only
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #cmplz-manage-consent .cmplz-manage-consent { | |
| width: 50px !important; | |
| height: 50px !important; | |
| border-radius: 50% !important; | |
| background-color: white !important; /* change color */ | |
| background-image: url("https://your-site.com/path-to-your-icon.svg") !important; /* use your .svg path*/ | |
| background-repeat: no-repeat !important; | |
| background-position: center !important; | |
| background-size: 50% !important; | |
| bottom: 5% !important; | |
| right: 4% !important; | |
| display: block !important; | |
| padding: 0 !important; | |
| min-width: unset !important; | |
| color: transparent !important; /* hiding . text */ | |
| } | |
| /* Hide the dot (text inside the button) */ | |
| .cmplz-manage-consent::before { | |
| content: "" !important; | |
| } |
Comments are disabled for this gist.