-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
95 lines (84 loc) · 1.74 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
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root{
--primary-bg: #140b27;
--pure-white: #ffffff;
--grey-clr: #8080809b;
--light-blue: #cbe2f1a5;
--segoe-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body{
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
background-color: var(--primary-bg);
}
.calculator-big-screen{
width: 30%;
padding: 20px 10px;
border-radius: 15px;
background-color: var(--pure-white);
box-shadow: 0 0 10px var(--grey-clr);
}
.number-box{
width: 95%;
height: 100px;
display: block;
border-radius: 15px;
margin: 20px auto;
border: none;
box-shadow: 0 0 7px var(--grey-clr);
font-size: 48px;
text-align: right;
font-family: var(--segoe-font);
font-weight: bold;
padding-right: 15px;
pointer-events: none;
}
.calculator-container{
display: flex;
margin: 0 20px;
justify-content: space-between;
align-items: center;
gap: 30px;
padding: 10px 0;
}
.btn,.clear-btn,.backsp-btn,.equal-to{
width: 100%;
height: 50px;
border: none;
outline: none;
border-radius: 10px;
background-color: #cbe2f1a5;
box-shadow: 0 0 2px var(--grey-clr);
cursor: pointer;
font-size: 24px;
transition: 0.25s;
font-weight: bold;
font-family: var(--segoe-font);
}
.btn:hover{
opacity: 0.7;
}
.operation-btn{
background-color: #4B99F7;
color: var(--pure-white);
}
.equal-to{
background-color: #FC3C64;
color: var(--pure-white);
}
@media (min-width: 768px) and (max-width: 1024px){
.calculator-big-screen{
width: 60%;
}
}
@media (max-width: 767px){
.calculator-big-screen{
width: 90%;
}
}