Skip to content

Commit 2dfe517

Browse files
committed
clean up border wrap
1 parent 776bc5d commit 2dfe517

File tree

3 files changed

+16
-8
lines changed

3 files changed

+16
-8
lines changed

assets/tailwind.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -991,6 +991,11 @@ video {
991991
width: 100%;
992992
}
993993

994+
.w-fit {
995+
width: -moz-fit-content;
996+
width: fit-content;
997+
}
998+
994999
.min-w-6 {
9951000
min-width: 1.5rem;
9961001
}
@@ -2213,6 +2218,11 @@ video {
22132218
justify-content: space-between;
22142219
}
22152220

2221+
.sm\:gap-x-24 {
2222+
-moz-column-gap: 6rem;
2223+
column-gap: 6rem;
2224+
}
2225+
22162226
.sm\:rounded-xl {
22172227
border-radius: 0.75rem;
22182228
}

src/components/footer.rs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ pub fn Footer() -> Element {
3737
];
3838

3939
rsx! {
40-
footer { class: "text-gray-700 dark:text-gray-400 w-full mx-auto max-w-screen-lg px-4 ",
41-
div { class: "container mx-auto py-8 md:py-24 flex flex-wrap justify-center items-start sm:justify-between lg:items-start md:flex-row md:flex-nowrap gap-x-24 gap-y-8",
40+
footer { class: "text-gray-700 dark:text-gray-400 w-full mx-auto max-w-screen-xl ",
41+
div { class: "py-8 md:py-24 flex flex-wrap justify-between items-start lg:items-start md:flex-row md:flex-nowrap gap-x-24 gap-y-8 mx-auto",
4242
for (name , links) in categories.iter() {
4343
div { key: "{name}",
4444
h2 { class: "text-md mb-3 text-black dark:text-gray-100", "{name}" }
@@ -54,9 +54,9 @@ pub fn Footer() -> Element {
5454
}
5555
}
5656

57-
div { class: "text-center md:text-left",
57+
div { class: "text-left md:text-left",
5858
a {
59-
class: "flex items-center justify-start gap-1",
59+
class: "flex items-center gap-1",
6060
href: "https://github.com/DioxusLabs",
6161
div {
6262
span { class: "text-lg font-mono dark:text-gray-100", "DIOXUS" }
@@ -69,10 +69,8 @@ pub fn Footer() -> Element {
6969
}
7070
span { class: "text-xs", "Build cool things ✌️" }
7171
}
72-
}
73-
74-
7572

73+
}
7674
div { class: "text-gray-400 text-sm text-center sm:text-left pb-2 mx-auto",
7775
"© 2024 Dioxus Labs"
7876
}

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ fn HeaderFooter() -> Element {
3030

3131
rsx! {
3232
Head {}
33-
div { class: "bg-white dark:bg-ideblack min-h-screen",
33+
div { class: "bg-white dark:bg-ideblack min-h-screen px-4",
3434
Nav {}
3535
Outlet::<Route> {}
3636
Footer {}

0 commit comments

Comments
 (0)