UNPKG

vanilla-cookieconsent

Version:

🍪 Simple cross-browser cookie-consent plugin written in vanilla js.

461 lines (381 loc) 6.74 kB
*,:after,:before { -webkit-box-sizing: border-box; box-sizing: border-box; } html, body{ height: auto!important; width: 100vw!important; overflow-x: hidden!important; } body { line-height: 1.15; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-weight: 400; margin: 0; } #_mainwrapper{ color: #2b3744; } body, html{ height: 100%; } #header{ position: relative; } ._max_width{ max-width: 800px; margin: 0 auto; padding: 1.8em 1.4em; } main { display: block; } h1 { font-size: 2em; } pre { font-family: monospace, monospace; /* 1 */ font-size: 1em; /* 2 */ } a { background-color: transparent; color: inherit; text-decoration: none; display: inline-block; } a:hover{ text-decoration: underline; } abbr[title] { border-bottom: none; /* 1 */ text-decoration: underline; /* 2 */ text-decoration: underline dotted; /* 2 */ } b, strong { font-weight: 600; } code, kbd, samp { font-family: monospace, monospace; /* 1 */ font-size: 1em; /* 2 */ } small { font-size: 80%; } sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; } sub { bottom: -0.25em; } sup { top: -0.5em; } img { border-style: none; max-width: 100%; } button, input, optgroup, select, textarea { font-family: inherit; font-size: 100%; line-height: 1.15; margin: 0; } button, input { overflow: visible; } .cc_div b{ font-weight: 600; font-style: italic; } button, select { text-transform: none; } button, [type="button"], [type="reset"], [type="submit"] { -webkit-appearance: button; } button::-moz-focus-inner, [type="button"]::-moz-focus-inner, [type="reset"]::-moz-focus-inner, [type="submit"]::-moz-focus-inner { border-style: none; padding: 0; } fieldset { padding: 0.35em 0.75em 0.625em; } legend { box-sizing: border-box; color: inherit; display: table; max-width: 100%; padding: 0; white-space: normal; } progress { vertical-align: baseline; } textarea { overflow: auto; } [type="checkbox"], [type="radio"] { box-sizing: border-box; padding: 0; } [type="number"]::-webkit-inner-spin-button, [type="number"]::-webkit-outer-spin-button { height: auto; } [type="search"]::-webkit-search-decoration { -webkit-appearance: none; } ::-webkit-file-upload-button { -webkit-appearance: button; font: inherit; } details { display: block; } summary { display: list-item; } template { display: none; } [hidden] { display: none; } p, h1, h2, h3, h4, h5, h6, div, a{ margin: 0; padding: 0; } ul, li, ol{ margin: 0; } .v-align{ vertical-align: middle; display: table-cell; } ._unselectable { -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; -o-user-select: none; user-select: none; pointer-events: none; } #_cookie_ic{ font-size: .6em; display: inline-block; padding-top: .56em; vertical-align: top; letter-spacing: -0.15em; margin-left: -0.15em; } #app_title{ margin-bottom: 10px; font-size: 3em; padding-bottom: 0; color: #1e1c1b; margin-top: 40px; margin-left: -2px; } #app_description{ display: block; max-width: 500px; margin-bottom: 80px; font-weight: 600; } #app_settings{ margin-bottom: 50px; min-height: 300px; } .styled_btn{ font-weight: 600; text-transform: none; background: #161515; background: #ffeec0; border: none; border-radius: 5px; font-family: inherit; color: #000000; padding: 1em 1em; cursor: pointer; font-size: .8em; transition: box-shadow .3s ease; } .d_mode .styled_btn.disabled{ background: #6d6141; cursor: not-allowed; } .d_mode .styled_btn.disabled:focus{ background: #6d6141; box-shadow: none; } #app_settings > h3{ margin-bottom: 14px; color: #ffffff; background: #2c2c2c; display: inline-block; padding: 5px 10px; border-radius: 5px; font-weight: 600; } ._cookie_value{ margin-top: 5px; } #theme{ font-weight: 600; } #theme, #cookie{ background: #2c2c2c; border-radius: 5px; display: inline-block; padding: 4px 10px; color: #fee194; } #cookie{ margin-top: 5px; width: 100%; overflow: auto; padding: 10px 20px; } .c_emf{ font-weight: 600; } ul{ list-style-type: NONE; padding: 0; } ul li{ margin: 0; margin-bottom: 5px; margin-right: 5px; margin-bottom: 9px; display: inline-block; } #_title_span{ position: relative; display: inline-block; z-index: 1; padding: 10px 0; border-radius: 10px; } #api_section h3, #additional_section > p{ display: inline-block; margin-bottom: 5px; background: #1e1c1b; color: #ffeec0; padding: 5px 10px; margin-left: 0; border-radius: 5px; margin-bottom: 20px; font-weight: 600; } #api_section > ul{ list-style-type: NONE; } #additional_section{ margin-top: 50px; } #github_link{ display: inline-block; BACKGROUND: #1e1c1b; border-radius: 5px; padding: 10px 15px; color: #ffffff; text-decoration: none; box-shadow: 0px 0px 0px 4px #dad9d9; vertical-align: top; position: absolute; top: 24px; right: 0; } #_icon, #_text{ display: inline-block; vertical-align: top; } #_icon > svg{ FILL: #ffffff; display: block; margin-top: 2px; } #_text{ font-weight: 600; margin-left: 5px; DISPLAY: inline-block; vertical-align: middle; } ._badge{ display: inline-block; } #_badges{ margin-left: 10px; display: inline-block; max-width: 100px; height: 46px; } #_badges > img{ display: inline-block!important; } body.d_mode{ background: #141416; } .d_mode #_mainwrapper{ color: #d0d4d8; } .d_mode #app_title{ color: #ffffff; } .d_mode #github_link{ BACKGROUND: #ffeec0; color: #141416; box-shadow: 0px 0px 0px 4px #37352e; } .d_mode #_icon > svg{ FILL: #141416; } .d_mode .c_emf{ COLOR: #ffe295; } .d_mode .styled_btn{ background: #fee194; } .d_mode #api_section h3, .d_mode #additional_section > p{ color: #ffffff; background: #2c2c2c; } .d_mode .styled_btn:focus{ box-shadow: 0 0 0 3px #4b4639; } @media screen and (max-width: 780px) { #app_description{ margin-bottom: 80px; } #github_link{ position: relative; } }