Better handle small screen sizes

This commit is contained in:
Neil Brommer 2017-12-09 11:10:03 -08:00
parent d5c68cd237
commit d86fbae8ed
2 changed files with 44 additions and 35 deletions

View file

@ -17,7 +17,7 @@
<body> <body>
<nav class="navbar navbar-expand-md navbar-dark bg-dark mb-4"> <nav class="navbar navbar-expand-sm navbar-dark bg-dark mb-4">
<!-- <a class="navbar-brand" href=".">Start</a >--> <!-- <a class="navbar-brand" href=".">Start</a >-->
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse" <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse"
aria-expanded="false" aria-label="Toggle navigation"> aria-expanded="false" aria-label="Toggle navigation">
@ -28,10 +28,10 @@
<!-- Keep this to push elements to the right --> <!-- Keep this to push elements to the right -->
</ul> </ul>
<form class="form-inline mt-2 mt-md-0"> <form class="form-inline mt-2 mt-md-0">
<button class="btn btn-light ml-sm-2" type="button" data-Toggle="modal" data-target="#aboutModal">About</button> <button class="btn btn-light ml-2" type="button" data-Toggle="modal" data-target="#aboutModal">About</button>
<button class="btn btn-light ml-sm-2" type="button" data-Toggle="modal" data-target="#importExportModal">Import/Export</button> <button class="btn btn-light ml-2" type="button" data-Toggle="modal" data-target="#importExportModal">Import/Export</button>
<button id="btnEdit" class="btn btn-light ml-sm-2" type="button"><span class="fa fa-exclamation-circle"></span> Edit</button> <button id="btnEdit" class="btn btn-light ml-2" type="button"><span class="fa fa-exclamation-circle"></span> Edit</button>
<button class="btn btn-light ml-sm-2" type="button" data-toggle="modal" data-target="#newBookmarkModal"><span class="fa fa-exclamation-circle"></span> Add</button> <button class="btn btn-light ml-2" type="button" data-toggle="modal" data-target="#newBookmarkModal"><span class="fa fa-exclamation-circle"></span> Add</button>
</form> </form>
</div> </div>
</nav> </nav>

View file

@ -8,10 +8,6 @@ body {
-moz-tab-size: 4; -moz-tab-size: 4;
} }
#wrapper {
width: 60%;
}
.card-header { .card-header {
background-color: #FEA63C; background-color: #FEA63C;
color: white; color: white;
@ -35,6 +31,19 @@ body {
background: transparent !important; background: transparent !important;
} }
/* set the width of the main container based on element width */
@media (max-width: 34em) {
#wrapper {
width: 90%;
}
}
@media (min-width: 34em) {
#wrapper {
width: 60%;
}
}
/* change the number of columns in card-columns */ /* change the number of columns in card-columns */
@media (min-width: 34em) { @media (min-width: 34em) {
.card-columns { .card-columns {