eu-cookie-law-admin.js
2 years ago
eu-cookie-law.js
2 years ago
form.php
2 years ago
style.css
6 years ago
widget-amp.php
2 years ago
widget.php
2 years ago
style.css
135 lines
| 1 | .widget_eu_cookie_law_widget { |
| 2 | animation: fadeIn 800ms; |
| 3 | border: none; |
| 4 | bottom: 1em; |
| 5 | left: 1em; |
| 6 | margin: 0; |
| 7 | padding: 0; |
| 8 | position: fixed; |
| 9 | right: 1em; |
| 10 | width: auto; |
| 11 | z-index: 50001; |
| 12 | } |
| 13 | |
| 14 | @keyframes fadeIn { |
| 15 | from { opacity: 0; visibility: hidden; } |
| 16 | to { opacity: 1; visibility: visible; } |
| 17 | } |
| 18 | |
| 19 | .widget_eu_cookie_law_widget.widget.top { |
| 20 | bottom: auto; |
| 21 | top: 1em; |
| 22 | } |
| 23 | |
| 24 | .admin-bar .widget_eu_cookie_law_widget.widget.top { |
| 25 | top: 3em; |
| 26 | } |
| 27 | |
| 28 | amp-consent.widget_eu_cookie_law_widget.widget.top { |
| 29 | top: 1em; |
| 30 | margin: 0; |
| 31 | } |
| 32 | |
| 33 | .admin-bar amp-consent.widget_eu_cookie_law_widget.widget.top { |
| 34 | top: 0; |
| 35 | margin-top: 3em; |
| 36 | } |
| 37 | |
| 38 | #eu-cookie-law { |
| 39 | background-color: #fff; |
| 40 | border: 1px solid #dedede; |
| 41 | color: #2e4467; |
| 42 | font-size: 12px; |
| 43 | line-height: 1.5; |
| 44 | overflow: hidden; |
| 45 | padding: 6px 6px 6px 15px; |
| 46 | position: relative; |
| 47 | } |
| 48 | |
| 49 | #eu-cookie-law a, |
| 50 | #eu-cookie-law a:active, |
| 51 | #eu-cookie-law a:visited { |
| 52 | color: inherit; |
| 53 | cursor: inherit; |
| 54 | text-decoration: underline; |
| 55 | } |
| 56 | |
| 57 | #eu-cookie-law a:hover { |
| 58 | cursor: pointer; |
| 59 | text-decoration: none; |
| 60 | } |
| 61 | |
| 62 | #eu-cookie-law.negative { |
| 63 | background-color: #000; |
| 64 | border: none; |
| 65 | color: #fff; |
| 66 | } |
| 67 | |
| 68 | #eu-cookie-law.hide { |
| 69 | opacity: 0; |
| 70 | visibility: hidden; |
| 71 | transition: opacity 400ms, visibility 400ms; |
| 72 | } |
| 73 | |
| 74 | /** |
| 75 | * Using a highly-specific rule to make sure that certain form styles |
| 76 | * will be reset |
| 77 | */ |
| 78 | #eu-cookie-law form { |
| 79 | margin-bottom: 0; |
| 80 | position: static; |
| 81 | } |
| 82 | |
| 83 | /** |
| 84 | * Using a highly-specific rule to make sure that all button styles |
| 85 | * will be reset |
| 86 | */ |
| 87 | #eu-cookie-law input, |
| 88 | #eu-cookie-law input:hover, |
| 89 | #eu-cookie-law input:focus { |
| 90 | background: #f3f3f3; |
| 91 | border: 1px solid #dedede; |
| 92 | border-radius: 4px; |
| 93 | -moz-border-radius: 3px; |
| 94 | -webkit-border-radius: 3px; |
| 95 | color: #2e4453; |
| 96 | cursor: pointer; |
| 97 | display: inline; |
| 98 | float: right; |
| 99 | font-family: inherit; |
| 100 | font-size: 14px; |
| 101 | font-weight: inherit; |
| 102 | line-height: inherit; |
| 103 | margin: 0 0 0 5%; |
| 104 | padding: 8px 12px; |
| 105 | position: static; |
| 106 | text-transform: none; |
| 107 | } |
| 108 | |
| 109 | #eu-cookie-law.negative input, |
| 110 | #eu-cookie-law.negative input:hover, |
| 111 | #eu-cookie-law.negative input:focus { |
| 112 | background: #282828; |
| 113 | border-color: #535353; |
| 114 | color: #fff; |
| 115 | } |
| 116 | |
| 117 | @media ( max-width: 600px ) { |
| 118 | #eu-cookie-law { |
| 119 | padding-bottom: 55px; |
| 120 | } |
| 121 | #eu-cookie-law input.accept { |
| 122 | bottom: 8px; |
| 123 | position: absolute; |
| 124 | right: 8px; |
| 125 | } |
| 126 | } |
| 127 | |
| 128 | /** |
| 129 | * Tweak position of the Customizer edit button to make it more obvious this |
| 130 | * is an editable widget rather than a normal accept cookies banner. |
| 131 | */ |
| 132 | .widget_eu_cookie_law_widget .customize-partial-edit-shortcut > button { |
| 133 | left: 0; |
| 134 | } |
| 135 |