Skip to content

Commit 2dfed66

Browse files
committed
Add styles.css and fix .gitignore
1 parent d2f2c2a commit 2dfed66

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed

python-wrapper/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ build
55
# Should we ignore the following?
66
src/neo4j_viz/resources/nvl_entrypoint/*
77
!src/neo4j_viz/resources/nvl_entrypoint/base.js
8+
!src/neo4j_viz/resources/nvl_entrypoint/styles.css
89
!src/neo4j_viz/resources/nvl_entrypoint/__init__.py
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
:root,
2+
:root.light {
3+
--button-hover-bg-color: #f3f3f3;
4+
--button-active-bg-color: #d3d3d3;
5+
--neutral-text-default: 26 27 29 / 1;
6+
--stroke: #4D5157;
7+
}
8+
9+
:root.dark {
10+
--button-hover-bg-color: #5b5b5b;
11+
--button-active-bg-color: #8c8c8c;
12+
--neutral-text-default: 245 246 246 / 1;
13+
--stroke: #d2d2d2;
14+
}
15+
16+
button.icon {
17+
stroke: var(--stroke);
18+
background-color: inherit;
19+
padding: .4rem .41rem .19rem 0.41rem;
20+
border: 1.3px solid #bcbcbc;
21+
border-radius: 10px;
22+
}
23+
24+
button.icon:hover {
25+
background-color: var(--button-hover-bg-color)
26+
}
27+
28+
button.icon:active {
29+
background-color: var(--button-active-bg-color)
30+
}
31+
32+
.tooltip {
33+
width: 20%;
34+
min-width: 100px;
35+
max-width: 600px;
36+
max-height: 80%;
37+
position: absolute;
38+
z-index: 2147483647;
39+
right: 0;
40+
bottom: 0;
41+
background:inherit;
42+
border: solid;
43+
border-color: #BBBEC3;
44+
border-width: 0.5px;
45+
padding: 0.8rem;
46+
border-radius: 8px;
47+
margin-bottom: 1rem;
48+
margin-right: 0.5rem;
49+
filter: drop-shadow(0 4px 8px rgba(26,27,29,0.12));
50+
font-family: PublicSans;
51+
color: var(--neutral-text-default);
52+
font-size: 14px
53+
}

0 commit comments

Comments
 (0)