From 56ecdf03a68d2248020cd863f336dc59d80956c8 Mon Sep 17 00:00:00 2001 From: Corban-Lee Jones Date: Thu, 30 Jan 2025 11:01:36 +0000 Subject: [PATCH] style changes (wider screen) --- src/client/public/css/main.css | 10 +- src/client/public/css/tailwind.css | 404 ++++++++++++++++++++++++- src/client/views/guild/guildHeader.ejs | 6 +- src/client/views/guild/overview.ejs | 2 +- src/client/views/sidebar.ejs | 6 +- 5 files changed, 413 insertions(+), 15 deletions(-) diff --git a/src/client/public/css/main.css b/src/client/public/css/main.css index d373a05..90c251b 100644 --- a/src/client/public/css/main.css +++ b/src/client/public/css/main.css @@ -166,7 +166,15 @@ hs-accordion-toggle w-full text-start flex items-center gap-x-3.5 py-2 px-2.5 te /* Guild Header */ .guild-header-btn { - @apply text-sm text-gray-800 hover:text-blue-600 focus:outline-none focus:text-blue-600 dark:text-neutral-200 dark:hover:text-blue-500 dark:focus:text-blue-500; + @apply + text-sm + text-gray-800 + hover:text-blue-600 + focus:outline-none + focus:text-blue-600 + dark:text-neutral-200 + dark:hover:text-blue-500 + dark:focus:text-blue-500; } .guild-header-btn.active { diff --git a/src/client/public/css/tailwind.css b/src/client/public/css/tailwind.css index f827bd2..ab4cb13 100644 --- a/src/client/public/css/tailwind.css +++ b/src/client/public/css/tailwind.css @@ -554,6 +554,201 @@ video { display: none; } +[type='text'],input:where(:not([type])),[type='email'],[type='url'],[type='password'],[type='number'],[type='date'],[type='datetime-local'],[type='month'],[type='search'],[type='tel'],[type='time'],[type='week'],[multiple],textarea,select { + -webkit-appearance: none; + -moz-appearance: none; + appearance: none; + background-color: #fff; + border-color: #6b7280; + border-width: 1px; + border-radius: 0px; + padding-top: 0.5rem; + padding-right: 0.75rem; + padding-bottom: 0.5rem; + padding-left: 0.75rem; + font-size: 1rem; + line-height: 1.5rem; + --tw-shadow: 0 0 #0000; +} + +[type='text']:focus, input:where(:not([type])):focus, [type='email']:focus, [type='url']:focus, [type='password']:focus, [type='number']:focus, [type='date']:focus, [type='datetime-local']:focus, [type='month']:focus, [type='search']:focus, [type='tel']:focus, [type='time']:focus, [type='week']:focus, [multiple]:focus, textarea:focus, select:focus { + outline: 2px solid transparent; + outline-offset: 2px; + --tw-ring-inset: var(--tw-empty,/*!*/ /*!*/); + --tw-ring-offset-width: 0px; + --tw-ring-offset-color: #fff; + --tw-ring-color: #2563eb; + --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color); + --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color); + box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow); + border-color: #2563eb; +} + +input::-moz-placeholder, textarea::-moz-placeholder { + color: #6b7280; + opacity: 1; +} + +input::placeholder,textarea::placeholder { + color: #6b7280; + opacity: 1; +} + +::-webkit-datetime-edit-fields-wrapper { + padding: 0; +} + +::-webkit-date-and-time-value { + min-height: 1.5em; + text-align: inherit; +} + +::-webkit-datetime-edit { + display: inline-flex; +} + +::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field { + padding-top: 0; + padding-bottom: 0; +} + +select { + background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e"); + background-position: right 0.5rem center; + background-repeat: no-repeat; + background-size: 1.5em 1.5em; + padding-right: 2.5rem; + -webkit-print-color-adjust: exact; + print-color-adjust: exact; +} + +[multiple],[size]:where(select:not([size="1"])) { + background-image: initial; + background-position: initial; + background-repeat: unset; + background-size: initial; + padding-right: 0.75rem; + -webkit-print-color-adjust: unset; + print-color-adjust: unset; +} + +[type='checkbox'],[type='radio'] { + -webkit-appearance: none; + -moz-appearance: none; + appearance: none; + padding: 0; + -webkit-print-color-adjust: exact; + print-color-adjust: exact; + display: inline-block; + vertical-align: middle; + background-origin: border-box; + -webkit-user-select: none; + -moz-user-select: none; + user-select: none; + flex-shrink: 0; + height: 1rem; + width: 1rem; + color: #2563eb; + background-color: #fff; + border-color: #6b7280; + border-width: 1px; + --tw-shadow: 0 0 #0000; +} + +[type='checkbox'] { + border-radius: 0px; +} + +[type='radio'] { + border-radius: 100%; +} + +[type='checkbox']:focus,[type='radio']:focus { + outline: 2px solid transparent; + outline-offset: 2px; + --tw-ring-inset: var(--tw-empty,/*!*/ /*!*/); + --tw-ring-offset-width: 2px; + --tw-ring-offset-color: #fff; + --tw-ring-color: #2563eb; + --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color); + --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color); + box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow); +} + +[type='checkbox']:checked,[type='radio']:checked { + border-color: transparent; + background-color: currentColor; + background-size: 100% 100%; + background-position: center; + background-repeat: no-repeat; +} + +[type='checkbox']:checked { + background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e"); +} + +@media (forced-colors: active) { + [type='checkbox']:checked { + -webkit-appearance: auto; + -moz-appearance: auto; + appearance: auto; + } +} + +[type='radio']:checked { + background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e"); +} + +@media (forced-colors: active) { + [type='radio']:checked { + -webkit-appearance: auto; + -moz-appearance: auto; + appearance: auto; + } +} + +[type='checkbox']:checked:hover,[type='checkbox']:checked:focus,[type='radio']:checked:hover,[type='radio']:checked:focus { + border-color: transparent; + background-color: currentColor; +} + +[type='checkbox']:indeterminate { + background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e"); + border-color: transparent; + background-color: currentColor; + background-size: 100% 100%; + background-position: center; + background-repeat: no-repeat; +} + +@media (forced-colors: active) { + [type='checkbox']:indeterminate { + -webkit-appearance: auto; + -moz-appearance: auto; + appearance: auto; + } +} + +[type='checkbox']:indeterminate:hover,[type='checkbox']:indeterminate:focus { + border-color: transparent; + background-color: currentColor; +} + +[type='file'] { + background: unset; + border-color: inherit; + border-width: 0; + border-radius: 0; + padding: 0; + font-size: unset; + line-height: inherit; +} + +[type='file']:focus { + outline: 1px solid ButtonText; + outline: 1px auto -webkit-focus-ring-color; +} + .container { width: 100%; } @@ -682,6 +877,10 @@ video { z-index: 60; } +.-m-1\.5 { + margin: -0.375rem; +} + .mx-1 { margin-left: 0.25rem; margin-right: 0.25rem; @@ -739,6 +938,10 @@ video { margin-left: 0.5rem; } +.ml-\[1px\] { + margin-left: 1px; +} + .ml-auto { margin-left: auto; } @@ -763,6 +966,10 @@ video { margin-inline-start: auto; } +.mt-0\.5 { + margin-top: 0.125rem; +} + .mt-1 { margin-top: 0.25rem; } @@ -878,9 +1085,14 @@ video { height: 46px; } -.size-\[50px\] { - width: 50px; - height: 50px; +.size-\[60px\] { + width: 60px; + height: 60px; +} + +.size-px { + width: 1px; + height: 1px; } .\!h-2\.5 { @@ -903,6 +1115,10 @@ video { height: 100%; } +.h-px { + height: 1px; +} + .h-screen { height: 100vh; } @@ -931,6 +1147,14 @@ video { width: 15rem; } +.w-72 { + width: 18rem; +} + +.w-\[100rem\] { + width: 100rem; +} + .w-\[260px\] { width: 260px; } @@ -947,16 +1171,28 @@ video { width: 100%; } +.min-w-48 { + min-width: 12rem; +} + .min-w-60 { min-width: 15rem; } -.max-w-\[300px\] { - max-width: 300px; +.min-w-72 { + min-width: 18rem; } -.max-w-\[85rem\] { - max-width: 85rem; +.min-w-full { + min-width: 100%; +} + +.max-w-\[100rem\] { + max-width: 100rem; +} + +.max-w-\[300px\] { + max-width: 300px; } .max-w-full { @@ -967,6 +1203,10 @@ video { max-width: 28rem; } +.max-w-sm { + max-width: 24rem; +} + .flex-none { flex: none; } @@ -1054,6 +1294,10 @@ video { gap: 0.25rem; } +.gap-3 { + gap: 0.75rem; +} + .gap-4 { gap: 1rem; } @@ -1099,12 +1343,29 @@ video { margin-bottom: calc(0.25rem * var(--tw-space-y-reverse)); } +.space-y-3 > :not([hidden]) ~ :not([hidden]) { + --tw-space-y-reverse: 0; + margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse))); + margin-bottom: calc(0.75rem * var(--tw-space-y-reverse)); +} + .space-y-4 > :not([hidden]) ~ :not([hidden]) { --tw-space-y-reverse: 0; margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse))); margin-bottom: calc(1rem * var(--tw-space-y-reverse)); } +.divide-y > :not([hidden]) ~ :not([hidden]) { + --tw-divide-y-reverse: 0; + border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse))); + border-bottom-width: calc(1px * var(--tw-divide-y-reverse)); +} + +.divide-gray-200 > :not([hidden]) ~ :not([hidden]) { + --tw-divide-opacity: 1; + border-color: rgb(229 231 235 / var(--tw-divide-opacity, 1)); +} + .self-center { align-self: center; } @@ -1135,6 +1396,10 @@ video { white-space: nowrap; } +.text-nowrap { + text-wrap: nowrap; +} + .\!rounded-sm { border-radius: 0.125rem !important; } @@ -1189,6 +1454,10 @@ video { border-inline-end-width: 1px; } +.border-s { + border-inline-start-width: 1px; +} + .border-t { border-top-width: 1px; } @@ -1244,6 +1513,11 @@ video { background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1)); } +.bg-gray-50 { + --tw-bg-opacity: 1; + background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1)); +} + .bg-gray-900 { --tw-bg-opacity: 1; background-color: rgb(17 24 39 / var(--tw-bg-opacity, 1)); @@ -1254,6 +1528,11 @@ video { background-color: rgb(245 245 245 / var(--tw-bg-opacity, 1)); } +.bg-teal-100 { + --tw-bg-opacity: 1; + background-color: rgb(204 251 241 / var(--tw-bg-opacity, 1)); +} + .bg-white { --tw-bg-opacity: 1; background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1)); @@ -1295,11 +1574,20 @@ video { padding: 1rem; } +.p-6 { + padding: 1.5rem; +} + .\!py-0\.5 { padding-top: 0.125rem !important; padding-bottom: 0.125rem !important; } +.px-1\.5 { + padding-left: 0.375rem; + padding-right: 0.375rem; +} + .px-2 { padding-left: 0.5rem; padding-right: 0.5rem; @@ -1355,6 +1643,11 @@ video { padding-bottom: 0.75rem; } +.py-4 { + padding-top: 1rem; + padding-bottom: 1rem; +} + .pb-1 { padding-bottom: 0.25rem; } @@ -1371,14 +1664,34 @@ video { padding-inline-end: 0.75rem; } +.pe-9 { + padding-inline-end: 2.25rem; +} + .ps-10 { padding-inline-start: 2.5rem; } +.ps-11 { + padding-inline-start: 2.75rem; +} + +.ps-2 { + padding-inline-start: 0.5rem; +} + .ps-3\.5 { padding-inline-start: 0.875rem; } +.ps-4 { + padding-inline-start: 1rem; +} + +.ps-6 { + padding-inline-start: 1.5rem; +} + .ps-8 { padding-inline-start: 2rem; } @@ -1403,6 +1716,14 @@ video { text-align: end; } +.align-top { + vertical-align: top; +} + +.align-middle { + vertical-align: middle; +} + .align-bottom { vertical-align: bottom; } @@ -1526,6 +1847,11 @@ video { color: rgb(220 38 38 / var(--tw-text-opacity, 1)); } +.text-teal-800 { + --tw-text-opacity: 1; + color: rgb(17 94 89 / var(--tw-text-opacity, 1)); +} + .text-white { --tw-text-opacity: 1; color: rgb(255 255 255 / var(--tw-text-opacity, 1)); @@ -2006,6 +2332,11 @@ hs-accordion-toggle w-full text-start flex items-center gap-x-3.5 py-2 px-2.5 te border-color: rgb(59 130 246 / var(--tw-border-opacity, 1)); } +.focus\:bg-blue-700:focus { + --tw-bg-opacity: 1; + background-color: rgb(29 78 216 / var(--tw-bg-opacity, 1)); +} + .focus\:bg-gray-100:focus { --tw-bg-opacity: 1; background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1)); @@ -2225,10 +2556,22 @@ hs-accordion-toggle w-full text-start flex items-center gap-x-3.5 py-2 px-2.5 te } @media (min-width: 640px) { + .sm\:col-span-1 { + grid-column: span 1 / span 1; + } + + .sm\:col-span-2 { + grid-column: span 2 / span 2; + } + .sm\:block { display: block; } + .sm\:inline { + display: inline; + } + .sm\:flex { display: flex; } @@ -2299,6 +2642,11 @@ hs-accordion-toggle w-full text-start flex items-center gap-x-3.5 py-2 px-2.5 te padding-bottom: 0px; } + .sm\:py-5 { + padding-top: 1.25rem; + padding-bottom: 1.25rem; + } + .sm\:text-2xl { font-size: 1.5rem; line-height: 2rem; @@ -2314,6 +2662,10 @@ hs-accordion-toggle w-full text-start flex items-center gap-x-3.5 py-2 px-2.5 te display: none; } + .md\:grow { + flex-grow: 1; + } + .md\:flex-nowrap { flex-wrap: nowrap; } @@ -2441,6 +2793,10 @@ hs-accordion-toggle w-full text-start flex items-center gap-x-3.5 py-2 px-2.5 te background-color: rgb(23 23 23 / var(--tw-bg-opacity, 1)); } +.dark\:bg-teal-500\/10:where(.dark, .dark *) { + background-color: rgb(20 184 166 / 0.1); +} + .dark\:bg-opacity-80:where(.dark, .dark *) { --tw-bg-opacity: 0.8; } @@ -2457,6 +2813,11 @@ hs-accordion-toggle w-full text-start flex items-center gap-x-3.5 py-2 px-2.5 te stroke: #fff; } +.dark\:text-blue-400:where(.dark, .dark *) { + --tw-text-opacity: 1; + color: rgb(96 165 250 / var(--tw-text-opacity, 1)); +} + .dark\:text-blue-500:where(.dark, .dark *) { --tw-text-opacity: 1; color: rgb(59 130 246 / var(--tw-text-opacity, 1)); @@ -2487,6 +2848,11 @@ hs-accordion-toggle w-full text-start flex items-center gap-x-3.5 py-2 px-2.5 te color: rgb(115 115 115 / var(--tw-text-opacity, 1)); } +.dark\:text-teal-500:where(.dark, .dark *) { + --tw-text-opacity: 1; + color: rgb(20 184 166 / var(--tw-text-opacity, 1)); +} + .dark\:text-white:where(.dark, .dark *) { --tw-text-opacity: 1; color: rgb(255 255 255 / var(--tw-text-opacity, 1)); @@ -2496,6 +2862,16 @@ hs-accordion-toggle w-full text-start flex items-center gap-x-3.5 py-2 px-2.5 te color: rgb(255 255 255 / 0.6); } +.dark\:placeholder-neutral-500:where(.dark, .dark *)::-moz-placeholder { + --tw-placeholder-opacity: 1; + color: rgb(115 115 115 / var(--tw-placeholder-opacity, 1)); +} + +.dark\:placeholder-neutral-500:where(.dark, .dark *)::placeholder { + --tw-placeholder-opacity: 1; + color: rgb(115 115 115 / var(--tw-placeholder-opacity, 1)); +} + .dark\:placeholder\:text-neutral-400:where(.dark, .dark *)::-moz-placeholder { --tw-text-opacity: 1; color: rgb(163 163 163 / var(--tw-text-opacity, 1)); @@ -2506,6 +2882,16 @@ hs-accordion-toggle w-full text-start flex items-center gap-x-3.5 py-2 px-2.5 te color: rgb(163 163 163 / var(--tw-text-opacity, 1)); } +.dark\:checked\:border-blue-500:checked:where(.dark, .dark *) { + --tw-border-opacity: 1; + border-color: rgb(59 130 246 / var(--tw-border-opacity, 1)); +} + +.dark\:checked\:bg-blue-500:checked:where(.dark, .dark *) { + --tw-bg-opacity: 1; + background-color: rgb(59 130 246 / var(--tw-bg-opacity, 1)); +} + .dark\:hover\:bg-neutral-700:hover:where(.dark, .dark *) { --tw-bg-opacity: 1; background-color: rgb(64 64 64 / var(--tw-bg-opacity, 1)); @@ -2566,6 +2952,10 @@ hs-accordion-toggle w-full text-start flex items-center gap-x-3.5 py-2 px-2.5 te --tw-ring-color: rgb(82 82 82 / var(--tw-ring-opacity, 1)); } +.dark\:focus\:ring-offset-gray-800:focus:where(.dark, .dark *) { + --tw-ring-offset-color: #1f2937; +} + .\[\&\:\:-webkit-scrollbar-thumb\]\:rounded-full::-webkit-scrollbar-thumb { border-radius: 9999px; } diff --git a/src/client/views/guild/guildHeader.ejs b/src/client/views/guild/guildHeader.ejs index 5f27d1d..f50fd2d 100644 --- a/src/client/views/guild/guildHeader.ejs +++ b/src/client/views/guild/guildHeader.ejs @@ -1,11 +1,11 @@