File tree Expand file tree Collapse file tree 7 files changed +10
-16
lines changed
lib/components/dropdown-tree Expand file tree Collapse file tree 7 files changed +10
-16
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ import { ArrowDown } from "@/icons";
33import { Badge } from "../badge" ;
44import { Level } from "../level" ;
55import { TopicElement } from "./dropdown-tree.types" ;
6- import { cn } from "@/utils/tw-merge" ;
76import { Radio } from "../radio" ;
87
98type SubjectProps = PropsWithChildren &
@@ -17,7 +16,7 @@ export const DropdownTreeSubject = ({
1716 ...rest
1817} : SubjectProps ) => {
1918 return (
20- < details className = { cn ( [ "rustlanges-dropdown-tree-subject" ] ) } >
19+ < details className = "rustlanges-dropdown-tree-subject" >
2120 < summary >
2221 < Badge type = "text" variant = { state } />
2322 < Level as = "span" variant = { level } />
Original file line number Diff line number Diff line change 44html {
55 background : var (--color-gray-300 );
66}
7-
8- @utility shadow-brutal {
9- box-shadow : 2px 2px 0px # 000 ;
10- }
Original file line number Diff line number Diff line change 4949 }
5050
5151 .rustlanges-button--icon {
52- @apply p-0! siz e-10 aspect-square rounded-full border;
52+ @apply p-0! aspect-square size-10 rounded-full border;
5353 @apply bg-light border-black text-black;
5454
5555 @variant hover {
Original file line number Diff line number Diff line change 11@layer component {
22 .dropdown-tree-end {
3- box-shadow : 2px 2px 0px 0px # 000000 ;
4- @apply grid h-fit w-full rounded-xl border border-black px-4 py-2.5 text-left;
3+ @apply shadow-brutal grid h-fit w-full rounded-xl border border-black px-4 py-2.5 text-left;
54 @apply bg-secondary-50 text-neutral-950;
65 @apply dark:bg-secondary-950 dark:text-neutral-50;
76
Original file line number Diff line number Diff line change 2222 }
2323
2424 .rustlanges-dropdown-tree-start--extended {
25- box-shadow : 2px 2px 0px 0px # 000000 ;
26- box-sizing : content-box;
27- @apply rounded-xl border border-black;
25+ @apply shadow-brutal rounded-xl border border-black;
2826 @apply dark:bg-secondary-950 bg-secondary-50;
2927 }
3028
3129 .rustlanges-dropdown-tree-start--default {
3230 & > summary {
33- box-shadow : 2px 2px 0px 0px # 000000 ;
34- @apply mb-4 gap-4 rounded-2xl border border-black;
31+ @apply shadow-brutal mb-4 gap-4 rounded-2xl border border-black;
3532 @apply dark:bg-secondary-950 bg-secondary-50;
3633 }
3734
Original file line number Diff line number Diff line change 11@layer component {
22 .rustlanges-dropdown-tree-subject {
3- box-shadow : 2px 2px 0px 0px # 000000 ;
4- @apply relative ml-6 flex items-center rounded-xl border border-black;
3+ @apply shadow-brutal relative ml-6 flex items-center rounded-xl border border-black;
54 @apply bg-light;
65 @apply dark:bg-dark;
76
Original file line number Diff line number Diff line change 44 box-shadow : 2px 2px 0 0 --value (--color- * );
55 }
66}
7+
8+ @utility shadow-brutal {
9+ box-shadow : 2px 2px 0 0 # 000000 ;
10+ }
You can’t perform that action at this time.
0 commit comments