akankshar639 commited on
Commit
cafd34c
·
verified ·
1 Parent(s): 007d937

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +103 -140
style.css CHANGED
@@ -1,140 +1,103 @@
1
- /* Make Comparison/Analysis subheaders white and bold */
2
- h3 {
3
- color: white !important;
4
- font-size: 1.8rem !important;
5
- text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
6
- margin-top: 30px !important;
7
- }
8
-
9
- /* Ensure stock names and "Analysis:" text stay white */
10
- .stMarkdown h3, .stMarkdown b, .stMarkdown strong {
11
- color: white !important;
12
- }
13
-
14
- /* Your existing white-box result style stays for the report itself */
15
- [data-testid="stText"] {
16
- background-color: white !important;
17
- color: black !important;
18
- padding: 15px !important;
19
- border-radius: 10px !important;
20
- }
21
-
22
- /* Target the result alert blocks specifically */
23
- [data-testid="stText"] {
24
- background-color: white !important;
25
- color: black !important;
26
- padding: 15px !important;
27
- border-radius: 10px !important;
28
- border: 1px solid #ccc !important;
29
- }
30
-
31
- /* Ensure the preformatted text inside the block is also black */
32
- [data-testid="stText"] pre {
33
- color: black !important;
34
- }
35
-
36
- .block-container {
37
- padding-top: 1rem !important;
38
- }
39
-
40
- h1 {
41
- margin-top: -20px !important;
42
- margin-bottom: 90px !important;
43
- color: white !important;
44
- text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
45
- text-align: center;
46
- }
47
-
48
- .stButton button:hover {
49
- background-color: transparent !important;
50
- color: white !important;
51
- border: 1px solid white;
52
- }
53
-
54
- .block-container {
55
- padding-top: 1rem !important;
56
- padding-bottom: 0rem;
57
- }
58
-
59
- /* Specifically target the heading to remove any extra margin */
60
- h1 {
61
- margin-top: -20px !important;
62
- padding-top: 0px !important;
63
- margin-bottom: 90px !important;
64
- color: white !important;
65
- text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
66
- text-align: center;
67
- }
68
-
69
- /* Ensures the header bar doesn't block your title */
70
- header.stAppHeader {
71
- background-color: transparent;
72
- }
73
-
74
- /* Target all Streamlit buttons */
75
- .stButton button {
76
- background-color: #0e3558;
77
- color: #FFFFFF;
78
- border: 1px solid #FFFFFF;
79
- border-radius: 25px;
80
- transition: background-color 0.3s ease, color 0.3s ease;
81
- }
82
-
83
-
84
- .stButton button:hover {
85
- background-color: transparent !important;
86
- color: white !important;
87
- border: 1px solid white;
88
- }
89
-
90
-
91
- .stButton button:focus {
92
- color: white !important;
93
- }
94
- /* Fix the Title (st.title) visibility */
95
- h1 {
96
- color: white !important;
97
- text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
98
- text-align: center;
99
- }
100
-
101
- /* Fix the Label for the text input box */
102
- .stTextInput label {
103
- color: white !important;
104
- font-size: 1.2rem;
105
- font-weight: bold;
106
- text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
107
- }
108
-
109
- .stTextInput input {
110
- color: #000000; /* Keeping input text black for clarity against white box */
111
- border-radius: 8px; /* Your 'br' fixing */
112
- }
113
-
114
- /* Target the main container for a full-screen background */
115
-
116
- [data-testid="stAppViewContainer"] {
117
- background-image: url("data:image/jpg;base64,IMAGE_PLACEHOLDER");
118
- background-size: cover;
119
- background-position: center;
120
- background-attachment: fixed;
121
- }
122
-
123
- /* Fix your alignment and borders (br) here */
124
- .main {
125
- background-color: transparent;
126
- padding: 2rem;
127
- }
128
-
129
- /* Centered container for your title */
130
- .centered-title-container {
131
- text-align: center;
132
- border-radius: 12px;
133
- background-color: rgba(0, 0, 0, 0.5);
134
- padding: 20px;
135
- margin-bottom: 25px;
136
- }
137
-
138
- [data-testid="stSidebar"] {
139
- background-color: rgba(38, 39, 48, 0.9);
140
- }
 
1
+
2
+ /* 1. MAIN BACKGROUND LOGIC */
3
+ [data-testid="stAppViewContainer"] {
4
+ background-image: url("data:image/jpg;base64,IMAGE_PLACEHOLDER");
5
+ background-size: cover;
6
+ background-position: center;
7
+ background-attachment: fixed;
8
+ }
9
+
10
+ /* 2. HEADER AND TITLE STYLING */
11
+ header.stAppHeader {
12
+ background-color: transparent;
13
+ }
14
+
15
+ h1 {
16
+ margin-top: -20px !important;
17
+ padding-top: 0px !important;
18
+ margin-bottom: 90px !important;
19
+ color: white !important;
20
+ text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
21
+ text-align: center;
22
+ }
23
+
24
+ /* 3. SUBHEADERS AND MARKDOWN TEXT */
25
+ h3 {
26
+ color: white !important;
27
+ font-size: 1.8rem !important;
28
+ text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
29
+ margin-top: 30px !important;
30
+ }
31
+
32
+ .stMarkdown h3, .stMarkdown b, .stMarkdown strong {
33
+ color: white !important;
34
+ }
35
+
36
+ /* 4. INPUT BOX AND LABELS */
37
+ .stTextInput label {
38
+ color: white !important;
39
+ font-size: 1.2rem;
40
+ font-weight: bold;
41
+ text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
42
+ }
43
+
44
+ .stTextInput input {
45
+ color: #000000;
46
+ border-radius: 8px;
47
+ }
48
+
49
+ /* 5. BUTTON STYLING */
50
+ .stButton button {
51
+ background-color: #0e3558;
52
+ color: #FFFFFF;
53
+ border: 1px solid #FFFFFF;
54
+ border-radius: 25px;
55
+ transition: background-color 0.3s ease, color 0.3s ease;
56
+ }
57
+
58
+ .stButton button:hover {
59
+ background-color: transparent !important;
60
+ color: white !important;
61
+ border: 1px solid white;
62
+ }
63
+
64
+ .stButton button:focus {
65
+ color: white !important;
66
+ }
67
+
68
+ /* 6. RESULT REPORT BLOCKS (White boxes with black text) */
69
+ [data-testid="stText"] {
70
+ background-color: white !important;
71
+ color: black !important;
72
+ padding: 15px !important;
73
+ border-radius: 10px !important;
74
+ border: 1px solid #ccc !important;
75
+ }
76
+
77
+ /* Ensure text inside preformatted blocks is black */
78
+ [data-testid="stText"] pre {
79
+ color: black !important;
80
+ }
81
+
82
+ /* 7. LAYOUT AND CONTAINERS */
83
+ .block-container {
84
+ padding-top: 1rem !important;
85
+ padding-bottom: 0rem;
86
+ }
87
+
88
+ .main {
89
+ background-color: transparent;
90
+ padding: 2rem;
91
+ }
92
+
93
+ .centered-title-container {
94
+ text-align: center;
95
+ border-radius: 12px;
96
+ background-color: rgba(0, 0, 0, 0.5);
97
+ padding: 20px;
98
+ margin-bottom: 25px;
99
+ }
100
+
101
+ [data-testid="stSidebar"] {
102
+ background-color: rgba(38, 39, 48, 0.9);
103
+ }