@tailwind base;
@tailwind components;
@tailwind utilities;
body, #root, .__perseus_content {
min-height: 100%;
min-width: 100%;
height: 100vh;
@apply bg-bg dark:bg-bgdark dark:text-white;
}
.section-container {
@apply pr-2 pb-2 xs:pr-8 xs:pb-8 sm:pr-12 sm:pb-12;
@apply pl-2 pt-2;
}
.section-content {
@apply pl-2 xs:pl-8 sm:pl-12;
@apply pt-1 xs:pt-4 sm:pt-6;
}
.custom-input {
@apply relative flex flex-col text-left cursor-text;
min-width: 15ch;
}
.custom-input input:not([type="checkbox"]),
.custom-input textarea,
.custom-input select {
@apply appearance-none pt-5;
}
.custom-input span:nth-child(2) {
@apply absolute pl-2 top-0 left-0 w-full flex items-center bg-transparent text-neutral-500 dark:text-neutral-400 max-w-max;
@apply transition-all duration-200 ease-in-out;
}
.custom-input span.input-required:nth-child(2)::after,
.switch span.input-required:nth-child(1)::after {
content: '*';
@apply ml-[0.1rem] text-red-500 dark:text-red-400;
}
.custom-input:before {
content: '';
@apply absolute bg-bg dark:bg-bgdark h-6 w-full pl-1 pr-[14px] pt-[1px] rounded-lg bg-clip-content top-[1px] left-[1px];
}
.custom-input input + span:nth-child(2),
.custom-input div.select-wrapper + span:nth-child(2) { @apply h-full }
.custom-input textarea + span:nth-child(2),
.custom-input div.select-multiple + span:nth-child(2) { height: 3.25rem }
.custom-input input:focus + span:nth-child(2),
.custom-input input:not(:placeholder-shown) + span:nth-child(2),
.custom-input textarea:focus + span:nth-child(2),
.custom-input textarea:not(:placeholder-shown) + span:nth-child(2),
.custom-input div.select-wrapper:focus-within + span:nth-child(2),
.custom-input div.select-wrapper.no-placeholder + span:nth-child(2),
.custom-input div.select-multiple + span:nth-child(2) {
@apply pb-6 text-sm;
}
.custom-input + label,
.switch + label {
@apply text-red-600 dark:text-red-400 text-sm;
}
input:not([type="checkbox"]), textarea {
@apply rounded-lg focus:outline-none border focus:border-2 border-primary p-1 xs:p-2 bg-bg dark:bg-bgdark;
}
select {
@apply appearance-none bg-transparent border-0 p-2 m-0 w-full outline-none;
line-height: inherit;
cursor: inherit;
grid-area: select;
}
div.select-wrapper {
@apply border border-primary p-0 leading-none cursor-pointer grid items-center rounded-md z-10;
min-width: 15ch;
grid-template-areas: "select";
}
div.select-wrapper:not(div.select-multiple)::after {
@apply bg-primary dark:bg-light w-3 h-2 justify-self-end mr-1;
content: "";
clip-path: polygon(50% 100%, 0 0, 100% 0);
grid-area: select;
}
.switch input {
@apply appearance-none;
}
.switch {
@apply flex items-center p-2;
}
.switch span:nth-child(3) {
@apply w-10 h-6 flex items-center flex-shrink-0 ml-4 p-1 bg-neutral-300 dark:bg-neutral-500 rounded-full;
@apply transition-all duration-200 ease-in-out;
@apply after:w-4 after:h-4 after:bg-bg dark:after:bg-bgdark after:rounded-full after:shadow-md;
@apply after:transition-all after:duration-200 after:ease-in-out;
}
.switch input:checked + span:nth-child(3) {
@apply bg-primary dark:bg-light;
@apply after:translate-x-4;
}
.markdown > * + *,
.markdown li + li,
.markdown li > p + p {
@apply mt-2;
}
.markdown stong,
.markdown bold {
@apply font-black;
}
.markdown a {
@apply text-primary dark:text-lighter hover:text-dark dark:hover:text-lightest transition-colors duration-200 underline;
@apply hover:drop-shadow-lg dark:hover:drop-shadow-xl;
}
.markdown h1 {
@apply text-4xl mt-2;
}
.markdown h2 {
@apply text-3xl;
}
.markdown h3 {
@apply text-2xl;
}
.markdown h4 {
@apply text-xl
}
.markdown h5 {
@apply text-lg;
}
.markdown h6 {
@apply leading-tight;
}
.markdown :not(pre) code {
@apply rounded-lg p-1 bg-neutral-200 dark:bg-neutral-700;
}
.markdown pre {
@apply rounded-lg overflow-x-auto;
}
.markdown blockquote {
@apply pl-4 italic border-l-4;
}
.markdown ul {
@apply list-disc pl-5 sm:pl-10;
}
.markdown ol {
@apply list-decimal pl-5 sm:pl-10;
}
.markdown details :not(summary) {
@apply ml-6;
}