| | |
| | | font-weight: 900; |
| | | src: url('./fonts/montserrat-v31-latin-900italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */ |
| | | } |
| | | |
| | | /* https://frontendmasters.com/blog/the-coyier-css-starter/ */ |
| | | @layer reset { |
| | | html { |
| | |
| | | /****************************************************************** |
| | | THEME SWITCHER & TOGGLE |
| | | ******************************************************************/ |
| | | .theme-switcher { |
| | | position: absolute; |
| | | .toggle-switch input { |
| | | opacity: 0; |
| | | width: 0; |
| | | height: 0; |
| | | } |
| | | #theme-switch { |
| | | z-index: 99; |
| | | position: absolute; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | } |
| | | #theme-switch, |
| | | .toggle-switch { |
| | | --wrap: nowrap; |
| | | cursor: pointer; |
| | | } |
| | | #theme-switch, |
| | | .toggle-switch input[type=checkbox] { |
| | | --h: 2rem; |
| | | width: calc(var(--h) * 2); |
| | | height: var(--h); |
| | | margin: 0 2rem 0 0; |
| | | left: 0; |
| | | appearance:none; |
| | | background: var(--base-200); |
| | | border: 1px solid var(--base-50); |
| | | border-radius: var(--h); |
| | | cursor: pointer; |
| | | transition: all .3s ease; |
| | | opacity: 1; |
| | | left: var(--offScreen); |
| | | } |
| | | |
| | | .toggle-switch input[type=checkbox] { |
| | | .toggle-switch .slider { |
| | | position: relative; |
| | | width: 2rem; |
| | | height: 1rem; |
| | | background-color: var(--base-200); |
| | | border-radius: .75rem; |
| | | overflow: hidden; |
| | | display: flex; |
| | | justify-content: space-evenly; |
| | | align-items: center; |
| | | border: 4px solid transparent; |
| | | transition: .3s; |
| | | box-shadow: 0 0 .25rem 0 rgba(var(--contrast-rgb), .125) inset; |
| | | cursor: pointer; |
| | | margin: 5px; |
| | | } |
| | | .toggle-switch { |
| | | position: relative; |
| | | |
| | | .toggle-switch .slider::before { |
| | | content: ''; |
| | | display: block; |
| | | width: 100%; |
| | | height: 100%; |
| | | position: absolute; |
| | | top:0; |
| | | left: 0; |
| | | background-color: var(--base); |
| | | transform: translateX(-1rem); |
| | | border-radius: .75rem; |
| | | transition: .3s; |
| | | box-shadow: 0 0 .25rem 3px rgba(var(--contrast-rgb), .125); |
| | | } |
| | | |
| | | .toggle-switch input:checked ~ .slider::before { |
| | | transform: translateX(1rem); |
| | | box-shadow: 0 0 .25rem 3px rgb(0, 0, 0, 0.25); |
| | | } |
| | | |
| | | .toggle-switch input:checked ~ .slider { |
| | | background-color: var(--action-0); |
| | | } |
| | | |
| | | .toggle-switch input:active ~ .slider::before { |
| | | transform: translate(0); |
| | | } |
| | | |
| | | |
| | | /*.theme-switcher {*/ |
| | | /* position: absolute;*/ |
| | | /* opacity: 0;*/ |
| | | /* width: 0;*/ |
| | | /* height: 0;*/ |
| | | /*}*/ |
| | | #theme-switch { |
| | | z-index: 99; |
| | | margin: 0; |
| | | --wrap: nowrap; |
| | | --gap: 1rem; |
| | | } |
| | | #theme-switch .slider { |
| | | width: 3rem; |
| | | height: 1.5rem; |
| | | } |
| | | #theme-switch .slider::before { |
| | | transform: translateX(-1.5rem); |
| | | } |
| | | #theme-switch input:checked ~ .slider::before { |
| | | transform: translateX(1.5rem); |
| | | } |
| | | |
| | | |
| | | /*#theme-switch,*/ |
| | | /*.toggle-switch {*/ |
| | | /* --wrap: nowrap;*/ |
| | | /* cursor: pointer;*/ |
| | | /*}*/ |
| | | /*#theme-switch,*/ |
| | | /*.toggle-switch input[type=checkbox] {*/ |
| | | /* --h: 2rem;*/ |
| | | /* width: calc(var(--h) * 2);*/ |
| | | /* height: var(--h);*/ |
| | | /* margin: 0 2rem 0 0;*/ |
| | | /* left: 0;*/ |
| | | /* appearance:none;*/ |
| | | /* background: var(--base-200);*/ |
| | | /* border: 1px solid var(--base-50);*/ |
| | | /* border-radius: var(--h);*/ |
| | | /* cursor: pointer;*/ |
| | | /* transition: all .3s ease;*/ |
| | | /* opacity: 1;*/ |
| | | /*}*/ |
| | | |
| | | /*.toggle-switch input[type=checkbox] {*/ |
| | | /* position: relative;*/ |
| | | /*}*/ |
| | | /*.toggle-switch {*/ |
| | | /* position: relative;*/ |
| | | /*}*/ |
| | | |
| | | @media (max-width: 600px) { |
| | | #theme-switch { |
| | | left: 1rem; |
| | |
| | | } |
| | | |
| | | /* Icon wrapper styling */ |
| | | #theme-switch .icon { |
| | | --w: 1em; |
| | | position: relative; |
| | | top: 0; |
| | | margin: 0 .25em; |
| | | color: var(--contrast-200); |
| | | z-index: 2; |
| | | transform: translateX(0); |
| | | } |
| | | /*#theme-switch .icon {*/ |
| | | /* --w: 1em;*/ |
| | | /* position: relative;*/ |
| | | /* top: 0;*/ |
| | | /* margin: 0 .25em;*/ |
| | | /* color: var(--contrast-200);*/ |
| | | /* z-index: 2;*/ |
| | | /* transform: translateX(0);*/ |
| | | /*}*/ |
| | | |
| | | |
| | | #theme-switcher:not(:checked) ~ .sun-dim, |
| | | #theme-switcher:checked ~ .moon { |
| | | --w: 1.5em; |
| | | color: var(--contrast); |
| | | } |
| | | /*#theme-switcher:not(:checked) ~ .sun-dim,*/ |
| | | /*#theme-switcher:checked ~ .moon {*/ |
| | | /* --w: 1.5em;*/ |
| | | /* color: var(--contrast);*/ |
| | | /*}*/ |
| | | |
| | | #theme-switcher:not(:checked) ~ .moon, |
| | | #theme-switcher:checked ~ .sun-dim { |
| | | top: -.17rem; |
| | | } |
| | | #theme-switcher:not(:checked) ~ .sun-dim { |
| | | color: var(--secondary-0); |
| | | transform: translate(-2px, 2px); |
| | | } |
| | | #theme-switcher:checked ~ .moon { |
| | | transform: translate(4px, 4px); |
| | | } |
| | | /*#theme-switcher:not(:checked) ~ .moon,*/ |
| | | /*#theme-switcher:checked ~ .sun-dim {*/ |
| | | /* top: -.17rem;*/ |
| | | /*}*/ |
| | | /* #theme-switcher:not(:checked) ~ .sun-dim {*/ |
| | | /* color: var(--secondary-0);*/ |
| | | /* transform: translate(-2px, 2px);*/ |
| | | /* }*/ |
| | | /* #theme-switcher:checked ~ .moon {*/ |
| | | /* transform: translate(4px, 4px);*/ |
| | | /* }*/ |
| | | |
| | | #theme-switch span, |
| | | .toggle-switch input[type=checkbox]::before { |
| | | --m: 2px; |
| | | content: ""; |
| | | position: absolute; |
| | | top: var(--m); |
| | | left: var(--m); |
| | | width: calc(var(--h) - (var(--m) * 2)); |
| | | height: calc(var(--h) - var(--m) * 2); |
| | | border: 1px solid rgba(var(--contrast-rgb), .2); |
| | | border-bottom: 3px solid var(--contrast-200); |
| | | background: var(--base-50); |
| | | border-radius: 50%; |
| | | z-index: 1; |
| | | transform: rotate(360deg); |
| | | transition: transform var(--transition-base), |
| | | left var(--transition-base), |
| | | top var(--transition-base), |
| | | height var(--transition-base); |
| | | } |
| | | #theme-switch input:checked ~ span, |
| | | .toggle-switch input[type=checkbox]:checked::before { |
| | | left: calc(100% - (var(--h) - var(--m))); |
| | | transform: rotate(-180deg); |
| | | transition: transform var(--transition-base), left var(--transition-base); |
| | | } |
| | | .toggle-switch input[type=checkbox]:checked { |
| | | background: var(--action-0); |
| | | } |
| | | /*#theme-switch span,*/ |
| | | /*.toggle-switch input[type=checkbox]::before {*/ |
| | | /* --m: 2px;*/ |
| | | /* content: "";*/ |
| | | /* position: absolute;*/ |
| | | /* top: var(--m);*/ |
| | | /* left: var(--m);*/ |
| | | /* width: calc(var(--h) - (var(--m) * 2));*/ |
| | | /* height: calc(var(--h) - var(--m) * 2);*/ |
| | | /* border: 1px solid rgba(var(--contrast-rgb), .2);*/ |
| | | /* border-bottom: 3px solid var(--contrast-200);*/ |
| | | /* background: var(--base-50);*/ |
| | | /* border-radius: 50%;*/ |
| | | /* z-index: 1;*/ |
| | | /* transform: rotate(360deg);*/ |
| | | /* transition: transform var(--transition-base),*/ |
| | | /* left var(--transition-base),*/ |
| | | /* top var(--transition-base),*/ |
| | | /* height var(--transition-base);*/ |
| | | /*}*/ |
| | | /* #theme-switch input:checked ~ span,*/ |
| | | /* .toggle-switch input[type=checkbox]:checked::before {*/ |
| | | /* left: calc(100% - (var(--h) - var(--m)));*/ |
| | | /* transform: rotate(-180deg);*/ |
| | | /* transition: transform var(--transition-base), left var(--transition-base);*/ |
| | | /* }*/ |
| | | /* .toggle-switch input[type=checkbox]:checked {*/ |
| | | /* background: var(--action-0);*/ |
| | | /* }*/ |
| | | |
| | | /* Focus States */ |
| | | .theme-switch:focus-visible + label { |
| | | outline: 2px solid var(--action-0); |
| | | outline-offset: 2px; |
| | | } |
| | | /*!* Focus States *!*/ |
| | | /*.theme-switch:focus-visible + label {*/ |
| | | /* outline: 2px solid var(--action-0);*/ |
| | | /* outline-offset: 2px;*/ |
| | | /*}*/ |
| | | |
| | | /* Icon Animations */ |
| | | #theme-switch .icon { |
| | | transition: |
| | | transform var(--transition-base), |
| | | width var(--transition-base), |
| | | height var(--transition-base), |
| | | top var(--transition-base), |
| | | color var(--transition-base); |
| | | } |
| | | /*!* Icon Animations *!*/ |
| | | /*#theme-switch .icon {*/ |
| | | /* transition:*/ |
| | | /* transform var(--transition-base),*/ |
| | | /* width var(--transition-base),*/ |
| | | /* height var(--transition-base),*/ |
| | | /* top var(--transition-base),*/ |
| | | /* color var(--transition-base);*/ |
| | | /*}*/ |
| | | |
| | | #theme-switcher:not(:checked) ~ .icon.dark, |
| | | #theme-switcher:checked ~ .icon.light { |
| | | transform: rotate(360deg); |
| | | color: var(--contrast-200); |
| | | } |
| | | #theme-switcher:not(:checked) ~ .icon.light, |
| | | #theme-switcher:checked ~ .icon.dark { |
| | | transform: rotate(-360deg); |
| | | color: var(--contrast); |
| | | } |
| | | /*#theme-switcher:not(:checked) ~ .icon.dark,*/ |
| | | /*#theme-switcher:checked ~ .icon.light {*/ |
| | | /* transform: rotate(360deg);*/ |
| | | /* color: var(--contrast-200);*/ |
| | | /*}*/ |
| | | /*#theme-switcher:not(:checked) ~ .icon.light,*/ |
| | | /*#theme-switcher:checked ~ .icon.dark {*/ |
| | | /* transform: rotate(-360deg);*/ |
| | | /* color: var(--contrast);*/ |
| | | /*}*/ |
| | | |
| | | /* Hover Effects */ |
| | | #theme-switch:hover span { |
| | | background-color: var(--base-100); |
| | | } |
| | | /*!* Hover Effects *!*/ |
| | | /*#theme-switch:hover span {*/ |
| | | /* background-color: var(--base-100);*/ |
| | | /*}*/ |
| | | |
| | | |
| | | #theme-switch:hover .icon { |
| | | color: var(--action-50); |
| | | } |
| | | /*#theme-switch:hover .icon {*/ |
| | | /* color: var(--action-50);*/ |
| | | /*}*/ |
| | | |
| | | /* Active State */ |
| | | #theme-switch:active span { |
| | | transform: scale(.97); |
| | | } |
| | | /*!* Active State *!*/ |
| | | /*#theme-switch:active span {*/ |
| | | /* transform: scale(.97);*/ |
| | | /*}*/ |
| | | |
| | | /*********************************************************** |
| | | SMOOTH SCROLLING |
| | |
| | | margin: 3rem var(--mr) 3rem var(--ml); |
| | | } |
| | | } |
| | | .btn + label, |
| | | [type=submit], |
| | | a.button, |
| | | a.wp-block-button__link, |
| | |
| | | transition-property: color, border,background-color; |
| | | position: relative; |
| | | } |
| | | |
| | | .btn + label:hover, |
| | | .btn + label:focus, |
| | | [type=submit]:hover, |
| | | [type=submit]:focus, |
| | | .buttons a:hover, |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | .btn:disabled + label, |
| | | .btn:disabled + label:hover, |
| | | [type=submit]:disabled, |
| | | [type=submit]:disabled:hover, |
| | | [type=submit]:disabled:focus, |
| | |
| | | dialog[open] { |
| | | z-index:999; |
| | | --padding: 0; |
| | | top: 0; |
| | | top: 5vh; |
| | | width: min(500px, 95vw); |
| | | border-radius: 1rem; |
| | | height: fit-content; |
| | | max-height: 90vh; |
| | | overflow: hidden; |
| | | max-height: 90vh; |
| | | padding: var(--padding); |
| | | background-color: var(--base-50); |
| | | color: var(--contrast); |
| | |
| | | |
| | | dialog > .wrap, |
| | | dialog > form { |
| | | overflow: hidden auto; |
| | | max-height: 100%; |
| | | margin: 1.5rem 0 0 1.5rem; |
| | | overflow: hidden auto; |
| | | margin: 0 0 0 1.5rem; |
| | | padding-right: 1.2rem; |
| | | width: calc(100% - 1.5rem - 1.2rem); |
| | | width: calc(100% - 1.5rem); |
| | | } |
| | | |
| | | dialog label { |
| | |
| | | padding-bottom: var(--height); |
| | | } |
| | | .m-actions { |
| | | --w: 1.5em; |
| | | --w: 1.15em; |
| | | --justify: flex-end; |
| | | --wrap: nowrap; |
| | | --gap: 0; |
| | |
| | | - cart |
| | | - queue |
| | | **************************************************/ |
| | | aside#cart, |
| | | aside#queue { |
| | | aside { |
| | | position: fixed; |
| | | top: var(--doubleHeight); |
| | | bottom: var(--offHeight); |
| | |
| | | } |
| | | |
| | | .qtoggle, |
| | | .toggle-cart, |
| | | /*.toggle-cart,*/ |
| | | .create-item { |
| | | z-index: var(--z-6); |
| | | position: fixed; |
| | |
| | | transition: width var(--transition-base), background-color var(--transition-base), color var(--transition-base), left var(--transition-base); |
| | | box-shadow: var(--shadow); |
| | | } |
| | | .toggle-cart:hover, |
| | | /*.toggle-cart:hover,*/ |
| | | .qtoggle:hover, |
| | | .create-item:hover, |
| | | .toggle-cart:focus, |
| | | /*.toggle-cart:focus,*/ |
| | | .qtoggle:focus, |
| | | .create-item:focus { |
| | | background-color: rgba(var(--action-rgb),var(--rgb-heavy)); |
| | | color: var(--action-contrast); |
| | | } |
| | | .toggle-cart:disabled, |
| | | /*.toggle-cart:disabled,*/ |
| | | .qtoggle:disabled, |
| | | .create-item:disabled, |
| | | .toggle-cart:disabled:hover, |
| | | /*.toggle-cart:disabled:hover,*/ |
| | | .qtoggle:disabled:hover, |
| | | .create-item:disabled:hover, |
| | | .toggle-cart:disabled:focus, |
| | | /*.toggle-cart:disabled:focus,*/ |
| | | .qtoggle:disabled:focus, |
| | | .create-item:disabled:focus { |
| | | opacity: .5; |
| | |
| | | border-radius: 4px 4px 4px var(--outerRadius); |
| | | } |
| | | |
| | | body:has(#cart.expanded) .toggle-cart { |
| | | width: min(500px, calc(100vw - 2rem)); |
| | | } |
| | | body:has(#cart.expanded) .toggle-cart .icon { |
| | | display: none; |
| | | } |
| | | |
| | | aside#cart { |
| | | overflow: hidden; |
| | | right: var(--offScreen); |
| | | border-radius: var(--outerRadius) 0 0 var(--outerRadius); |
| | | transition: right var(--transition-base); |
| | | padding-bottom: 6rem; |
| | | } |
| | | aside#cart.expanded { |
| | | right: 0; |
| | | transition: right var(--transition-base); |
| | | } |
| | | #cart form { |
| | | max-height: 100%; |
| | | overflow: hidden auto; |
| | |
| | | /****************** |
| | | QUEUE |
| | | ******************/ |
| | | aside#queue { |
| | | left: var(--offScreen); |
| | | border-radius: 0 var(--outerRadius) var(--outerRadius) 0; |
| | | transition: left var(--transition-base); |
| | | --wrap: nowrap; |
| | | --align: stretch; |
| | | } |
| | | aside#queue.expanded { |
| | | left: 0; |
| | | overflow: hidden auto; |
| | | } |
| | | |
| | | .qtoggle { |
| | | left: 0; |
| | | border-radius: 4px 4px var(--outerRadius) 4px; |
| | | } |
| | | |
| | | body:has(#queue.expanded) .qtoggle { |
| | | .qtoggle.expanded { |
| | | left: var(--height); |
| | | width: min(calc(500px - var(--height)), calc(100vw - 2rem - var(--height))); |
| | | } |
| | |
| | | animation: shimmer 2.5s infinite linear var(--delay); |
| | | } |
| | | /************************************************** |
| | | ACTIONS |
| | | **************************************************/ |
| | | .additional-actions .buttons { |
| | | position: fixed; |
| | | bottom: var(--offHeight); |
| | | right: 1rem; |
| | | margin: 0; |
| | | --gap: 1rem; |
| | | z-index: var(--z-6); |
| | | width: fit-content; |
| | | } |
| | | .additional-actions .buttons button { |
| | | height: var(--height); |
| | | width: var(--height); |
| | | background-color: var(--overlay-medium); |
| | | color: var(--contrast); |
| | | transition: width var(--transition-base), background-color var(--transition-base), color var(--transition-base), left var(--transition-base); |
| | | box-shadow: var(--shadow); |
| | | } |
| | | .additional-actions .buttons button:hover { |
| | | background-color: var(--action-0); |
| | | color: var(--action-contrast); |
| | | } |
| | | .additional-actions .buttons button:disabled, |
| | | .additional-actions .buttons button:disabled:hover, |
| | | .additional-actions .buttons button:disabled:focus { |
| | | opacity: .5; |
| | | background-color: var(--overlay-light); |
| | | color: var(--contrast); |
| | | } |
| | | .additional-actions .buttons button:last-of-type { |
| | | border-radius: 4px 4px 4px var(--outerRadius); |
| | | } |
| | | aside { |
| | | position: fixed; |
| | | top: var(--doubleHeight); |
| | | bottom: var(--offHeight); |
| | | width: min(500px, calc(100vw - 2rem)); |
| | | background-color: var(--base); |
| | | z-index: var(--z-5); |
| | | box-shadow: var(--shadow); |
| | | --wrap: nowrap; |
| | | --align: stretch; |
| | | overflow: hidden auto; |
| | | padding: 1rem 1rem var(--height); |
| | | } |
| | | aside.left { |
| | | left: var(--offScreen); |
| | | transition: left var(--transition-base); |
| | | border-radius: 0 var(--outerRadius) var(--outerRadius) 0; |
| | | } |
| | | aside.left.expanded { |
| | | left: 0; |
| | | } |
| | | |
| | | aside.right { |
| | | right: var(--offScreen); |
| | | border-radius: var(--outerRadius) 0 0 var(--outerRadius); |
| | | transition: right var(--transition-base); |
| | | } |
| | | aside.right.expanded { |
| | | right: 0; |
| | | } |
| | | aside.right.expanded button.close { |
| | | position: sticky; |
| | | bottom: calc(var(--height) * -1); |
| | | left: 0; |
| | | border-bottom-left-radius: var(--outerRadius); |
| | | width: var(--height); |
| | | height: var(--height); |
| | | |
| | | } |
| | | .additional-actions .buttons:has(.expanded) button:not(.expanded) { |
| | | display: none; |
| | | } |
| | | .additional-actions .buttons:has(.expanded){ |
| | | right: 0; |
| | | } |
| | | |
| | | .additional-actions .buttons .expanded { |
| | | width: calc(min(500px, calc(100vw - 2rem))); |
| | | background-color: var(--base); |
| | | } |
| | | .additional-actions .buttons button:hover, |
| | | .additional-actions .buttons .expanded:hover { |
| | | background-color: var(--action-0); |
| | | color: var(--action-contrast); |
| | | } |
| | | |
| | | [type=submit] { |
| | | width: 100%; |
| | | height: var(--height); |
| | | background-color: var(--action-0); |
| | | color: var(--action-contrast); |
| | | box-shadow: var(--shadow-none); |
| | | font-weight: bold; |
| | | } |
| | | [type=submit]:hover { |
| | | box-shadow: var(--shadow); |
| | | border: 2px solid var(--action-0); |
| | | color: var(--action-0); |
| | | background-color: var(--action-contrast); |
| | | } |
| | | |
| | | aside nav.tabs { |
| | | position: sticky; |
| | | bottom: unset; |
| | | top: 0; |
| | | left: 0; |
| | | right: 0; |
| | | } |
| | | .jvb-referral nav.tabs button { |
| | | width: 50%; |
| | | } |
| | | aside .tab-content.active { |
| | | padding: 1rem; |
| | | min-height: 100%; |
| | | } |
| | | |
| | | aside header h3 { |
| | | font-size: var(--medium); |
| | | margin: 1rem 0; |
| | | text-align: center; |
| | | } |
| | | aside header p { |
| | | margin: .25rem 0; |
| | | text-align: center; |
| | | } |
| | | aside h4 { |
| | | font-size: var(--small); |
| | | margin: 1rem 0 0 0; |
| | | } |
| | | |
| | | code { |
| | | width: 100%; |
| | | margin: .5rem; |
| | | padding: .5rem; |
| | | user-select: all; |
| | | text-align: center; |
| | | border-radius: 4px; |
| | | background-color: var(--base-200); |
| | | border: 1px solid var(--contrast-200); |
| | | } |
| | | .restore-form { |
| | | background-color: rgba(var(--action-rgb), var(--rgb-light)); |
| | | border: 1px solid var(--action-200); |
| | | padding: .5rem; |
| | | border-radius: var(--outerRadius); |
| | | margin: 1rem 2rem; |
| | | } |
| | | .restore-form h3 { |
| | | text-align: center; |
| | | margin: 1rem 0 0; |
| | | font-size: var(--medium); |
| | | } |
| | | .restore-form p { |
| | | margin: .5rem 0; |
| | | } |
| | | .fstatus { |
| | | z-index: var(--z-5); |
| | | background-color: rgba(var(--base-rgb),var(--rgb-heavy)); |
| | | border-radius: 4px; |
| | | padding: 0 .5rem; |
| | | position: fixed; |
| | | bottom: var(--offHeight); |
| | | right: calc(var(--offHeight) + 1rem); |
| | | --w: 1em; |
| | | box-shadow:var(--shadow); |
| | | } |
| | | .fstatus .spinner { |
| | | display: none; |
| | | } |
| | | .fstatus.loading .spinner { |
| | | display: inline-block; |
| | | } |
| | | |
| | | .fstatus p { |
| | | margin: 0; |
| | | padding: .25rem; |
| | | } |
| | | /************************************************** |
| | | RESPONSES |
| | | **************************************************/ |
| | | /*dialog.create-response {*/ |
| | |
| | | |
| | | @keyframes pulse-color { |
| | | 0% { |
| | | box-shadow: 0 0 0 0 rgba(var(--secondary-rgb), .4); |
| | | box-shadow: 0 0 0 0 rgba(var(--action-rgb), .4); |
| | | } |
| | | 70% { |
| | | box-shadow: 0 0 0 6px rgba(var(--secondary-rgb), 0); |
| | | 30% { |
| | | box-shadow: 0 0 0 .75rem rgba(var(--action-rgb), 0); |
| | | } |
| | | 100% { |
| | | box-shadow: 0 0 0 0 rgba(var(--secondary-rgb), 0); |
| | | box-shadow: 0 0 0 0 rgba(var(--action-rgb), 0); |
| | | } |
| | | } |
| | | |
| | |
| | | vertical-align: super; |
| | | font-size: 12px; |
| | | } |
| | | body.menu_item section h2 { |
| | | body.menu_item section > h2 { |
| | | display: inline-block; |
| | | max-width: var(--maxWidth); |
| | | width: max-content; |
| | |
| | | font-size: 14px; |
| | | min-width: 180px; |
| | | background: var(--base); |
| | | color: var(--contrast); |
| | | cursor: pointer; |
| | | transition: border-color .2s ease; |
| | | } |
| | | |
| | | .field-input-wrapper input[type=time]:focus, |
| | | .field-input-wrapper input[type=datetime-local]:focus, |
| | | .field-input-wrapper input[type=date]:focus, |
| | | .time-wrapper input[type=time]:focus, |
| | | .datetime-wrapper input[type=datetime-local]:focus, |
| | | .date-wrapper input[type=date]:focus { |
| | |
| | | } |
| | | |
| | | /* Icon styling in form fields */ |
| | | .field-input-wrapper svg, |
| | | .time-wrapper svg, |
| | | .datetime-wrapper svg, |
| | | .date-wrapper svg { |
| | | width: 18px; |
| | | height: 18px; |
| | | color: #666; |
| | | color: var(--contrast); |
| | | opacity: .7; |
| | | } |
| | | |
| | |
| | | /* }*/ |
| | | /*}*/ |
| | | |
| | | legend { |
| | | padding: 0 1rem; |
| | | } |
| | | .abs { |
| | | position: absolute; |
| | | } |
| | | .top { |
| | | top: 0; |
| | | right: 0; |
| | | left: 0; |
| | | } |
| | | .top-right { |
| | | top: 0; |
| | | right: 0; |
| | | } |
| | | .top-left { |
| | | top: 0; |
| | | left: 0; |
| | | } |
| | | |
| | | .btm { |
| | | bottom: 0; |
| | | left: 0; |
| | | right: 0; |
| | | } |
| | | .btm-right { |
| | | bottom: 0; |
| | | right: 0; |
| | | } |
| | | .btm-left { |
| | | bottom: 0; |
| | | left: 0; |
| | | } |
| | | .edges { |
| | | top: 0; |
| | | right: 0; |
| | | left: 0; |
| | | bottom: 0; |
| | | } |
| | | |
| | | |
| | | |
| | | /*********************** REFERRAL SYSTEM ***********************/ |
| | | .referral-widget { |
| | | background: #fff; |
| | | border: 1px solid #ddd; |
| | | border-radius: 8px; |
| | | padding: 24px; |
| | | margin: 20px 0; |
| | | box-shadow: 0 2px 4px rgba(0,0,0,0.05); |
| | | } |
| | | |
| | | .referral-header { |
| | | text-align: center; |
| | | margin-bottom: 20px; |
| | | } |
| | | |
| | | .referral-header h3 { |
| | | margin: 0 0 8px 0; |
| | | color: #2271b1; |
| | | } |
| | | |
| | | .referral-header p { |
| | | margin: 0; |
| | | color: #666; |
| | | font-size: 14px; |
| | | } |
| | | |
| | | /* Share Widget Styles */ |
| | | .referral-link-section { |
| | | margin-bottom: 20px; |
| | | } |
| | | |
| | | .referral-link-section label { |
| | | display: block; |
| | | font-weight: 600; |
| | | margin-bottom: 8px; |
| | | color: #333; |
| | | } |
| | | |
| | | .link-copy-wrapper { |
| | | display: flex; |
| | | gap: 8px; |
| | | } |
| | | |
| | | .link-copy-wrapper input { |
| | | flex: 1; |
| | | padding: 10px 12px; |
| | | border: 1px solid #ddd; |
| | | border-radius: 4px; |
| | | font-family: monospace; |
| | | font-size: 13px; |
| | | background: #f9f9f9; |
| | | } |
| | | |
| | | .copy-link-btn { |
| | | padding: 10px 20px; |
| | | background: #2271b1; |
| | | color: #fff; |
| | | border: none; |
| | | border-radius: 4px; |
| | | cursor: pointer; |
| | | font-weight: 600; |
| | | white-space: nowrap; |
| | | transition: background 0.2s; |
| | | } |
| | | |
| | | .copy-link-btn:hover { |
| | | background: #135e96; |
| | | } |
| | | |
| | | .referral-code-display { |
| | | margin: 8px 0 0 0; |
| | | font-size: 13px; |
| | | color: #666; |
| | | } |
| | | |
| | | .referral-stats { |
| | | display: grid; |
| | | grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); |
| | | gap: 16px; |
| | | margin-bottom: 20px; |
| | | padding: 16px; |
| | | background: #f8f9fa; |
| | | border-radius: 6px; |
| | | } |
| | | |
| | | .stat-item { |
| | | text-align: center; |
| | | } |
| | | |
| | | .stat-value { |
| | | display: block; |
| | | font-size: 24px; |
| | | font-weight: bold; |
| | | color: #2271b1; |
| | | } |
| | | |
| | | .stat-label { |
| | | display: block; |
| | | font-size: 12px; |
| | | color: #666; |
| | | margin-top: 4px; |
| | | } |
| | | |
| | | .share-buttons { |
| | | display: flex; |
| | | gap: 10px; |
| | | justify-content: center; |
| | | flex-wrap: wrap; |
| | | } |
| | | |
| | | .share-btn { |
| | | display: inline-flex; |
| | | align-items: center; |
| | | gap: 6px; |
| | | padding: 10px 16px; |
| | | border: 1px solid #ddd; |
| | | border-radius: 4px; |
| | | text-decoration: none; |
| | | color: #333; |
| | | font-size: 14px; |
| | | font-weight: 500; |
| | | transition: all 0.2s; |
| | | } |
| | | |
| | | .share-btn:hover { |
| | | background: #f5f5f5; |
| | | border-color: #999; |
| | | } |
| | | |
| | | /* Validation Widget Styles */ |
| | | .form-group { |
| | | margin-bottom: 16px; |
| | | } |
| | | |
| | | .form-group label { |
| | | display: block; |
| | | font-weight: 600; |
| | | margin-bottom: 8px; |
| | | color: #333; |
| | | } |
| | | |
| | | .input-button-wrapper { |
| | | display: flex; |
| | | gap: 8px; |
| | | } |
| | | |
| | | .input-button-wrapper input { |
| | | flex: 1; |
| | | padding: 12px 16px; |
| | | border: 2px solid #ddd; |
| | | border-radius: 4px; |
| | | font-size: 16px; |
| | | font-family: monospace; |
| | | font-weight: 600; |
| | | text-transform: uppercase; |
| | | transition: border-color 0.2s; |
| | | } |
| | | |
| | | .input-button-wrapper input:focus { |
| | | outline: none; |
| | | border-color: #2271b1; |
| | | } |
| | | |
| | | .validate-btn { |
| | | padding: 12px 24px; |
| | | background: #2271b1; |
| | | color: #fff; |
| | | border: none; |
| | | border-radius: 4px; |
| | | cursor: pointer; |
| | | font-weight: 600; |
| | | white-space: nowrap; |
| | | transition: background 0.2s; |
| | | } |
| | | |
| | | .validate-btn:hover { |
| | | background: #135e96; |
| | | } |
| | | |
| | | .validate-btn:disabled { |
| | | background: #ccc; |
| | | cursor: not-allowed; |
| | | } |
| | | |
| | | .helper-text { |
| | | margin: 8px 0 0 0; |
| | | font-size: 13px; |
| | | color: #666; |
| | | } |
| | | |
| | | .helper-text a { |
| | | color: #2271b1; |
| | | text-decoration: none; |
| | | } |
| | | |
| | | .helper-text a:hover { |
| | | text-decoration: underline; |
| | | } |
| | | |
| | | .message { |
| | | padding: 12px 16px; |
| | | border-radius: 4px; |
| | | margin-top: 16px; |
| | | font-size: 14px; |
| | | } |
| | | |
| | | .message.success { |
| | | background: #d4edda; |
| | | color: #155724; |
| | | border: 1px solid #c3e6cb; |
| | | } |
| | | |
| | | .message.error { |
| | | background: #f8d7da; |
| | | color: #721c24; |
| | | border: 1px solid #f5c6cb; |
| | | } |
| | | |
| | | /* Success State Styles */ |
| | | .referral-success-state { |
| | | text-align: center; |
| | | } |
| | | |
| | | .success-icon { |
| | | width: 80px; |
| | | height: 80px; |
| | | margin: 0 auto 20px; |
| | | background: #28a745; |
| | | border-radius: 50%; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | color: #fff; |
| | | font-size: 40px; |
| | | } |
| | | |
| | | .success-content h3 { |
| | | color: #28a745; |
| | | margin: 0 0 12px 0; |
| | | } |
| | | |
| | | .reward-highlight { |
| | | background: #e7f5ff; |
| | | padding: 20px; |
| | | border-radius: 6px; |
| | | margin: 20px 0; |
| | | border-left: 4px solid #2271b1; |
| | | } |
| | | |
| | | .reward-highlight strong { |
| | | color: #2271b1; |
| | | font-size: 18px; |
| | | } |
| | | |
| | | .cta-button { |
| | | display: inline-block; |
| | | padding: 14px 32px; |
| | | background: #2271b1; |
| | | color: #fff; |
| | | text-decoration: none; |
| | | border-radius: 4px; |
| | | font-weight: 600; |
| | | margin-top: 16px; |
| | | transition: background 0.2s; |
| | | } |
| | | |
| | | .cta-button:hover { |
| | | background: #135e96; |
| | | } |
| | | |
| | | .referred-by { |
| | | margin-top: 16px; |
| | | padding-top: 16px; |
| | | border-top: 1px solid #ddd; |
| | | font-size: 13px; |
| | | color: #666; |
| | | } |
| | | |
| | | .loading-spinner { |
| | | display: inline-block; |
| | | width: 16px; |
| | | height: 16px; |
| | | border: 2px solid #f3f3f3; |
| | | border-top: 2px solid #2271b1; |
| | | border-radius: 50%; |
| | | animation: spin 1s linear infinite; |
| | | margin-left: 8px; |
| | | vertical-align: middle; |
| | | } |
| | | |
| | | @keyframes spin { |
| | | 0% { transform: rotate(0deg); } |
| | | 100% { transform: rotate(360deg); } |
| | | } |
| | | |
| | | /* Responsive */ |
| | | @media (max-width: 600px) { |
| | | .input-button-wrapper { |
| | | flex-direction: column; |
| | | } |
| | | |
| | | .validate-btn { |
| | | width: 100%; |
| | | } |
| | | |
| | | .link-copy-wrapper { |
| | | flex-direction: column; |
| | | } |
| | | |
| | | .copy-link-btn { |
| | | width: 100%; |
| | | } |
| | | } |