Spaces:
Running
Running
Upload css file
Browse files- style/sidebar_style.css +78 -0
style/sidebar_style.css
ADDED
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* from streamlit-on-Hover-tabs package */
|
2 |
+
|
3 |
+
section[data-testid='stSidebar'] {
|
4 |
+
background-color: #111;
|
5 |
+
flex-shrink: unset !important;
|
6 |
+
}
|
7 |
+
|
8 |
+
@media(hover:hover) and (min-width: 600px) and (max-width: 769px){
|
9 |
+
|
10 |
+
header[data-testid="stHeader"] {
|
11 |
+
display:none;
|
12 |
+
}
|
13 |
+
|
14 |
+
section[data-testid='stSidebar'] {
|
15 |
+
height: 100%;
|
16 |
+
min-width:95px !important;
|
17 |
+
width: 95px !important;
|
18 |
+
margin-left: 305px;
|
19 |
+
position: relative;
|
20 |
+
z-index: 1;
|
21 |
+
top: 0;
|
22 |
+
left: 0;
|
23 |
+
background-color: #111;
|
24 |
+
overflow-x: hidden;
|
25 |
+
transition: 0.5s ease;
|
26 |
+
padding-top: 60px;
|
27 |
+
white-space: nowrap;
|
28 |
+
|
29 |
+
}
|
30 |
+
|
31 |
+
section[data-testid='stSidebar']:hover{
|
32 |
+
min-width: 330px !important;
|
33 |
+
}
|
34 |
+
|
35 |
+
button[kind="header"] {
|
36 |
+
display: none;
|
37 |
+
}
|
38 |
+
|
39 |
+
div[data-testid="collapsedControl"]{
|
40 |
+
display: none;
|
41 |
+
}
|
42 |
+
}
|
43 |
+
|
44 |
+
@media(hover: hover) and (min-width: 769px){
|
45 |
+
|
46 |
+
header[data-testid="stHeader"] {
|
47 |
+
display:none;
|
48 |
+
font-size: 12px;
|
49 |
+
}
|
50 |
+
|
51 |
+
section[data-testid='stSidebar'] {
|
52 |
+
height: 100%;
|
53 |
+
min-width:95px !important;
|
54 |
+
width: 95px !important;
|
55 |
+
transform:translateX(0px);
|
56 |
+
position: relative;
|
57 |
+
z-index: 1;
|
58 |
+
top: 0;
|
59 |
+
left: 0;
|
60 |
+
background-color: #111;
|
61 |
+
overflow-x: hidden;
|
62 |
+
transition: 0.5s ease;
|
63 |
+
padding-top: 60px;
|
64 |
+
white-space: nowrap;
|
65 |
+
}
|
66 |
+
|
67 |
+
section[data-testid='stSidebar']:hover{
|
68 |
+
min-width: 330px !important;
|
69 |
+
}
|
70 |
+
|
71 |
+
button[kind="header"] {
|
72 |
+
display: none;
|
73 |
+
}
|
74 |
+
|
75 |
+
div[data-testid="collapsedControl"]{
|
76 |
+
display: none;
|
77 |
+
}
|
78 |
+
}
|