Skip to content

Commit

Permalink
show banner on mobile, keep content centered and reduce pill content …
Browse files Browse the repository at this point in the history
…spillage
  • Loading branch information
TimHess committed Sep 4, 2024
1 parent 751305d commit 4ac8ce3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
12 changes: 5 additions & 7 deletions src/Client/Components/Banner.razor
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
<div class="banner">
<Href href="@Href" NewWindow="@NewWindow">
<div class="row no-gutters align-items-center">
<div class="col-2" style="margin: .7% 3% .7% 5%;max-width: 11%;">
<div class="sign rounded-pill special-link">
<div style="padding: 2px;">@BannerTypeName</div>
</div>
</div>
<div class="row no-gutters text-center" style="padding: 1% 0">
<div class="col desc">
@ChildContent
<div class="sign rounded-pill special-link text-center" style="min-width:125px;max-width:200px;display:inline-block;margin:10px;">
<div style="padding: 4px 4px 0 4px;">@BannerTypeName</div>
</div>
@ChildContent
</div>
</div>
</Href>
Expand Down
6 changes: 1 addition & 5 deletions src/Client/wwwroot/css/mobile.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@media (max-width: 576px) {
@media (max-width: 576px) {
.width-90 {
max-width: 97%;
}
Expand Down Expand Up @@ -100,10 +100,6 @@
padding-right: 15px;
}

.banner {
display: none;
}

.docs-nav-col {
top: 231px;
width: 180px;
Expand Down

0 comments on commit 4ac8ce3

Please sign in to comment.