-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
94 lines (82 loc) · 2.08 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
body {
font-family: 'Arial', sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #f4f4f4;
margin: 0;
padding: 0;
}
.converter-container {
background: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
width: 350px;
}
h1 {
text-align: center;
color: #333;
margin-bottom: 20px;
}
label {
display: block;
margin-bottom: 5px;
font-weight: bold;
color: #555;
}
input, select, button {
display: block;
width: 100%;
padding: 10px;
margin-bottom: 15px;
border-radius: 4px;
border: 1px solid #ddd;
box-sizing: border-box;
}
select {
cursor: pointer;
-webkit-appearance: none; /* Removes default arrow for Webkit browsers */
-moz-appearance: none; /* Removes default arrow for Firefox */
appearance: none; /* Removes default arrow for modern browsers */
background: url('data:image/svg+xml;utf8,<svg fill="black" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat;
background-position: right 10px center;
background-size: 12px;
/* Ensure background color and text color is visible */
color: #333;
background-color: #fff;
}
/* Style adjustments for <option> elements */
select option {
color: #333; /* Dark text color for visibility */
background-color: #fff; /* Light background for contrast */
padding: 5px; /* Spacing for readability */
}
button {
background-color: #007bff;
color: white;
border-color: #007bff;
cursor: pointer;
}
button:hover {
background-color: #0056b3;
border-color: #0056b3;
}
#result {
font-size: 20px;
margin-top: 10px;
text-align: center;
}
/* Additional CSS for focus and hover states */
input:focus, select:focus, button:focus {
outline: none;
border-color: #007bff;
}
input:hover, select:hover {
border-color: #aaa;
}
/* Ensure that options are visible during a focus state */
select:focus option {
background-color: #fff;
}