From 172da9e0ffbdcd04eb2e0cbe42f47e82705e2daf Mon Sep 17 00:00:00 2001 From: nahbee10 Date: Wed, 6 Nov 2024 22:34:52 -0500 Subject: [PATCH] apply more --- assets/tailwind-output.css | 100 +++++++++++++++++++++++++++++++-- styles/main.css | 17 +++++- templates/new_request_page.hbs | 21 +------ templates/search_results.hbs | 88 +++++++++++++++++++---------- 4 files changed, 169 insertions(+), 57 deletions(-) diff --git a/assets/tailwind-output.css b/assets/tailwind-output.css index 34ab4f2a8..e7b8a89e2 100644 --- a/assets/tailwind-output.css +++ b/assets/tailwind-output.css @@ -845,12 +845,12 @@ video { margin-top: 2rem; } -.mt-\[1\.875rem\] { - margin-top: 1.875rem; +.mt-\[1\.5rem\] { + margin-top: 1.5rem; } -.mt-\[1\.94rem\] { - margin-top: 1.94rem; +.mt-\[1\.875rem\] { + margin-top: 1.875rem; } .mt-margin-mobile { @@ -1665,6 +1665,11 @@ video { padding-right: 1rem; } +.px-\[1\.63rem\] { + padding-left: 1.63rem; + padding-right: 1.63rem; +} + .px-gap-large { padding-left: 1rem; padding-right: 1rem; @@ -3267,7 +3272,7 @@ html:has(.ArticlePage) { padding-right: 0.75rem !important; } -.search.search-full { +.search { width: 100%; flex-grow: 1; input { @@ -3276,6 +3281,10 @@ html:has(.ArticlePage) { input { background-color: transparent !important; } + input { + --tw-text-opacity: 1; + color: rgb(125 125 125 / var(--tw-text-opacity)); + } input { font-family: var(--font-basel-grotesk) !important; font-size: 0.875rem !important; @@ -3291,6 +3300,61 @@ html:has(.ArticlePage) { outline: 2px solid transparent !important; outline-offset: 2px !important; } + input:where(.dark, .dark *) { + --tw-text-opacity: 1; + color: rgb(155 155 155 / var(--tw-text-opacity)); + } +} + +.filters-in-section { + display: flex; + flex-direction: column; +} + +.filters-in-section > :not([hidden]) ~ :not([hidden]) { + --tw-space-y-reverse: 0; + margin-top: calc(1.5rem * calc(1 - var(--tw-space-y-reverse))); + margin-bottom: calc(1.5rem * var(--tw-space-y-reverse)); +} + +.filters-in-section { + .sidenav-item { + --tw-text-opacity: 1; + color: rgb(34 34 34 / var(--tw-text-opacity)); + } + .sidenav-item { + font-family: var(--font-basel-grotesk) !important; + font-size: 0.875rem !important; + font-weight: 485 !important; + line-height: 1/25rem !important; + -webkit-font-smoothing: antialiased !important; + -moz-osx-font-smoothing: grayscale !important; + } + .sidenav-item:hover { + --tw-text-opacity: 1; + color: rgb(245 13 180 / var(--tw-text-opacity)); + } + .sidenav-item:where(.dark, .dark *) { + --tw-text-opacity: 1; + color: rgb(255 255 255 / var(--tw-text-opacity)); + } + .sidenav-item:hover:where(.dark, .dark *) { + --tw-text-opacity: 1; + color: rgb(252 116 254 / var(--tw-text-opacity)); + } +} + +.search-result-description { + em { + --tw-bg-opacity: 1; + background-color: rgb(252 116 254 / var(--tw-bg-opacity)); + } + em { + padding: 1px !important; + } + em { + font-style: normal !important; + } } .placeholder\:text-light-pink-vibrant::-moz-placeholder { @@ -3315,6 +3379,10 @@ html:has(.ArticlePage) { margin-top: 1.5rem; } +.last\:hidden:last-child { + display: none; +} + .focus-within\:\!border-light-surface-3:focus-within { border-color: rgba(34,34,34,0.05) !important; } @@ -3391,6 +3459,16 @@ html:has(.ArticlePage) { color: rgb(245 13 180 / var(--tw-text-opacity)); } +.hover\:text-light-neutral-1:hover { + --tw-text-opacity: 1; + color: rgb(34 34 34 / var(--tw-text-opacity)); +} + +.hover\:text-light-neutral-2:hover { + --tw-text-opacity: 1; + color: rgb(125 125 125 / var(--tw-text-opacity)); +} + .hover\:text-light-pink-vibrant:hover { --tw-text-opacity: 1; color: rgb(245 13 180 / var(--tw-text-opacity)); @@ -3922,6 +4000,16 @@ html:has(.ArticlePage) { color: rgb(252 116 254 / var(--tw-text-opacity)); } +.hover\:dark\:text-dark-neutral-1:where(.dark, .dark *):hover { + --tw-text-opacity: 1; + color: rgb(255 255 255 / var(--tw-text-opacity)); +} + +.hover\:dark\:text-dark-neutral-2:where(.dark, .dark *):hover { + --tw-text-opacity: 1; + color: rgb(155 155 155 / var(--tw-text-opacity)); +} + .group:hover .group-hover\:dark\:fill-dark-accent-1:where(.dark, .dark *) { fill: #FC74FE; } @@ -3972,4 +4060,4 @@ html:has(.ArticlePage) { .dark\:data-\[active\]\:text-dark-neutral-1[data-active]:where(.dark, .dark *) { --tw-text-opacity: 1; color: rgb(255 255 255 / var(--tw-text-opacity)); -} +} \ No newline at end of file diff --git a/styles/main.css b/styles/main.css index 3ca2dc7be..246b17fa4 100644 --- a/styles/main.css +++ b/styles/main.css @@ -334,9 +334,22 @@ html:has(.ArticlePage) { @apply !px-3; } -.search.search-full { +.search { @apply w-full grow; input { - @apply !body-3 !bg-transparent w-full focus-visible:!border-none focus-visible:!outline-none; + @apply !body-3 !bg-transparent w-full focus-visible:!border-none focus-visible:!outline-none dark:text-dark-neutral-2 text-light-neutral-2; } } + +.filters-in-section { + @apply flex flex-col space-y-6; + .sidenav-item { + @apply !body-3 dark:text-dark-neutral-1 text-light-neutral-1 hover:text-light-accent-1 dark:hover:text-dark-accent-1; + } +} + +.search-result-description { + em { + @apply bg-dark-accent-1 !p-px !not-italic; + } +} \ No newline at end of file diff --git a/templates/new_request_page.hbs b/templates/new_request_page.hbs index 50b81dbf8..619c1b173 100644 --- a/templates/new_request_page.hbs +++ b/templates/new_request_page.hbs @@ -3,7 +3,7 @@
- + Home @@ -19,11 +19,11 @@ fill-rule="evenodd" clip-rule="evenodd" d="M5.52827 3.52827C5.26792 3.78862 5.26792 4.21073 5.52827 4.47108L9.05687 7.99967L5.52827 11.5283C5.26792 11.7886 5.26792 12.2107 5.52827 12.4711C5.78862 12.7314 6.21073 12.7314 6.47108 12.4711L10.4711 8.47108C10.7314 8.21073 10.7314 7.78862 10.4711 7.52827L6.47108 3.52827C6.21073 3.26792 5.78862 3.26792 5.52827 3.52827Z" - class="fill-light-neutral-1 dark:fill-dark-neutral-1" + class="fill-light-neutral-2 dark:fill-dark-neutral-2" /> - + Submit a Request @@ -37,21 +37,6 @@
-{{!-- --}}