-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Styling Update for Header and Footer Elements #2502
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,8 +19,8 @@ | |
</head> | ||
<body> | ||
<header> | ||
<nav class="navbar navbar-expand-sm navbar-light navbar-toggleable-sm bg-white border-bottom box-shadow mb-3"> | ||
<div class="container"> | ||
<nav class="navbar navbar-expand-sm navbar-toggleable-sm border-bottom box-shadow mb-3"> | ||
<div class="container-fluid"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why use "container-fluid" here but not on line 48? Why use it at all? Is having fixed widths that bad? |
||
<a class="navbar-brand" href="~/">@Model.ApplicationName</a> | ||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target=".navbar-collapse" aria-controls="navbarSupportedContent" | ||
aria-expanded="false" aria-label="Toggle navigation"> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,22 @@ | ||
/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification\ | ||
for details on configuring this project to bundle and minify static web assets. */ | ||
|
||
a.navbar-brand { | ||
white-space: normal; | ||
text-align: center; | ||
word-break: break-all; | ||
} | ||
|
||
/* Sticky footer styles | ||
-------------------------------------------------- */ | ||
html { | ||
font-size: 14px; | ||
} | ||
@media (min-width: 768px) { | ||
|
||
@media (min-width: 576px) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why did you reduce the min width? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. because the layout uses bootstrap small size which is 576 |
||
html { | ||
font-size: 16px; | ||
} | ||
} | ||
|
||
a.navbar-brand { | ||
white-space: normal; | ||
text-align: center; | ||
word-break: break-all; | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why did this move? |
||
|
||
.container { | ||
max-width: 960px; | ||
} | ||
|
@@ -42,24 +41,27 @@ button.accept-policy { | |
line-height: inherit; | ||
} | ||
|
||
/* Sticky footer styles | ||
-------------------------------------------------- */ | ||
html { | ||
position: relative; | ||
min-height: 100%; | ||
.header { | ||
background-color: var(--bs-body-bg); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why not inherit a background-color like before? Do we use |
||
} | ||
|
||
body { | ||
/* Margin bottom by footer height */ | ||
margin-bottom: 60px; | ||
} | ||
.footer { | ||
position: absolute; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why remove the |
||
bottom: 0; | ||
width: 100%; | ||
overflow: scroll; | ||
background-color: var(--bs-body-bg); | ||
white-space: nowrap; | ||
/* Set the fixed height of the footer here */ | ||
height: 60px; | ||
line-height: 60px; /* Vertically center the text there */ | ||
line-height: 45px; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What's wrong with 60px? Why don't need the |
||
} | ||
|
||
@media (min-width: 576px) { | ||
|
||
body { | ||
margin-bottom: 45px; | ||
} | ||
|
||
.footer { | ||
position: fixed; | ||
bottom: 0; | ||
width: 100%; | ||
z-index: 9; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is z-index necessary? Because the footer is now fixed? Do we really want a fixed footer? |
||
} | ||
|
||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's wrong with
navbar-light
andbg-white
for the bar?