deadshot2003 commited on
Commit
86463fc
·
verified ·
1 Parent(s): 7087711

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +183 -193
style.css CHANGED
@@ -1,193 +1,183 @@
1
- body {
2
- font-family: 'Roboto', sans-serif;
3
- background-color: transparent;
4
- }
5
-
6
- .stApp {
7
- max-width: 100%;
8
- margin: 0;
9
- padding: 2rem;
10
- background-color: transparent;
11
- border-radius: 10px;
12
- box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
13
- }
14
-
15
- .reportview-container {
16
- background-color: transparent;
17
- }
18
-
19
- .reportview-container .main {
20
- background-color: transparent;
21
- }
22
-
23
- .reportview-container .main .block-container {
24
- background-color: transparent;
25
- }
26
-
27
- .stNavigation {
28
- background-color: transparent !important;
29
- }
30
-
31
- .stNavigation .css-218ufz,
32
- .stNavigation .css-f0ifqm,
33
- .stNavigation .css-jc4t97 {
34
- background-color: transparent !important;
35
- }
36
-
37
- /* Word-by-word animation for "Welcome to Health & Nutrition Analyzer" */
38
- .animated-text {
39
- opacity: 0;
40
- animation: fade-in 1s ease-in-out forwards;
41
- }
42
-
43
- @keyframes fade-in {
44
- 0% {
45
- opacity: 0;
46
- transform: translateY(20px);
47
- }
48
- 100% {
49
- opacity: 1;
50
- transform: translateY(0);
51
- }
52
- }
53
-
54
- .animated-text span {
55
- display: inline-block;
56
- animation: slide-in 0.5s ease-in-out forwards;
57
- }
58
-
59
- @keyframes slide-in {
60
- 0% {
61
- opacity: 0;
62
- transform: translateX(-20px);
63
- }
64
- 100% {
65
- opacity: 1;
66
- transform: translateX(0);
67
- }
68
- }
69
-
70
- /* Responsive styles */
71
- @media (max-width: 767px) {
72
- .stApp {
73
- padding: 1rem;
74
- }
75
-
76
- .animated-text {
77
- font-size: 1.5rem;
78
- }
79
-
80
- .stButton > button {
81
- font-size: 0.9rem;
82
- }
83
- }
84
-
85
- @media (min-width: 768px) {
86
- .stApp {
87
- padding: 2rem;
88
- }
89
-
90
- .animated-text {
91
- font-size: 2rem;
92
- }
93
-
94
- .stButton > button {
95
- font-size: 1rem;
96
- }
97
- }
98
-
99
- h1, h2, h3 {
100
- color: #4CAF50;
101
- }
102
-
103
- .stButton > button {
104
- background-color: transparent;
105
- color: white;
106
- border: 3px solid #4CAF50;
107
- border-radius: 5px;
108
- padding: 0.5rem 1rem;
109
- font-size: 1rem;
110
- font-weight: 900;
111
- transition: all 0.3s ease;
112
- }
113
-
114
- /* Hover styles for buttons: text turns black, border turns lime */
115
- .stButton > button:hover {
116
- background-color: transparent; /* Change background color */
117
- color: lime; /* Text color turns black */
118
- border: 6px solid lime; /* Border becomes lime */
119
- transform: translateY(-2px); /* Lift effect */
120
- box-shadow: 0 4px 6px rgba(74, 128, 35, 0.1); /* Subtle shadow */
121
- }
122
-
123
- /* Translation box, edit profile toggle, upload image box */
124
- .stSelectbox > div > div > select,
125
- .stCheckbox > label,
126
- .stFileUploader > div {
127
- background-color: black !important;
128
- color: #45a049 !important;
129
- }
130
-
131
- /* Register section specific styles */
132
- [data-testid="stNumberInput"] > div > div > input,
133
- [data-testid="stSelectbox"] > div > div > select,
134
- .stButton > button[kind="primaryFormSubmit"] {
135
- background-color: #45a049 !important;
136
- color: #000 !important;
137
- }
138
-
139
- /* Black spinner */
140
- .stSpinner > div > div {
141
- border-top-color: black !important;
142
- }
143
-
144
- /* Add this to center-align elements on the home page */
145
- .home-container {
146
- text-align: center; /* Center-align text */
147
- }
148
-
149
- /* Add this for the heading shadow effect */
150
- h1.animated-text {
151
- text-shadow: 2px 2px 5px black; /* Black shadow border effect */
152
- }
153
-
154
- /* Center-align subtext and buttons in the home page */
155
- .home-container .subtext, /* Assuming the subtext has a class of 'subtext' */
156
- .stButton {
157
- text-align: center; /* Center-align text */
158
- }
159
-
160
- /* Add 3D effect to the heading in the home page */
161
- h1.animated-text {
162
- text-shadow: 2px 2px 5px black, 0 0 25px #174919, 0 0 5px #00ff08; /* 3D shadow effect */
163
- }
164
-
165
- /* Increase size of heading in the home page */
166
- .home-container h1.animated-text {
167
- font-size: 4.5rem; /* Adjust the size as needed */
168
- }
169
-
170
- /* Increase size of subtext in the home page */
171
- .home-container .subtext {
172
- text-align: center;
173
- font-size: 1rem; /* Adjust the size as needed */
174
- margin-top: 0.25rem; /* Optional: Add some space above the subtext */
175
- }
176
-
177
- /* Reduce distance between the two buttons in home page */
178
- .stButton {
179
- margin: 0.5rem; /* Adjust margin to reduce distance */
180
- }
181
-
182
- /* Center-align buttons in the home page */
183
- .home-button-container {
184
- display: flex;
185
- justify-content: center; /* Center-align buttons */
186
- margin-top: 1rem; /* Optional: Add some space above the buttons */
187
- }
188
-
189
- /* Ensure buttons are displayed inline */
190
- .stButton > button {
191
- margin: 0 0.5rem; /* Adjust margin to reduce distance between buttons */
192
- }
193
-
 
