-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(apis_entities,apis_relations,core): move inline styles
Move leftover inline styles in HTML templates to static CSS files. Closes #1258
- Loading branch information
Showing
15 changed files
with
84 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
#map { | ||
height: 300px; | ||
} | ||
#popovermap { | ||
width: 500px; | ||
height: 500px; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* single object view header */ | ||
#single-object-header h2 { | ||
text-align: center; | ||
} | ||
|
||
/* navigation between objects from single object view header */ | ||
.prev-in-list { | ||
float: right; | ||
} | ||
.next-in-list { | ||
float: left; | ||
} | ||
|
||
/* additional object actions */ | ||
.object-duplicate { | ||
color: blueviolet; | ||
} | ||
.object-merge { | ||
color: dodgerblue; | ||
} | ||
.object-history { | ||
color: #007bff; | ||
} |
10 changes: 8 additions & 2 deletions
10
apis_core/apis_entities/templates/apis_core/apis_entities/abstractentity.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
apis_core/apis_entities/templates/apis_entities/partials/next_url.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
apis_core/apis_entities/templates/apis_entities/partials/prev_url.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<a title="duplicate" | ||
href="{{ record.get_duplicate_url }}" | ||
style="color: blueviolet"><span class="material-symbols-outlined">content_copy</span></a> | ||
class="object-duplicate" | ||
href="{{ record.get_duplicate_url }}"> | ||
<span class="material-symbols-outlined">content_copy</span></a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* navigation between objects from object detail view */ | ||
/* TODO relates to potentially redundant relations_detail_generic.html template */ | ||
.next-in-list { | ||
float: right; | ||
} | ||
|
||
/* single object view header */ | ||
/* TODO relates to potentially redundant relations_detail_generic.html template */ | ||
#single-object-header h2:nth-of-type(2) { | ||
text-align: center; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,8 @@ | |
a #logo:hover { | ||
opacity: 0.5; | ||
} | ||
|
||
/* main modal in modal block */ | ||
#main-modal .modal-dialog { | ||
max-width: 800px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/* override of Bootstrap 4.6.2 generated (min) version to partially | ||
fix an issue with select2 | ||
TODO remove after move to Boostrap 5 */ | ||
.select2-container--default .select2-selection span.select2-selection__rendered { | ||
line-height: initial; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,7 +51,13 @@ | |
href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.3.4/leaflet.css" /> | ||
<link rel="stylesheet" | ||
href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.5/css/select2.min.css" /> | ||
{% include "partials/bootstrap4_css.html" %} | ||
{# Bootstrap 4.6.2 stylesheet, as suggested on #} | ||
{# https://getbootstrap.com/docs/4.6/getting-started/introduction/ #} | ||
<link rel="stylesheet" | ||
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" | ||
integrity="sha384-xOolHFLEh07PJGoPkLv1IbcEPTNtaed2xpHsD9ESMhqIYd0nLMwNLD69Npy4HI+N" | ||
crossorigin="anonymous"> | ||
<link href="{% static 'css/override_bootstrap.min.css' %}" rel="stylesheet" /> | ||
<link href="{% static 'css/material-symbols.css' %}" rel="stylesheet" /> | ||
<link href="{% static 'css/core.css' %}" rel="stylesheet" /> | ||
<link href="{% static 'css/E53_Place_popover.css' %}" rel="stylesheet" /> | ||
|
@@ -255,11 +261,11 @@ | |
{% block modal %} | ||
<!-- Modal --> | ||
<div class="modal fade" | ||
id="modal" | ||
id="main-modal" | ||
tabindex="-1" | ||
aria-labelledby="modalLabel" | ||
aria-hidden="true"> | ||
<div class="modal-dialog" style="max-width: 800px;"> | ||
<div class="modal-dialog"> | ||
<div id="modal-here" class="modal-content"></div> | ||
</div> | ||
</div> | ||
|
This file was deleted.
Oops, something went wrong.