@tailwind base; @tailwind components; @tailwind utilities; * { @apply box-border scroll-m-[40vh] scroll-smooth font-body font-medium; } h1, h2, h3, h4, h5, h6 { @apply font-headers font-black; } a { @apply cursor-pointer underline decoration-dark decoration-dotted underline-offset-2 transition-colors hover:text-dark; } *::selection { @apply bg-dark text-light; } mark { @apply bg-mid px-2; } /* SCROLLBARS STYLING */ * { @apply [scrollbar-color:theme(colors.dark/1)_transparent] [scrollbar-width:thin]; } *::-webkit-scrollbar { @apply w-3; } *::-webkit-scrollbar-track { @apply bg-light; } *::-webkit-scrollbar-thumb { @apply rounded-full border-[3px] border-solid border-light bg-dark; } /* CHANGE FORMATTED DEFAULTS */ .formatted h1, .formatted h2, .formatted h3, .formatted h4, .formatted h5, .formatted h6 { @apply flex justify-center gap-3 text-center; } .formatted h1 { @apply my-16 text-4xl; } .formatted h1 + h2 { @apply -mt-10; } .formatted h2 { @apply my-12 text-3xl; } .formatted h2 + h3 { @apply -mt-8; } .formatted h3 { @apply my-8 text-2xl; } .formatted h3 + h4 { @apply -mt-6; } .formatted h4 { @apply my-6 text-xl; } .formatted h5 { @apply my-4 text-lg; } .formatted p, .formatted strong { @apply my-2 text-justify; } .formatted strong { @apply font-black; } .formatted footer { @apply border-t-[3px] border-dotted pt-6; } .formatted footer > div { @apply my-2 rounded-xl px-6 py-4; } .formatted footer > div:target { @apply bg-mid shadow-inner-sm shadow-shade; } .formatted li::marker { @apply text-dark; } .formatted code { @apply font-mono; } .formatted pre > code { @apply block whitespace-pre-line; } .formatted ul { @apply list-disc pl-4; } .formatted ol { @apply list-decimal pl-4; } .formatted blockquote { @apply my-8 rounded-lg border-2 border-mid p-5 text-center; } .formatted blockquote cite { @apply block text-dark; } /* INPUT */ input, textarea { @apply rounded-full bg-light p-2 text-center text-dark outline outline-2 outline-offset-[-2px] outline-mid transition-all placeholder:text-dark placeholder:opacity-60 hover:bg-mid hover:outline-[transparent]; } input::placeholder { @apply text-dark opacity-60; } input:focus-visible, textarea:focus-within { @apply bg-mid shadow-inner-sm shadow-shade outline-none; } textarea { @apply rounded-2xl p-6 text-left; } input[type="submit"] { @apply grid cursor-pointer place-content-center place-items-center rounded-full border-[1px] border-dark px-4 pt-[0.4rem] pb-[0.5rem] text-dark outline-none transition-all hover:bg-dark hover:text-light hover:drop-shadow-shade-lg active:border-black active:bg-black active:text-light active:drop-shadow-black-lg; } .texture-paper-dots { @apply bg-[length:10cm] bg-local [background-image:var(--theme-texture-dots)] [background-blend-mode:var(--theme-texture-dots-blend)]; } /* ANIMATION */ .animation-carret { animation-name: blink; animation-duration: 1s; animation-timing-function: step-end; animation-iteration-count: infinite; } .animate-zoom-in { animation-name: zoom-in; animation-duration: 2s; animation-timing-function: ease-in-out; animation-iteration-count: 1; } @keyframes zoom-in { 0% { transform: scale(0); } 100% { transform: scale(1); } } @keyframes blink { from, to { border-bottom-style: solid; } 50% { border-bottom-style: none; } } /* DEBUGGING */ .false { @apply border-2 border-[red] text-[red] outline-dotted outline-2 outline-[red]; } .undefined { @apply border-2 border-[green] text-[green] outline-dotted outline-2 outline-[green]; } .null { @apply border-2 border-[blue] text-[blue] outline-dotted outline-2 outline-[blue]; } /* TIPPY */ .tippy-box[data-animation="fade"][data-state="hidden"] { @apply opacity-0; } [data-tippy-root] { max-width: calc(100vw - 10px); } .tippy-box { @apply relative rounded-lg bg-light transition-[transform,_visibility,_opacity] drop-shadow-shade-xl; } .tippy-box[data-placement^="top"] > .tippy-arrow { @apply bottom-0; } .tippy-box[data-placement^="top"] > .tippy-arrow:before { bottom: -7px; left: 0; border-width: 8px 8px 0; border-top-color: initial; transform-origin: center top; } .tippy-box[data-placement^="bottom"] > .tippy-arrow { top: 0; } .tippy-box[data-placement^="bottom"] > .tippy-arrow:before { top: -7px; left: 0; border-width: 0 8px 8px; border-bottom-color: initial; transform-origin: center bottom; } .tippy-box[data-placement^="left"] > .tippy-arrow { right: 0; } .tippy-box[data-placement^="left"] > .tippy-arrow:before { border-width: 8px 0 8px 8px; border-left-color: initial; right: -7px; transform-origin: center left; } .tippy-box[data-placement^="right"] > .tippy-arrow { left: 0; } .tippy-box[data-placement^="right"] > .tippy-arrow:before { left: -7px; border-width: 8px 8px 8px 0; border-right-color: initial; transform-origin: center right; } .tippy-box[data-inertia][data-state="visible"] { transition-timing-function: cubic-bezier(0.54, 1.5, 0.38, 1.11); } .tippy-arrow { @apply h-4 w-4 text-light; } .tippy-arrow:before { content: ""; position: absolute; border-color: transparent; border-style: solid; } .tippy-content { @apply relative z-10 px-6 py-4; } /* RC SLIDER */ .rc-slider { position: relative; width: 100%; height: 14px; padding: 5px 0; border-radius: 6px; touch-action: none; box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .rc-slider * { box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .rc-slider-rail { @apply h-2 rounded-full bg-mid/80; position: absolute; width: 100%; } .rc-slider-track { @apply h-2 rounded-full bg-mid bg-dark/20 shadow-inner-sm shadow-shade; position: absolute; } .rc-slider-handle { @apply h-4 w-4 -mt-1 rounded-full bg-dark transition-shadow; position: absolute; cursor: grab; touch-action: pan-x; } .rc-slider-handle-dragging.rc-slider-handle-dragging.rc-slider-handle-dragging { @apply shadow-sm shadow-shade; } .rc-slider-mark { position: absolute; top: 18px; left: 0; width: 100%; font-size: 12px; } .rc-slider-mark-text { position: absolute; display: inline-block; color: #999; text-align: center; vertical-align: middle; cursor: pointer; } .rc-slider-mark-text-active { color: #666; } .rc-slider-step { position: absolute; width: 100%; height: 4px; background: transparent; pointer-events: none; } .rc-slider-dot { position: absolute; bottom: -2px; width: 8px; height: 8px; vertical-align: middle; background-color: #fff; border: 2px solid #e9e9e9; border-radius: 50%; cursor: pointer; } .rc-slider-dot-active { border-color: #96dbfa; } .rc-slider-dot-reverse { margin-right: -4px; } .rc-slider-disabled { background-color: #e9e9e9; } .rc-slider-disabled .rc-slider-track { background-color: #ccc; } .rc-slider-disabled .rc-slider-handle, .rc-slider-disabled .rc-slider-dot { background-color: #fff; border-color: #ccc; box-shadow: none; cursor: not-allowed; } .rc-slider-disabled .rc-slider-mark-text, .rc-slider-disabled .rc-slider-dot { cursor: not-allowed !important; } .rc-slider-vertical { width: 14px; height: 100%; padding: 0 5px; } .rc-slider-vertical .rc-slider-rail { width: 4px; height: 100%; } .rc-slider-vertical .rc-slider-track { bottom: 0; left: 5px; width: 4px; } .rc-slider-vertical .rc-slider-handle { margin-top: 0; margin-left: -5px; touch-action: pan-y; } .rc-slider-vertical .rc-slider-mark { top: 0; left: 18px; height: 100%; } .rc-slider-vertical .rc-slider-step { width: 4px; height: 100%; } .rc-slider-vertical .rc-slider-dot { margin-left: -2px; } .rc-slider-tooltip-zoom-down-enter, .rc-slider-tooltip-zoom-down-appear { display: block !important; animation-duration: 0.3s; animation-fill-mode: both; animation-play-state: paused; } .rc-slider-tooltip-zoom-down-leave { display: block !important; animation-duration: 0.3s; animation-fill-mode: both; animation-play-state: paused; } .rc-slider-tooltip-zoom-down-enter.rc-slider-tooltip-zoom-down-enter-active, .rc-slider-tooltip-zoom-down-appear.rc-slider-tooltip-zoom-down-appear-active { animation-name: rcSliderTooltipZoomDownIn; animation-play-state: running; } .rc-slider-tooltip-zoom-down-leave.rc-slider-tooltip-zoom-down-leave-active { animation-name: rcSliderTooltipZoomDownOut; animation-play-state: running; } .rc-slider-tooltip-zoom-down-enter, .rc-slider-tooltip-zoom-down-appear { transform: scale(0, 0); animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1); } .rc-slider-tooltip-zoom-down-leave { animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06); } @keyframes rcSliderTooltipZoomDownIn { 0% { transform: scale(0, 0); transform-origin: 50% 100%; opacity: 0; } 100% { transform: scale(1, 1); transform-origin: 50% 100%; } } @keyframes rcSliderTooltipZoomDownOut { 0% { transform: scale(1, 1); transform-origin: 50% 100%; } 100% { transform: scale(0, 0); transform-origin: 50% 100%; opacity: 0; } } .rc-slider-tooltip { position: absolute; top: -9999px; left: -9999px; visibility: visible; box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .rc-slider-tooltip * { box-sizing: border-box; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .rc-slider-tooltip-hidden { display: none; } .rc-slider-tooltip-placement-top { padding: 4px 0 8px 0; } .rc-slider-tooltip-inner { min-width: 24px; height: 24px; padding: 6px 2px; color: #fff; font-size: 12px; line-height: 1; text-align: center; text-decoration: none; background-color: #6c6c6c; border-radius: 6px; box-shadow: 0 0 4px #d9d9d9; } .rc-slider-tooltip-arrow { position: absolute; width: 0; height: 0; border-color: transparent; border-style: solid; } .rc-slider-tooltip-placement-top .rc-slider-tooltip-arrow { bottom: 4px; left: 50%; margin-left: -4px; border-width: 4px 4px 0; border-top-color: #6c6c6c; }