-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstreamlit_customizations.css
More file actions
84 lines (72 loc) · 1.99 KB
/
streamlit_customizations.css
File metadata and controls
84 lines (72 loc) · 1.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
/*Allow tabs bigger than the size of the screen to wrap arround*/
div.st-ae>div>div.st-af.st-ag.st-ah.st-ai.st-aj.st-ak.st-al.st-am.st-an.st-ao.st-ap.st-aq.st-ar{
flex-wrap: wrap;
row-gap: 0rem;
}
/* This can be used to regulate spacing before and after the elements.
div.st-ae>div>div.st-af.st-ag.st-ah.st-ai.st-aj.st-ak.st-al.st-am.st-an.st-ao.st-ap.st-aq.st-ar > * {
margin-bottom: -10px;
margin-top: -10px;
}*/
h2{
color:#25a0fd;
text-align: center;
}
/*
text-align: center;
place-content: center; para divs
*/
/* Gave up on respecting the computer's theme because streamlit tags isnt changeable via this css
.st-bd{
color:#99c2ff;
}
.st-cz{
border-color: #99c2ff;
}
.st-hf{
background-image: linear-gradient(to right, #99c2ff 0%, #99c2ff 25%, rgba(151, 166, 195, 0.25) 25%, rgba(151, 166, 195, 0.25) 100%);
}
.st-c2{
background-color: #99c2ff;
}
:root {
--primary-color: #99c2ff;
}
This would solve it but its not reaching that particular span because streamlit tags uses its own streamlit css apparently.
span{
--rti-tag: #99c2ff !important;
}
span.rti--container{
--rti-tag: #99c2ff !important;
}
*/
h3{
color:rgb(56, 158, 221);
padding-top: 0.2rem;
}
.appview-container .main .block-container {
padding-top: 1.5rem; /*Less than 3 rem will make elements at the top have risk of not showing*/
padding-bottom: 1rem;
}
div.row-widget>button{
width: 100%;
}
summary>span{
justify-content: center;
}
/* Make the vast mayority of the components have reasonable space,
leaving the option of adding a blank line if you want separation
Used to have the class selector of the class id of the current streamlit version.
stVerticalBlock testid helped find it but it was prone to breaking. Use div selector unless it breaks.
*/
div{
row-gap: 0.12rem;
}
/* Remove the border of the form without causing chaos*/
details>div>div>div>div>div.st-emotion-cache-r421ms{
border-color:white;
}
/* Hides too much
.element-container{
display: none;
}*/