schoolbox web extension :)
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(popup): styling bugs from tw4 migration (#236)

* fix(popup): button hover colours

* fix(popup): center modal

* refactor: remove dead code

authored by

willow and committed by
GitHub
9815a1a5 15614334

+7 -28
-18
src/entrypoints/popup/app.css
··· 1 1 @import "tailwindcss"; 2 2 @import "@catppuccin/tailwindcss/mocha.css"; 3 3 4 - /* 5 - The default border color has changed to `currentcolor` in Tailwind CSS v4, 6 - so we've added these compatibility styles to make sure everything still 7 - looks the same as it did with Tailwind CSS v3. 8 - 9 - If we ever want to remove these styles, we need to add an explicit border 10 - color utility to any element that depends on these defaults. 11 - */ 12 - @layer base { 13 - *, 14 - ::after, 15 - ::before, 16 - ::backdrop, 17 - ::file-selector-button { 18 - border-color: var(--color-gray-200, currentcolor); 19 - } 20 - } 21 - 22 4 body { 23 5 width: 450px; /* max: 1000px */ 24 6 @apply bg-ctp-base text-ctp-text text-base;
+1 -1
src/entrypoints/popup/components/Modal.svelte
··· 15 15 onclick={(e) => { 16 16 if (e.target === dialog) dialog.close(); 17 17 }} 18 - class="bg-ctp-base text-ctp-text relative"> 18 + class="bg-ctp-base text-ctp-text relative m-auto"> 19 19 <!-- svelte-ignore a11y_autofocus --> 20 20 <button autofocus onclick={() => dialog?.close()} class="small bg-ctp-surface1 absolute top-0 right-0 m-2" 21 21 ><X /></button>
+6 -9
src/entrypoints/popup/components/inputs/IconBtn.svelte
··· 8 8 color?: string; 9 9 } 10 10 11 - let { 12 - title, 13 - id, 14 - onClick, 15 - icon, 16 - label = "", 17 - color = "accent" 18 - }: Props = $props(); 11 + let { title, id, onClick, icon, label = "" }: Props = $props(); 19 12 </script> 20 13 21 - <button {title} {id} class="flex items-center mx-2 small hover:text-ctp-crust hover:bg-ctp-{color}" onclick={onClick}> 14 + <button 15 + {title} 16 + {id} 17 + class="flex items-center mx-2 small hover:text-ctp-crust hover:bg-(--ctp-accent)" 18 + onclick={onClick}> 22 19 {#if icon} 23 20 {@const SvelteComponent = icon} 24 21 <SvelteComponent />