#lap-cookies-banner { position: fixed; bottom: 0; background-color: #fff; padding-top: 1em; padding-bottom: 1em; z-index: 1000; left: 0; text-align: center; border-top: 1px solid #198cdc; width: 100%; display: none; /* hidden by default */ } #lap-cookies-banner .banner-intro { width: 40%; position: relative; left: 30%; text-align: left; } #lap-cookies-banner .banner-img { width: 50px; position: absolute; padding-top: 5px; height: 50px; } #lap-cookies-banner .banner-title { font-size: 120%; font-weight: bold; text-align: left; padding-left: 60px; } #lap-cookies-banner .banner-text { float: center; min-height: 40px; padding-left: 60px; font-size: 80%; text-align: left; } #lap-cookies-banner .banner-buttons { float: center; padding-top: 5px; height: 20px; margin-bottom: 10px; } #lap-cookies-banner .close-button { position: absolute; left: 100%; } #lap-cookies-banner .banner-buttons .banner-buttons-more { position: relative; left: 55%; top: -28px; width: 20%; } #lap-cookies-banner .banner-buttons .lap-accept, #lap-cookies-banner .banner-buttons .lap-refuse, #lap-cookies-banner .banner-buttons .lap-cookies-more, #lap-cookies-banner .banner-buttons .btn.active { border: 1px solid #198cdc; font-weight: bold; background-color: #198cdc; color: #ffffff !important; box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; } #lap-cookies-banner .banner-buttons .lap-accept:hover, #lap-cookies-banner .banner-buttons .lap-refuse:hover, #lap-cookies-banner .banner-buttons .lap-cookies-more:hover, #lap-cookies-banner .banner-buttons .btn.selected { background: white; color: #198cdc !important; border: 1px solid #198cdc; box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; text-decoration: none; } #lap-cookies-banner .btn { text-decoration: none; display: inline-block; margin-bottom: 0; text-align: center; vertical-align: middle; touch-action: manipulation; background-image: none; white-space: nowrap; padding: 3px 10px; font-size: 9pt; line-height: 20px; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } // Small component to show a Material Design style input toggle // ref: https://codepen.io/FezVrasta/pen/yNRgrB - MIT licensed $toggle-w: 32px; $toggle-h: 14px; $handle-size: 18px; $unchecked-handle-bg: #F1F1F1; $checked-handle-bg: #198cdc; $disabled-handle-bg: #BDBDBD; $unchecked-toggle-bg: #848484; $checked-toggle-bg: desaturate(lighten($checked-handle-bg, 28%), 32%); // kind of magic recipe $disabled-toggle-bg: #D5D5D5; label.input-toggle { line-height: 0; font-size: 0; display: inline-block; margin: 0; >span { display: inline-block; position: relative; background-image: linear-gradient( to right, $unchecked-toggle-bg 0%, $unchecked-toggle-bg 50%, $checked-toggle-bg 50%, $checked-toggle-bg 100%); background-size: $toggle-w*2 $toggle-h; background-position: 0%; border-radius: $toggle-w; width: $toggle-w; height: $toggle-h; cursor: pointer; transition: background-position 0.2s ease-in; } >input:checked+span { background-position: -100%; } >span:after { content: ""; display: block; position: absolute; width: $handle-size; height: $handle-size; background: $unchecked-handle-bg; align-self: center; top: 50%; left: 0; transform: translateY(-50%); border-radius: 100%; //box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); transition: left 0.2s ease-in, background-color 0.2s ease-in, transform 0.3s ease; } >input:checked+span:after { left: $handle-size; background-color: $checked-handle-bg; } // Jelly effect on click >span:active:after { //transform: translateY(-50%) scale3d(1.15, 0.85, 1); } // No jelly effect on disabled toggles >input:disabled+span:active:after { transform: translateY(-50%); } >input:disabled+span { cursor: default; } >input:disabled+span { background: $disabled-toggle-bg; } >input:disabled+span:after { background: $disabled-handle-bg; } // Hide original checkbox, but don't use `display: none` to allow focus on it using keyboard >input { display: block; position: absolute; opacity: 0; width: 0; height: 0; } } #lap-cookies-banner .banner-checkboxes { font-size: 80%; margin-top: 1em; } #lap-cookies-banner .checkbox-label { margin-left: 0.3em; margin-right: 1.5em; top: -0.2em; position: relative; } @media(max-width: 500px) { #lap-cookies-banner .banner-intro { width: 60%; position: relative; left: 20%; text-align: left; } #lap-cookies-banner .banner-buttons .banner-buttons-more { position: relative; left: 25%; top: 10px; width: 50%; } } @media(max-width: 1100px) { #lap-cookies-banner .banner-intro { width: 90%; position: relative; left: 5%; text-align: left; } #lap-cookies-banner .banner-buttons { float: center; padding-top: 5px; height: 60px; margin-bottom: 10px; } #lap-cookies-banner .banner-buttons .banner-buttons-more { position: relative; left: 25%; top: 10px; width: 50%; } } @media(max-width: 1600px) { #lap-cookies-banner .banner-intro { width: 60%; position: relative; left: 20%; text-align: left; } } /* ultra-wide screen */ @media(min-width: 2400px) { #lap-cookies-banner .banner-intro { position: relative; text-align: left; max-width: 800px; left: 35%; } #lap-cookies-banner .banner-buttons .banner-buttons-more { position: relative; left: 50%; top: -28px; width: 20%; } }