I've built a flask-based website utilizing the Bootstrap framework. The inspiration for this choice was Corey Schafer's YouTube series. The difficulty I'm having stems from my desire to have wide tables of data that are shared with the user, while respecting the value that Bootstrap brings to support a variety of device templates.
As you'll see, however, I'm not quite sure "what levers to pull" to accomplish my goal. For example, my desktop can accomodate wider views of the table, but something is limiting this dimension as evidenced by the empty real-estate on the right.
When I try to scale down the font size, it works for the table in the ipad version, but there must be a better way to have all text scale in proportion.
And finally, the iphone. Fortunately this appears to be the version that is working best since I can most easily zoom / modify on the device to need (and the scroll in table gives a very "controlled" feel).
Here is my css code:
body {
background: #fafafa;
color: #333333;
margin-top: 5rem;
max-width: 105%;
}
h1, h2, h3, h4, h5, h6 {
color: #444444;
}
.bg-steel {
background-color: #5f788a;
}
.site-header .navbar-nav .nav-link {
color: #cbd5db;
}
.site-header .navbar-nav .nav-link:hover {
color: #ffffff;
}
.site-header .navbar-nav .nav-link.active {
font-weight: 500;
}
.content-section {
background: #ffffff;
padding: 2px 5px;
border: 1px solid #dddddd;
border-radius: 3px;
margin-bottom: 20px;
}
.article-title {
color: #444444;
}
.article-title:hover {
color: #428bca;
text-decoration: none;
}
.article-content {
white-space: pre-line;
}
.article-img {
height: 65px;
width: 65px;
margin-right: 16px;
}
.article-metadata {
padding-bottom: 1px;
margin-bottom: 4px;
border-bottom: 1px solid #e3e3e3
}
.article-metadata a:hover {
color: #333;
text-decoration: none;
}
.article-svg {
width: 25px;
height: 25px;
vertical-align: middle;
}
.account-img {
height: 125px;
width: 125px;
margin-right: 20px;
margin-bottom: 16px;
}
.account-heading {
font-size: 2.5rem;
}
.loader {
border: 16px solid #f3f3f3; /* Light grey */
border-top: 16px solid #3498db; /* Blue */
border-radius: 50%;
width: 120px;
height: 120px;
animation: spin 2s linear infinite;
}
.table-condensed{
font-size: 8px;
}
Here is my html code relevant to what is displayed:
<div class="content-section">
<form method="POST" action="" enctype="multipart/form-data">
{{ form.hidden_tag() }}
<fieldset class="form-group">
<legend class="border-bottom mb-4">{{ legend }}</legend>
<div class="btn-group-vertical" onclick="loading();">
{{ form.submit_autopull(class="btn btn-outline-primary") }}
{{ form.submit_autobren(class="btn btn-outline-primary") }}
{{ form.submit_autotang(class="btn btn-outline-primary") }}
</div>
<h6> </h6>
<h6>This process can take 5 minutes for a large clan to compile and score games.</h6>
<h6> </h6>
</fieldset>
{% if dataToShow == 1 %}
<fieldset class="form-group">
<legend class="border-bottom mb-4">{{ legend2 }}</legend>
<div class="table-responsive table-condensed">
<table class="table">{{ form.clanStats | safe }}</table>
</div>
</fieldset>
<fieldset class="form-group">
<legend class="border-bottom mb-4">{{ legend3 }}</legend>
<div class="media-body row flex-row flex-nowrap">
<p class="article-content">{{ form.quartStats | safe }}</p>
</div>
</fieldset>
<h6>Note: Results shown only for ladder games and experience levels 12 or greater.</h6>
{% endif %}
</form>
</div>
Any help that can be offered to help me understand the interaction between the components is most appreciated!


