Skip to content

Commit ce71312

Browse files
committed
Move all inline CSS to main.css file
Signed-off-by: tdruez <[email protected]>
1 parent aa46778 commit ce71312

File tree

4 files changed

+30
-27
lines changed

4 files changed

+30
-27
lines changed

scancodeio/static/main.css

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,21 @@ progress.file-upload::before {
367367
textarea.is-dynamic {
368368
min-height: 70px;
369369
}
370+
#project-list-header ul#id_is_archived {
371+
display: inline-flex;
372+
}
373+
#project-list-header ul#id_is_archived li {
374+
margin-right: 1rem;
375+
}
376+
#project-list-header ul#id_is_archived li a {
377+
color: var(--bulma-grey);
378+
}
379+
#project-list-header ul#id_is_archived li a:hover {
380+
text-decoration: underline;
381+
}
382+
#project-list-header ul#id_is_archived li a.is-active {
383+
color: var(--bulma-text);
384+
}
370385
#project-extra-data figure.highlight {
371386
overflow-y: scroll;
372387
}
@@ -406,6 +421,17 @@ textarea.is-dynamic {
406421
#codebase-relation-list th#column-map_type {
407422
width: 145px;
408423
}
424+
#dependency-tree.tree {
425+
line-height: 1.8rem;
426+
--spacing : 2rem;
427+
}
428+
#dependency-tree.tree summary {
429+
display: inline-block;
430+
}
431+
#dependency-tree.tree summary::before{
432+
background-color: rgb(72, 199, 142);
433+
background-image: url('{% static "iamkate-tree-views/expand-collapse.svg" %}');
434+
}
409435
#resource-viewer #editor {
410436
min-height:730px;
411437
border: var(--bulma-grey) 1px solid;

scanpipe/templates/scanpipe/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
{% include 'scanpipe/modals/search_syntax_modal.html' %}
1818
<script src="{% static 'main.js' %}" crossorigin="anonymous"></script>
1919
<script src="{% static 'fontawesome-6.7.2/all.min.js' %}" crossorigin="anonymous" defer></script>
20-
<script src="{% static 'highlight-10.6.0.min.js' %}" crossorigin="anonymous"></script>
20+
<script src="{% static 'highlight-10.6.0.min.js' %}" crossorigin="anonymous" defer></script>
2121
<script src="{% static 'bulma-toast-2.4.1.min.js' %}" crossorigin="anonymous" defer></script>
2222
{% htmx_script %}
2323
{% block scripts %}{% endblock %}

scanpipe/templates/scanpipe/project_dependency_tree.html

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,7 @@
44
{% block title %}ScanCode.io: {{ project.name }} - Dependency tree{% endblock %}
55

66
{% block extrahead %}
7-
<link rel="stylesheet" href="{% static 'iamkate-tree-views/tree.css' %}" crossorigin="anonymous">
8-
<style>
9-
.tree {
10-
line-height: 1.8rem;
11-
--spacing : 2rem;
12-
}
13-
.tree summary {
14-
display: inline-block;
15-
}
16-
.tree summary::before{
17-
background-color: rgb(72, 199, 142);
18-
background-image: url('{% static "iamkate-tree-views/expand-collapse.svg" %}');
19-
}
20-
</style>
7+
<link rel="stylesheet" href="{% static 'iamkate-tree-views/tree.css' %}" crossorigin="anonymous">
218
{% endblock %}
229

2310
{% block content %}
@@ -68,7 +55,7 @@
6855
</button>
6956
</div>
7057

71-
<ul id="tree" class="tree">
58+
<ul id="dependency-tree" class="tree">
7259
<li>
7360
<details open>
7461
<summary class="has-text-weight-semibold">

scanpipe/templates/scanpipe/project_list.html

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,14 @@
33

44
{% block title %}ScanCode.io: Projects{% endblock %}
55

6-
{% block extrahead %}
7-
<style>
8-
ul#id_is_archived {display: inline-flex;}
9-
ul#id_is_archived li {margin-right: 1rem;}
10-
ul#id_is_archived li a {color: #7a7a7a;}
11-
ul#id_is_archived li a:hover {text-decoration: underline;}
12-
ul#id_is_archived li a.is-active {color: var(--bulma-text);}
13-
</style>
14-
{% endblock %}
15-
166
{% block content %}
177
<div class="container is-max-widescreen">
188
{% include 'scanpipe/includes/navbar_header.html' %}
199
<div class="mx-5 mb-2">{% include 'scanpipe/includes/messages.html' %}</div>
2010

2111
<section class="mx-5 mb-5">
2212
<div class="is-flex is-justify-content-space-between mb-2">
23-
<div>
13+
<div id="project-list-header">
2414
{% include 'scanpipe/includes/breadcrumb.html' %}
2515
{{ filter.form.is_archived }}
2616
{% if filter.is_active %}

0 commit comments

Comments
 (0)