Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .cookie-options-modal {
- -webkit-backdrop-filter: blur(6px);
- backdrop-filter: blur(6px);
- background: rgba(0, 0, 0, .2);
- position: fixed;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- z-index: 8;
- height: 100%;
- width: 100%;
- align-items: center;
- justify-content: center;
- overflow: auto;
- }
- .cookie-options-modal .modal-window {
- width: 900px;
- display: flex;
- flex-direction: column;
- border-radius: 4px;
- border-width: 1px;
- border-style: solid;
- border-color: #e0e0e0;
- position: absolute;
- left: 50%;
- top: 50%;
- height: auto;
- max-height: 100%;
- transform: translate(-50%, -50%);
- overflow: auto;
- --tw-bg-opacity: 1;
- background-color: rgb(255 255 255 / var(--tw-bg-opacity));
- }
- .cookie-options-modal .modal-window .closeBtn {
- position: absolute;
- z-index: 1;
- right: 18px;
- top: 0;
- margin-top: 4px;
- margin-bottom: 4px;
- height: 48px;
- width: 48px;
- cursor: pointer;
- background: transparent;
- border: none;
- }
- .cookie-options-modal .modal-window .modalHeader {
- padding-left: 32px;
- padding-right: 32px;
- height: auto;
- flex-direction: column;
- align-items: flex-start;
- border-bottom: 1px solid grey;
- padding-top: 8px;
- padding-bottom: 8px;
- }
- .cookie-options-modal .modal-window .modalBody {
- overflow-y: auto;
- padding-left: 32px;
- padding-right: 32px;
- display: flex;
- flex-direction: column;
- padding-top: 16px;
- padding-bottom: 0;
- }
- .cookie-options-modal .modal-window .modalBody .heading {
- font-size: 2rem;
- line-height: 2.8rem;
- font-weight: 400;
- color: #222;
- }
- .cookie-options-modal .modal-window .modalBody .cookie-item {
- border-top: 1px solid #e0e0e0;
- padding-top: 8px;
- padding-bottom: 4px;
- }
- .cookie-options-modal .modal-window .modalBody .cookie-item .paragraph {
- text-align: left;
- font-size: 1.4rem;
- font-weight: 400;
- line-height: 2.0rem;
- color: #2f2f2f;
- }
- .cookie-options-modal .modal-window .modalBody .cookie-item .cookie-description {
- font-size: 1.4rem;
- line-height: 2.0rem;
- color: #757575;
- }
- .cookie-options-modal .modal-window .modalBody .cookie-item .toggle-container {
- display: flex;
- align-items: center;
- justify-content: space-between;
- }
- .cookie-options-modal .modal-window .modalBody .cookie-item .toggle-container .cookie-description-btn {
- line-height: 2.0rem;
- display: block;
- font-size: 1.4rem;
- color: #005c38;
- -webkit-appearance: button;
- background-color: transparent;
- background-image: none;
- cursor: pointer;
- border: none;
- }
- .cookie-options-modal .modal-window .modalBody .cookie-item .toggle-container .cookie-description-btn:hover {
- text-decoration: underline;
- }
- .cookie-options-modal .modal-window .modalFooter {
- display: flex;
- justify-content: flex-end;
- padding: 32px;
- }
- .cookie-options-modal .modal-window .modalFooter .accept-cookies-btn {
- background: #2f2f2f;
- width: auto;
- color: #ffffff;
- position: relative;
- display: inline-flex;
- min-height: 4rem;
- align-items: center;
- justify-content: center;
- padding-left: 24px;
- padding-right: 24px;
- font-weight: 700;
- transition: background-color .2s, color .2s, box-shadow .2s;
- cursor: pointer;
- }
- .toggle {
- --width: 40px;
- --height: calc(var(--width) / 2);
- --border-radius: calc(var(--height) / 2);
- display: inline-block;
- cursor: pointer;
- display: flex;
- align-items: center;
- gap: 24px;
- }
- .toggle__input {
- display: none;
- }
- .toggle__fill {
- position: relative;
- width: 51px;
- height: 31px;
- border-radius: 100px;
- background: #B3B3B3;
- transition: background 0.2s;
- margin-top: 16px;
- margin-bottom: 16px;
- }
- .toggle__fill::after {
- content: "";
- position: absolute;
- top: 2px;
- left: 2px;
- height: 27px;
- width: 27px;
- background: #ffffff;
- box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.04), 0px 3px 8px 0px rgba(0, 0, 0, 0.15), 0px 3px 1px 0px rgba(0, 0, 0, 0.06);
- border-radius: 100px;
- transition: transform 0.2s;
- }
- .toggle__input:checked ~ .toggle__fill {
- background: #009775;
- }
- .optionToggle input[type='checkbox'] {
- display: none;
- }
- .toggle__input:checked ~ .toggle__fill::after {
- transform: translateX(var(--height));
- }
- .optionToggle .toggleLabel {
- font-size: 1.4rem;
- line-height: 2.8rem;
- color: #222;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement