-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
100 lines (89 loc) · 2.03 KB
/
style.css
File metadata and controls
100 lines (89 loc) · 2.03 KB
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
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
html, body{
width: 100%;
height: 100%;
}
.main-page{
width: 100%;
height: 100%;
background-color: #0f172a;
display: flex;
align-items: center;
justify-content: center;
padding: clamp(12px, 2vw, 24px);
}
.center-box{
width: clamp(260px, 35vw, 420px);
height: auto;
max-height: 85vh;
background-color: #1e293b;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
padding: clamp(12px, 2vw, 20px) clamp(12px, 2.2vw, 18px) clamp(16px, 2.5vw, 24px);
border: 2px solid rgba(255, 255, 255, 0.08);
border-radius: 8px;
}
.center-box h1{
color: #38bdf8;
font-family: sans-serif;
font-weight: bolder ;
font-size: clamp(18px, 2.4vw, 24px);
margin-bottom: clamp(6px, 1.5vw, 8px);
}
.title-line{
width: 100%;
height: 1px;
background-color: rgba(255, 255, 255, 0.18);
margin-bottom: clamp(10px, 2vw, 16px);
}
.calc-input{
width: 100%;
background-color: #0f172a;
color: #e2e8f0;
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 6px;
padding: clamp(8px, 1.6vw, 12px) clamp(8px, 1.6vw, 10px);
font-family: sans-serif;
font-size: clamp(14px, 2vw, 16px);
margin-bottom: clamp(12px, 2vw, 18px);
outline: none;
}
.calc-input::placeholder{
color: rgba(226, 232, 240, 0.6);
}
.buttons{
width: 100%;
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: clamp(8px, 1.8vw, 14px);
padding-top: 6px;
}
.numBtn,
.opBtn,
.eqBtn{
background-color: #0f172a;
color: #e2e8f0;
border: 1px solid rgba(255, 255, 255, 0.14);
border-radius: 6px;
padding: clamp(10px, 2.2vw, 14px) 0;
font-family: sans-serif;
font-size: clamp(14px, 2.4vw, 18px);
cursor: pointer;
transition: transform 0.1s ease, background-color 0.2s ease;
}
.numBtn:hover,
.opBtn:hover,
.eqBtn:hover{
background-color: #1f2a44;
}
.numBtn:active,
.opBtn:active,
.eqBtn:active{
transform: scale(0.98);
}