Skip to content

Commit 2e2d3bd

Browse files
committed
move search component css to main.css
Signed-off-by: Aayush Kumar <[email protected]>
1 parent e028191 commit 2e2d3bd

File tree

2 files changed

+19
-24
lines changed

2 files changed

+19
-24
lines changed

scancodeio/static/main.css

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,3 +557,22 @@ body.full-screen #resource-viewer .message-header {
557557
background-color: var(--bulma-background);
558558
border-radius: var(--bulma-radius);
559559
}
560+
#resource-tree-container .search-container {
561+
position: sticky;
562+
top: 0;
563+
z-index: 100;
564+
}
565+
#resource-tree-container .search-dropdown {
566+
position: absolute;
567+
top: 100%;
568+
left: 0;
569+
right: 0;
570+
z-index: 1000;
571+
border: 1px solid var(--bulma-border);
572+
border-radius: var(--bulma-radius);
573+
background: var(--bulma-scheme-main);
574+
box-shadow: var(--bulma-shadow);
575+
max-height: 400px;
576+
overflow-y: auto;
577+
margin-top: 4px;
578+
}

scanpipe/templates/scanpipe/resource_tree.html

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,6 @@
22
{% load static humanize %}
33
{% block title %}ScanCode.io: {{ project.name }} - Resources tree{% endblock %}
44

5-
{% block extrahead %}
6-
<style>
7-
.search-container {
8-
position: sticky;
9-
top: 0;
10-
z-index: 100;
11-
}
12-
.search-dropdown {
13-
position: absolute;
14-
top: 100%;
15-
left: 0;
16-
right: 0;
17-
z-index: 1000;
18-
border: 1px solid var(--bulma-border);
19-
border-radius: var(--bulma-radius);
20-
background: var(--bulma-scheme-main);
21-
box-shadow: var(--bulma-shadow);
22-
max-height: 400px;
23-
overflow-y: auto;
24-
margin-top: 4px;
25-
}
26-
</style>
27-
{% endblock %}
28-
295
{% block content %}
306
<div id="content-header" class="container is-max-widescreen mb-3">
317
{% include 'scanpipe/includes/navbar_header.html' %}

0 commit comments

Comments
 (0)