Spaces:
Sleeping
Sleeping
Update style.css
Browse files
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:
|
78 |
-
}
|
79 |
-
|
80 |
-
.
|
81 |
-
font-size:
|
82 |
-
}
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
}
|
113 |
-
|
114 |
-
/*
|
115 |
-
.
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
.
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
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 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|