forked from stevevaijohnpettruci/temperature-converter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
83 lines (73 loc) · 1.45 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
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
body {
font-family: 'Arial', sans-serif;
background-color: #f0f2f5;
color: #333;
margin: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
}
#kelvin {
fill: #00FF00; /* change the color of the Kelvin icon to green */
}
div {
text-align: center;
margin-bottom: 20px;
}
h1 {
color: #007bff;
}
main {
background-color: #fff;
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
max-width: 400px;
width: 100%;
}
section {
margin-bottom: 20px;
}
label {
display: block;
font-weight: bold;
margin-bottom: 8px;
color: #007bff;
}
.input-container {
position: relative;
}
input[type="number"] {
width: 100%;
padding: 10px;
padding-right: 40px; /* Space for the icon */
border: 1px solid #ddd;
border-radius: 5px;
font-size: 16px;
box-sizing: border-box;
transition: border-color 0.3s, box-shadow 0.3s;
}
input[type="number"]:focus {
border-color: #007bff;
outline: none;
box-shadow: 0 0 8px rgba(0, 123, 255, 0.25);
}
input[type="number"]::placeholder {
color: #aaa;
}
.input-icon {
position: absolute;
right: 10px;
top: 50%;
transform: translateY(-50%);
color: #007bff;
fill: currentColor;
}