SURESHBEEKHANI commited on
Commit
d716b42
·
verified ·
1 Parent(s): f4f0f4e

Update static/styles.css

Browse files
Files changed (1) hide show
  1. static/styles.css +114 -166
static/styles.css CHANGED
@@ -1,166 +1,114 @@
1
- /* Base Styles */
2
- body {
3
- font-family: 'Roboto', sans-serif;
4
- background: url('static/img/bg.jpg') no-repeat center center fixed;
5
- background-size: cover;
6
- margin: 0;
7
- padding: 0;
8
- color: #333;
9
- }
10
-
11
- /* Header Styles */
12
- header {
13
- background-color: #007bff; /* Primary color */
14
- color: #fff;
15
- padding: 2rem 0;
16
- text-align: center;
17
- position: relative;
18
- box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
19
- }
20
-
21
- header .logo {
22
- max-width: 100px;
23
- margin-bottom: 1rem;
24
- }
25
-
26
- /* Main Section */
27
- main {
28
- padding: 2rem 0;
29
- }
30
-
31
- .container {
32
- max-width: 600px; /* Centering the form */
33
- margin: 0 auto;
34
- padding: 0 1rem;
35
- }
36
-
37
- /* Section Title */
38
- h3 {
39
- font-size: 1.8rem;
40
- margin-bottom: 1.5rem;
41
- text-align: center;
42
- color: #007bff;
43
- }
44
-
45
- /* Form Styles */
46
- form {
47
- background: linear-gradient(to bottom right, rgba(6, 142, 253, 0.9), rgba(240, 240, 240, 0.9));
48
- padding: 2.5rem;
49
- border-radius: 10px;
50
- box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
51
- transition: transform 0.3s;
52
- max-width: 600px;
53
- width: 100%;
54
- margin: 0 auto;
55
- }
56
-
57
- form:hover {
58
- transform: translateY(-5px);
59
- }
60
-
61
- /* Form Inputs */
62
- .form-group label {
63
- font-weight: 600;
64
- margin-bottom: 0.5rem;
65
- display: block; /* Ensure labels are block-level */
66
- }
67
-
68
- .form-control {
69
- border-radius: 5px;
70
- font-size: 1rem;
71
- padding: 0.75rem;
72
- border: 1px solid #ccc;
73
- transition: border-color 0.3s, box-shadow 0.3s;
74
- background: #fff; /* White background for inputs */
75
- box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
76
- }
77
-
78
- .form-control:focus {
79
- border-color: #007bff;
80
- box-shadow: 0 0 8px rgba(0, 123, 255, 0.25), inset 0 2px 5px rgba(0, 0, 0, 0.1);
81
- outline: none;
82
- }
83
-
84
- /* Input Placeholder Styling */
85
- .form-control::placeholder {
86
- color: #999; /* Light gray for placeholder */
87
- font-style: italic; /* Italicize the placeholder text */
88
- }
89
-
90
- /* Submit Button */
91
- .btn-primary {
92
- font-size: 1.2rem;
93
- font-weight: 700;
94
- padding: 0.75rem 1.5rem;
95
- border-radius: 5px;
96
- width: 100%;
97
- transition: background-color 0.3s, transform 0.3s;
98
- background-color: #007bff;
99
- border: none;
100
- box-shadow: 0 4px 8px rgba(0, 123, 255, 0.25);
101
- }
102
-
103
- .btn-primary:hover {
104
- background-color: #0056b3;
105
- transform: translateY(-2px);
106
- }
107
-
108
- /* Prediction Result Styles */
109
- .prediction-result {
110
- background-color: rgba(255, 255, 255, 0.9); /* White background with slight transparency */
111
- border-radius: 15px; /* Rounded corners */
112
- padding: 20px; /* Add padding for spacing */
113
- box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
114
- margin-top: 30px; /* Space above */
115
- width: 100%;
116
- }
117
-
118
- .result-title {
119
- font-size: 24px; /* Larger font size for the title */
120
- font-weight: bold; /* Bold text */
121
- margin-bottom: 10px; /* Space below title */
122
- }
123
-
124
- .result-value {
125
- font-size: 18px; /* Font size for result */
126
- color: #007bff; /* Use primary color for emphasis */
127
- font-weight: 700; /* Bold font weight */
128
- }
129
-
130
-
131
- /* Footer Styles */
132
- footer {
133
- background-color: #007bff;
134
- color: #fff;
135
- text-align: center;
136
- padding: 1rem;
137
- margin-top: 2rem;
138
- }
139
-
140
- footer p {
141
- margin: 0;
142
- font-size: 1rem;
143
- }
144
-
145
- /* Responsive Design */
146
- @media (max-width: 768px) {
147
- header h1 {
148
- font-size: 2rem;
149
- }
150
-
151
- header p {
152
- font-size: 1rem;
153
- }
154
-
155
- .container {
156
- padding: 0 0.5rem; /* Reduced padding for smaller screens */
157
- }
158
-
159
- .btn-primary {
160
- font-size: 1rem; /* Slightly smaller button on small screens */
161
- }
162
-
163
- h3 {
164
- font-size: 1.5rem; /* Smaller section title on small screens */
165
- }
166
- }
 
