Skip to content

Commit

Permalink
more UI changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Bocarsly authored and Joshua Bocarsly committed Jul 10, 2018
1 parent 7cd0292 commit a23a576
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
16 changes: 16 additions & 0 deletions static/engr_styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ body {
max-width:120vh;
}

/* make plot a bit bigger on large phones (bootstrap sm) */
@media (max-width : 992px)
{
.mainplot
{
max-width:130vh;
margin:auto;
}
}

/* make plot a bit bigger on phones (bootstrap xs) */
@media (max-width : 768px)
{
Expand All @@ -25,6 +35,12 @@ body {
}
}


.dosplot {
max-width:90vh;
margin:auto;
}

.col-centered{
float: none;
margin: 0 auto;
Expand Down
4 changes: 2 additions & 2 deletions templates/ashby.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="container-fluid">

<div class="row">
<div class="col-sm-5 col-md-3 col-lg-offset-1">
<div class="col-sm-4 col-md-3 col-lg-offset-1">
<div class="subheading">Ashby Plot</div>
Create scatterplots comparing various attributes from the magnet database. There are 167 magnets in the database, including 33 with measured magnetocaloric properties. Click on any datapoint to see more information, including calculated densities of states.

Expand Down Expand Up @@ -54,7 +54,7 @@ <h4>switch x and y </h4>
</div>
</div>

<div class="col-sm-7 col-md-9 col-lg-7 mainplot">
<div class="col-sm-8 col-md-9 col-lg-7 mainplot">
{{ script|safe }}
{{ div|safe }}
</div>
Expand Down
4 changes: 2 additions & 2 deletions templates/dos.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
<div class="container-fluid">
<div class="row">

<div class="col-xs-6">
<div class="col-md-6 dosplot">
<h1>{{formula}}</h1>
{{ script|safe }}
{{ div|safe }}
</div>

<div class="col-xs-6">
<div class="col-md-6">

<h3>Experimental and calculated data</h3>
<table id="dos-table" class="table table-hover">
Expand Down

0 comments on commit a23a576

Please sign in to comment.