File tree Expand file tree Collapse file tree 1 file changed +33
-5
lines changed Expand file tree Collapse file tree 1 file changed +33
-5
lines changed Original file line number Diff line number Diff line change 28
28
# Filter the 2020 dataframe
29
29
df2020 = df [df ['SalaryUSD' ] < 200000 ]
30
30
31
- # Load CSS file
32
- def local_css (file_name ):
33
- with open (file_name ) as f :
34
- st .markdown (f'<style>{ f .read ()} </style>' , unsafe_allow_html = True )
31
+ #######################################
32
+ # CSS STYLING
33
+ #######################################
34
+
35
+ css = """
36
+ <style>
37
+ .analysis-container {
38
+ font-family: 'Courier New', Courier, monospace;
39
+ background-color: #D8DEDF;
40
+ padding: 15px;
41
+ border-radius: 10px;
42
+ margin-top: 150px;
43
+ margin-bottom: 110px;
44
+ }
45
+
46
+ .analysis-container-extra {
47
+ font-family: 'Courier New', Courier, monospace;
48
+ background-color: #D8DEDF;
49
+ padding: 15px;
50
+ border-radius: 10px;
51
+ margin-top: 50px;
52
+ margin-bottom: 20px;
53
+ }
54
+
55
+ .analysis-title {
56
+ font-size: 18px;
57
+ font-weight: bold;
58
+ color: #333333;
59
+ margin-bottom: 10px;
60
+ }
61
+ </style>
62
+ """
35
63
36
- local_css ( "https://raw.githubusercontent.com/Recode-Hive/Stackoverflow-Analysis/main/streamlit/style. css" )
64
+ st . markdown ( css , unsafe_allow_html = True )
37
65
38
66
#######################################
39
67
# DATA PREPARATION FOR VISUALISATION
You can’t perform that action at this time.
0 commit comments