New asset box style update

This commit is contained in:
Urban Rotnik 2019-04-04 18:15:30 +02:00
parent 2cbf70819f
commit a3932cc67f
5 changed files with 17 additions and 7 deletions

View file

@ -54,7 +54,7 @@
img { img {
margin-right: 5px; margin-right: 5px;
width: 32px; width: 23px;
} }
} }

View file

@ -1041,6 +1041,16 @@ ul.content-activities {
margin-top: 20px; margin-top: 20px;
padding-bottom: 30px; padding-bottom: 30px;
padding-top: 30px; padding-top: 30px;
background-color: $color-concrete;
.new-asset-upload-icon{
margin-right: 6px;
}
.new-asset-upload-button {
margin-left: 20px;
background-color: inherit;
}
} }
.dnd-error, .dnd-error,

View file

@ -5,8 +5,8 @@
data-tooltipcontent="<%= I18n.t('tooltips.text.protocol.step_add_files') %>"> data-tooltipcontent="<%= I18n.t('tooltips.text.protocol.step_add_files') %>">
<%=t 'assets.drag_n_drop.label_html' %> <%=t 'assets.drag_n_drop.label_html' %>
<label> <label>
<span class="btn btn-primary"> <span class="btn btn-default new-asset-upload-button">
<span class="fas fa-plus"></span> <span class="fas fa-file-upload new-asset-upload-icon"></span>
<%=t 'assets.drag_n_drop.browse_label' %> <%=t 'assets.drag_n_drop.browse_label' %>
</span> </span>
<input type="file" <input type="file"

View file

@ -48,8 +48,8 @@
data-tooltipcontent="<%= I18n.t('tooltips.text.protocol.step_add_files') %>"> data-tooltipcontent="<%= I18n.t('tooltips.text.protocol.step_add_files') %>">
<%=t 'assets.drag_n_drop.label_html' %> <%=t 'assets.drag_n_drop.label_html' %>
<label> <label>
<span class="btn btn-primary"> <span class="btn btn-default new-asset-upload-button">
<span class="fas fa-plus"></span> <span class="fas fa-file-upload new-asset-upload-icon"></span>
<%=t 'assets.drag_n_drop.browse_label' %> <%=t 'assets.drag_n_drop.browse_label' %>
</span> </span>
<input type="file" <input type="file"

View file

@ -1874,8 +1874,8 @@ en:
edit: "SciNote | %{file_name} | Edit" edit: "SciNote | %{file_name} | Edit"
view: "SciNote | %{file_name} | View" view: "SciNote | %{file_name} | View"
drag_n_drop: drag_n_drop:
label_html: 'Drag &amp; drop files here, CTRL+V (for images from clipboard) or ' label_html: 'Drag &amp; drop here. Copy &amp Paste images.'
browse_label: 'Browse to add' browse_label: 'Select to Upload...'
drop_label: 'Drop to add to Step' drop_label: 'Drop to add to Step'
file_label: 'File' file_label: 'File'
from_clipboard: from_clipboard: