-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
228 lines (194 loc) · 4.38 KB
/
style.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
/* General Styles */
body {
background-color: #121212; /* Dark background color */
padding: 0;
margin: 0;
font-family: 'Arial', sans-serif;
color: #e0e0e0; /* Light text color for better readability */
}
/* Container */
.container {
background-color: #1e1e1e; /* Slightly lighter dark color for the container */
margin: auto;
margin-top: 20px;
padding: 20px;
height: auto; /* Adjust height based on content */
width: 90%;
max-width: 500px;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}
/* Center Alignment */
.center {
text-align: center;
width: 100%;
}
/* Input Fields */
.input {
height: 40px;
width: 100%;
max-width: 150px;
border-radius: 5px;
background-color: #333; /* Darker background for inputs */
border: 1px solid #444; /* Slightly lighter border */
color: #e0e0e0; /* Light text color */
text-align: center;
font-size: 14px;
margin: 8px 0;
transition: border-color 0.3s, box-shadow 0.3s;
}
.input:focus {
border-color: #bb86fc; /* Light purple for focus */
box-shadow: 0 0 8px rgba(187, 134, 252, 0.3);
outline: none;
}
/* Labels and Sections */
.contain {
padding: 10px 0;
font-size: 16px;
color: #e0e0e0;
}
h2 {
text-align: center;
color: #bb86fc; /* Light purple for headings */
margin: 10px 0;
}
/* Buttons */
.btn {
background-color: #6200ee; /* Purple button */
border: none;
border-radius: 5px;
color: #fff;
padding: 10px 20px;
text-align: center;
font-size: 16px;
transition: background-color 0.3s, transform 0.3s;
cursor: pointer;
margin: 10px 0;
display: inline-block;
}
.btn:hover {
background-color: #3700b3; /* Darker purple for hover */
transform: scale(1.05);
}
.btn:active {
background-color: #03dac6; /* Teal for active state */
transform: scale(0.98);
}
.btn-clear {
background-color: #cf6679; /* Red for clear button */
}
.btn-clear:hover {
background-color: #b00020; /* Darker red for hover */
}
/* Result Section */
.result {
margin-top: 10px;
padding: 10px;
background-color: #333; /* Dark background for result section */
border-radius: 10px;
}
/* Name and USN Container */
.name-usn-container {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}
.input-group {
display: flex;
flex-direction: column;
width: 48%; /* Adjust width to fit within the container */
}
.input-group label {
margin-bottom: 5px;
}
.name-group {
flex: 1;
margin-right: 10px; /* Space between name and USN fields */
}
.usn-group {
flex: 1;
}
/* Tooltip Styles */
.tooltip {
position: relative;
display: inline-block;
}
.tooltip .tooltiptext {
visibility: hidden;
width: 160px;
background-color: #333;
color: #fff;
text-align: center;
border-radius: 6px;
padding: 5px;
position: absolute;
z-index: 1;
bottom: 125%; /* Position the tooltip above the input */
left: 50%;
margin-left: -80px;
opacity: 0;
transition: opacity 0.3s;
}
.tooltip:hover .tooltiptext {
visibility: visible;
opacity: 1;
}
/* Media Queries for Responsive Design */
/* For devices with a max width of 600px (mobile phones) */
@media (max-width: 600px) {
.container {
width: 95%; /* Make container width more fluid */
padding: 10px;
margin-top: 10px;
}
.input {
height: 35px;
font-size: 14px;
max-width: 100%; /* Adjust width to fit container */
}
.btn {
padding: 8px 16px;
font-size: 14px;
}
h2 {
font-size: 20px;
}
.contain {
font-size: 14px;
}
.result {
font-size: 16px;
padding: 8px;
}
/* Adjustments for smaller screens */
.name-usn-container {
flex-direction: column;
}
}
/* For devices with a max width of 400px (smaller mobile phones) */
@media (max-width: 400px) {
.container {
width: 100%; /* Full width for very small screens */
}
.input {
height: 30px;
font-size: 12px;
max-width: 100%; /* Adjust width to fit container */
}
.btn {
padding: 6px 12px;
font-size: 12px;
}
h2 {
font-size: 18px;
}
.contain {
font-size: 12px;
}
.result {
font-size: 14px;
padding: 6px;
}
}