Skip to content

Commit e19434c

Browse files
committed
feat(templates): inline styles;
- Moved inline styles to class stylesheets.
1 parent bf50992 commit e19434c

File tree

5 files changed

+17
-6
lines changed

5 files changed

+17
-6
lines changed

ckanext/recombinant/assets/css/recombinant.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,15 @@
3636
border-bottom-right-radius: 4px !important;
3737
text-align: right !important;
3838
}
39+
body .recombinant-margin-bottom-10{
40+
margin-bottom: 10px;
41+
}
42+
body .recombinant-form-button-wrapper{
43+
padding-top: 3px;
44+
}
45+
body .recombinant-height-auto{
46+
height: auto;
47+
}
48+
body .recombinant-cursor-help{
49+
cursor: help;
50+
}

ckanext/recombinant/templates/recombinant/resource_edit.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
{# only let sysadmins refresh the recombinant record via UI #}
5050
<div class="module-alert alert alert-warning">
5151
<h3>{{ _("The Recombinant resource is out of date") }}{% snippet 'snippets/sysadmin_only.html' %}</h3>
52-
<p style="margin-bottom: 10px;">{{ _('You can refresh your resource in the database to try to solve the problem.') }}</p>
52+
<p class="recombinant-margin-bottom-10">{{ _('You can refresh your resource in the database to try to solve the problem.') }}</p>
5353
<form id="create-pd-resource" method="post">
5454
{{ h.csrf_input() }}
5555
<button type="submit" class="btn btn-danger mrgn-bttm-md m-b-3" name="refresh-hard">{{_('Refresh…')}}</button>

ckanext/recombinant/templates/recombinant/snippets/delete.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ <h3>{{_('Delete existing records')}}</h3>
4040
<div>
4141
</div>
4242
<div class="clearfix"></div>
43-
<div class="form-actions form-group" style="padding-top: 3px;">
43+
<div class="form-actions form-group recombinant-delete-button-wrapper">
4444
<input class="btn btn-danger" type="submit" value="{{_('Delete')}}"/>
4545
</div>
4646
</form>

ckanext/recombinant/templates/recombinant/snippets/xls_upload.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
</label>
1717
{% block file_input %}
1818
<input required
19-
class="form-control"
20-
style="height: auto"
19+
class="form-control recombinant-height-auto"
2120
type="file"
2221
name="xls_update"
2322
id="xls_update"
@@ -36,7 +35,7 @@
3635
</div>
3736
<input type="hidden" name="resource_name" value="{{ resource.get('name') }}"/>
3837
<div class="clearfix"></div>
39-
<div class="form-actions form-group" style="padding-top: 3px;">
38+
<div class="form-actions form-group recombinant-form-button-wrapper">
4039
<button type="submit" class="btn btn-primary" name="upload">{{_('Submit')}}</button>
4140
<button type="submit" class="btn btn-default" name="validate">{{_('Check for Errors')}}</button>
4241
</div>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
&nbsp;<sup style="cursor: help;" title="{{ _('Sysadmin only') }}"><small><span class="fa fa-gavel text-info" aria-hidden="true"></span></small></sup>
1+
&nbsp;<sup class="recombinant-cursor-help" title="{{ _('Sysadmin only') }}"><small><span class="fa fa-gavel text-info" aria-hidden="true"></span></small></sup>

0 commit comments

Comments
 (0)