1
+ body {
2
+ font-family: 'Roboto', sans-serif;
3
+ background-color: transparent;
4
+ }
5
+
6
+ .stApp {
7
+ max-width: 100%;
8
+ margin: 0;
9
+ padding: 2rem;
10
+ background-color: transparent;
11
+ border-radius: 10px;
12
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
13
+ }
14
+
15
+ .reportview-container {
16
+ background-color: transparent;
17
+ }
18
+
19
+ .reportview-container .main {
20
+ background-color: transparent;
21
+ }
22
+
23
+ .reportview-container .main .block-container {
24
+ background-color: transparent;
25
+ }
26
+
27
+ .stNavigation {
28
+ background-color: transparent !important;
29
+ }
30
+
31
+ .stNavigation .css-218ufz,
32
+ .stNavigation .css-f0ifqm,
33
+ .stNavigation .css-jc4t97 {
34
+ background-color: transparent !important;
35
+ }
36
+
37
+ /* Word-by-word animation for "Welcome to Health & Nutrition Analyzer" */
38
+ .animated-text {
39
+ opacity: 0;
40
+ animation: fade-in 1s ease-in-out forwards;
41
+ }
42
+
43
+ @keyframes fade-in {
44
+ 0% {
45
+ opacity: 0;
46
+ transform: translateY(20px);
47
+ }
48
+ 100% {
49
+ opacity: 1;
50
+ transform: translateY(0);
51
+ }
52
+ }
53
+
54
+ .animated-text span {
55
+ display: inline-block;
56
+ animation: slide-in 0.5s ease-in-out forwards;
57
+ }
58
+
59
+ @keyframes slide-in {
60
+ 0% {
61
+ opacity: 0;
62
+ transform: translateX(-20px);
63
+ }
64
+ 100% {
65
+ opacity: 1;
66
+ transform: translateX(0);
67
+ }
68
+ }
69
+
70
+ /* Responsive styles for mobile only */
71
+ @media (max-width: 767px) {
72
+ .stApp {
73
+ padding: 1rem;
74
+ }
75
+
76
+ .home-container h1.animated-text {
77
+ font-size: 2.3rem !important;
78
+ }
79
+
80
+ .home-container .subtext {
81
+ font-size: 1rem !important;
82
+ }
83
+
84
+ .stButton > button {
85
+ font-size: 0.8rem;
86
+ padding: 0.3rem 0.6rem;
87
+ }
88
+ }
89
+
90
+ h1, h2, h3 {
91
+ color: #4CAF50;
92
+ }
93
+
94
+ .stButton > button {
95
+ background-color: transparent;
96
+ color: white;
97
+ border: 3px solid #4CAF50;
98
+ border-radius: 5px;
99
+ padding: 0.5rem 1rem;
100
+ font-size: 1rem;
101
+ font-weight: 900;
102
+ transition: all 0.3s ease;
103
+ }
104
+
105
+ /* Hover styles for buttons: text turns black, border turns lime */
106
+ .stButton > button:hover {
107
+ background-color: transparent;
108
+ color: lime;
109
+ border: 6px solid lime;
110
+ transform: translateY(-2px);
111
+ box-shadow: 0 4px 6px rgba(74, 128, 35, 0.1);
112
+ }
113
+
114
+ /* Translation box, edit profile toggle, upload image box */
115
+ .stSelectbox > div > div > select,
116
+ .stCheckbox > label,
117
+ .stFileUploader > div {
118
+ background-color: black !important;
119
+ color: #45a049 !important;
120
+ }
121
+
122
+ /* Register section specific styles */
123
+ [data-testid="stNumberInput"] > div > div > input,
124
+ [data-testid="stSelectbox"] > div > div > select,
125
+ .stButton > button[kind="primaryFormSubmit"] {
126
+ background-color: #45a049 !important;
127
+ color: #000 !important;
128
+ }
129
+
130
+ /* Black spinner */
131
+ .stSpinner > div > div {
132
+ border-top-color: black !important;
133
+ }
134
+
135
+ /* Add this to center-align elements on the home page */
136
+ .home-container {
137
+ text-align: center;
138
+ }
139
+
140
+ /* Add this for the heading shadow effect */
141
+ h1.animated-text {
142
+ text-shadow: 2px 2px 5px black;
143
+ }
144
+
145
+ /* Center-align subtext and buttons in the home page */
146
+ .home-container .subtext,
147
+ .stButton {
148
+ text-align: center;
149
+ }
150
+
151
+ /* Add 3D effect to the heading in the home page */
152
+ h1.animated-text {
153
+ text-shadow: 2px 2px 5px black, 0 0 25px #174919, 0 0 5px #00ff08;
154
+ }
155
+
156
+ /* Increase size of heading in the home page */
157
+ .home-container h1.animated-text {
158
+ font-size: 4.5rem;
159
+ }
160
+
161
+ /* Increase size of subtext in the home page */
162
+ .home-container .subtext {
163
+ text-align: center;
164
+ font-size: 1.5rem;
165
+ margin-top: 0.25rem;
166
+ }
167
+
168
+ /* Reduce distance between the two buttons in home page */
169
+ .stButton {
170
+ margin: 0.5rem;
171
+ }
172
+
173
+ /* Center-align buttons in the home page */
174
+ .home-button-container {
175
+ display: flex;
176
+ justify-content: center;
177
+ margin-top: 1rem;
178
+ }
179
+
180
+ /* Ensure buttons are displayed inline */
181
+ .stButton > button {
182
+ margin: 0 0.5rem;
183
+ }