1
+ /* General Styles */
2
+ body {
3
+ font-family: 'Roboto', sans-serif;
4
+ background-color: #f0f4f8; /* Light background color */
5
+ }
6
+
7
+ /* App Window */
8
+ .app-window {
9
+ max-width: 800px; /* Set maximum width */
10
+ margin: auto; /* Center align */
11
+ border-radius: 10px; /* Rounded corners */
12
+ box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
13
+ background-color: #ffffff; /* White background for content */
14
+ padding: 2rem; /* Padding for content */
15
+ }
16
+
17
+ /* Header Section */
18
+ .bg-primary {
19
+ background-color: #007bff !important; /* Primary blue color */
20
+ }
21
+
22
+ /* Logo Styles */
23
+ .logo {
24
+ width: 120px; /* Adjust logo size */
25
+ height: auto; /* Maintain aspect ratio */
26
+ }
27
+
28
+ /* Form Styles */
29
+ h2 {
30
+ color: #333; /* Darker text for headings */
31
+ margin-bottom: 1.5rem; /* Spacing below heading */
32
+ }
33
+
34
+ .form-group {
35
+ margin-bottom: 1.5rem; /* Spacing between form groups */
36
+ }
37
+
38
+ .col-form-label {
39
+ font-weight: bold; /* Bold labels */
40
+ color: #0056b3; /* Dark blue for labels */
41
+ }
42
+
43
+ /* Input and Select Styles */
44
+ input.form-control,
45
+ select.form-control {
46
+ border: 2px solid #ced4da; /* Thicker border for input and select */
47
+ border-radius: 0.25rem; /* Rounded input corners */
48
+ transition: border-color 0.3s, box-shadow 0.3s; /* Transition for border color and shadow */
49
+ padding: 0.5rem; /* Add padding to inputs */
50
+ }
51
+
52
+ input.form-control:focus,
53
+ select.form-control:focus {
54
+ border-color: #28a745; /* Green border on focus */
55
+ box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25); /* Green shadow effect on focus */
56
+ }
57
+
58
+ /* Button Styles */
59
+ .btn-primary {
60
+ background-color: #28a745; /* Green button color */
61
+ border: none; /* Remove border */
62
+ color: #ffffff; /* White text color */
63
+ transition: background-color 0.3s, transform 0.3s; /* Transition for hover effect */
64
+ }
65
+
66
+ .btn-primary:hover {
67
+ background-color: #218838; /* Darker green on hover */
68
+ transform: scale(1.05); /* Slightly enlarge button on hover */
69
+ }
70
+
71
+ /* Result Display Styles */
72
+ .prediction-result {
73
+ background-color: #e9f7ef; /* Light green background */
74
+ border-left: 5px solid #28a745; /* Green left border */
75
+ padding: 1rem; /* Padding for the result box */
76
+ border-radius: 5px; /* Rounded corners */
77
+ }
78
+
79
+ .result-title {
80
+ color: #155724; /* Dark green for title */
81
+ font-weight: bold; /* Bold title */
82
+ }
83
+
84
+ .result-value {
85
+ font-size: 1.5rem; /* Larger font for result value */
86
+ color: #155724; /* Dark green for result value */
87
+ }
88
+
89
+ /* Footer Styles */
90
+ footer {
91
+ margin-top: 20px; /* Space above the footer */
92
+ background-color: #007bff; /* Footer background */
93
+ padding: 1rem 0; /* Padding for footer */
94
+ color: white; /* White text color for footer */
95
+ }
96
+
97
+ footer p {
98
+ margin: 0; /* Remove margin */
99
+ }
100
+
101
+ /* Responsive Styles */
102
+ @media (max-width: 576px) {
103
+ .app-window {
104
+ padding: 1rem; /* Less padding on smaller screens */
105
+ }
106
+
107
+ .logo {
108
+ width: 100px; /* Smaller logo for mobile */
109
+ }
110
+
111
+ h2 {
112
+ font-size: 1.5rem; /* Smaller heading size for mobile */
113
+ }
114
+ }