Skip to content

Commit

Permalink
[Footer] Fix styling. Do not use grid
Browse files Browse the repository at this point in the history
  • Loading branch information
vnbaaij authored Apr 2, 2024
1 parent db0c217 commit df0a5d0
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 43 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<FluentFooter>
Footer text
Footer start text
<FluentSpacer />
Footer end text
</FluentFooter>
7 changes: 3 additions & 4 deletions src/Core/Components/Footer/FluentFooter.razor.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
.footer {
display: grid;
.footer {
display: flex;
z-index: 10;
flex-direction: column;
position: relative;
flex-direction: row;
font-family: var(--body-font);
font-weight: normal;
font-size: var(--type-ramp-minus-1-font-size);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,9 @@
</FluentBodyContent>
</FluentStack>
<FluentFooter>
<div class="link1">
<a href="https://www.fluentui-blazor.net" target="_blank">Documentation and demos</a>
</div>
<div class="link2">
<a href="https://learn.microsoft.com/en-us/aspnet/core/blazor" target="_blank">About Blazor</a>
</div>
<a href="https://www.fluentui-blazor.net" target="_blank">Documentation and demos</a>
<FluentSpacer />
<a href="https://learn.microsoft.com/en-us/aspnet/core/blazor" target="_blank">About Blazor</a>
</FluentFooter>
</FluentLayout>
##else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,6 @@ footer {
padding: 10px 10px;
}

footer .link1 {
grid-column: 2;
justify-self: start;
}

footer .link2 {
grid-column: 3;
justify-self: end;
}

footer a {
color: var(--neutral-foreground-rest);
text-decoration: none;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,9 @@
</FluentBodyContent>
</FluentStack>
<FluentFooter>
<div class="link1">
<a href="https://www.fluentui-blazor.net" target="_blank">Documentation and demos</a>
</div>
<div class="link2">
<a href="https://learn.microsoft.com/en-us/aspnet/core/blazor" target="_blank">About Blazor</a>
</div>
<a href="https://www.fluentui-blazor.net" target="_blank">Documentation and demos</a>
<FluentSpacer />
<a href="https://learn.microsoft.com/en-us/aspnet/core/blazor" target="_blank">About Blazor</a>
</FluentFooter>
</FluentLayout>
##else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,9 @@
</FluentBodyContent>
</FluentStack>
<FluentFooter>
<div class="link1">
<a href="https://www.fluentui-blazor.net" target="_blank">Documentation and demos</a>
</div>
<div class="link2">
<a href="https://learn.microsoft.com/en-us/aspnet/core/blazor" target="_blank">About Blazor</a>
</div>
<a href="https://www.fluentui-blazor.net" target="_blank">Documentation and demos</a>
<FluentSpacer />
<a href="https://learn.microsoft.com/en-us/aspnet/core/blazor" target="_blank">About Blazor</a>
</FluentFooter>
</FluentLayout>
##else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,6 @@ footer {
padding: 10px 10px;
}

footer .link1 {
grid-column: 2;
justify-self: start;
}

footer .link2 {
grid-column: 3;
justify-self: end;
}

footer a {
color: var(--neutral-foreground-rest);
text-decoration: none;
Expand Down

0 comments on commit df0a5d0

Please sign in to comment.