look and feel updates

This commit is contained in:
Devin Howard 2016-10-08 00:16:37 +08:00
parent 38c323a18a
commit 42bb2cd86a
5 changed files with 19 additions and 10 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 44 KiB

View file

@ -1555,8 +1555,14 @@ h3.filterBox {
cursor: pointer; cursor: pointer;
} }
.fileupload { .fileupload {
box-sizing: border-box;
margin: 0.75em;
padding: 0.75em;
height: 3em;
border: 3px dashed #AAB0FB;
width: 75%; width: 75%;
text-align: center; text-align: center;
cursor: pointer;
} }
} }
.wrapper .mapInfoBox { .wrapper .mapInfoBox {

View file

@ -8,7 +8,6 @@
<div class="infoAndHelp"> <div class="infoAndHelp">
<%= render :partial => 'maps/mapinfobox' %> <%= render :partial => 'maps/mapinfobox' %>
<div class="importDialog infoElement mapElement openLightbox" data-open="import-dialog-lightbox"><div class="tooltipsAbove">Import data</div></div>
<% starred = current_user && @map && current_user.starred_map?(@map) <% starred = current_user && @map && current_user.starred_map?(@map)
starClass = starred ? 'starred' : '' starClass = starred ? 'starred' : ''
tooltip = starred ? 'Star' : 'Unstar' %> tooltip = starred ? 'Star' : 'Unstar' %>

View file

@ -19,6 +19,10 @@
<div class="upperRightUI"> <div class="upperRightUI">
<div class="mapElement upperRightEl upperRightMapButtons"> <div class="mapElement upperRightEl upperRightMapButtons">
<div class="importDialog infoElement mapElement openLightbox" data-open="import-dialog-lightbox">
<div class="tooltipsAbove">Import data</div>
</div>
<!-- filtering --> <!-- filtering -->
<div class="sidebarFilter upperRightEl"> <div class="sidebarFilter upperRightEl">
<div class="sidebarFilterIcon upperRightIcon"><div class="tooltipsUnder">Filter</div></div> <div class="sidebarFilterIcon upperRightIcon"><div class="tooltipsUnder">Filter</div></div>

View file

@ -41,7 +41,7 @@ class ImportDialogBox extends Component {
<h3>IMPORT</h3> <h3>IMPORT</h3>
<p>To upload a file, drop it here:</p> <p>To upload a file, drop it here:</p>
<Dropzone onDropAccepted={this.handleFile} <Dropzone onDropAccepted={this.handleFile}
className="import-blue-button fileupload" className="fileupload"
> >
Drop files here! Drop files here!
</Dropzone> </Dropzone>
@ -56,7 +56,7 @@ class ImportDialogBox extends Component {
The file should be in comma-separated format (when you save, change the The file should be in comma-separated format (when you save, change the
filetype from .xls to .csv). filetype from .xls to .csv).
</p> </p>
<img src={this.props.exampleImageUrl} style={{ maxWidth: '75%', float: 'right', margin: '1em' }}/> <img src={this.props.exampleImageUrl} style={{ width: '100%' }} />
<p style={{ marginTop: '1em' }}>You can choose which columns to include in your data. Topics must have a name field. Synapses must have Topic 1 and Topic 2.</p> <p style={{ marginTop: '1em' }}>You can choose which columns to include in your data. Topics must have a name field. Synapses must have Topic 1 and Topic 2.</p>
<p>&nbsp;</p> <p>&nbsp;</p>
<p> * There are many valid import formats. Try exporting a map to see what columns you can include in your import data. You can also copy-paste from Excel to import, or import JSON.</p> <p> * There are many valid import formats. Try exporting a map to see what columns you can include in your import data. You can also copy-paste from Excel to import, or import JSON.</p>