Last active
August 29, 2015 14:03
-
-
Save seebz/562f95c3e66bb511e709 to your computer and use it in GitHub Desktop.
CookieBar
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
| body.with-cookiebar { | |
| padding-top:30px; | |
| } | |
| #cookiebar { | |
| position:fixed; | |
| top:0; left:0; right:0; | |
| width:100%; | |
| } |
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
| #cookiebar { | |
| background: #5a5a5a; | |
| color: #fff; | |
| font-family: arial, sans-serif; | |
| font-size: 13px; | |
| font-weight: bold; | |
| height: 20px; | |
| line-height: 19px; | |
| padding: 5px 12px; | |
| } | |
| #cookiebar a { | |
| background: #303030; | |
| border: 1px solid rgba(0, 0, 0, 0.1); | |
| border-radius: 2px; | |
| color: #fff; | |
| cursor: default !important; | |
| display: inline-block; | |
| font-size: 11px; | |
| font-weight: bold; | |
| line-height: 19px; | |
| margin-left: 16px; | |
| padding: 0 8px; | |
| text-decoration: none !important; | |
| white-space: nowrap; | |
| } | |
| #cookiebar a:hover { | |
| color: #d9d9d9 !important; | |
| } |
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
| <script src="cookiebar.js"></script> | |
| <script> | |
| var cookiebar = { | |
| message : "Les cookies assurent le bon fonctionnement de ce site. En utilisant ce dernier, vous acceptez l'utilisation des cookies.", | |
| moreUrl : "/chemin/vers/la/page.html", | |
| moreLabel : "En savoir plus", | |
| closeLabel : "OK" | |
| }; | |
| </script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment