-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcal.css
115 lines (92 loc) · 2.65 KB
/
cal.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
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
.container{ /*this is outer box*/
width: 100%;
height: 100vh;
background-color: rgb(240, 240, 246);
/* background: linear-gradient(to top right, rgb(243, 159, 159),rgb(146, 243, 243)); */
/*! for center align of calculator-box we have to use 3 properties*/
display: flex;
justify-content: center;
align-items: center;
}
.calculator-box{ /*this is calculator box*/
width: 290px;
height: 460px;
background-color: white;
border: transparent;
border-radius: 10px;
box-shadow: rgb(150, 148, 148) 1.95px 1.95px 2.6px;
/*! for center align of calculator-body we have to use 3 properties*/
display: flex;
justify-content: center;
align-items: center;
}
.calculator-box .calculator-body{ /*Inner body of calculator*/
width: 280px;
height:450px ;
border: transparent;
border-radius: 10px;
background: linear-gradient(to top right, rgb(248, 144, 144),rgb(124, 248, 248));
box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px, rgba(14, 30, 37, 0.32) 0px 2px 10px 0px;
}
/* this is all about display*/
.calculator-box .calculator-body .display{
width: 100%;
height: 30%;
border: 2px solid white;
border-radius: 10px;
/*! for center alignment of input we have to use three properties */
display: flex;
justify-content: center;
align-items: center;
}
/* this is all about input field*/
.calculator-box .calculator-body .display input{
width: 100%;
height: 100%;
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
font-size: 50px;
font-weight: 700;
color: white;
background-color: transparent;
border: none;
text-align: end;
}
/*!changing the color of placeholder in input filed*/
::placeholder{
color: rgb(245, 245, 244);
}
/* this is all about buttons body*/
.calculator-box .calculator-body .button{
width: 100%;
height: 66%;
/* border: 2px solid white; */
border-radius: 10px;
}
/*now this is all about buttons*/
.calculator-box .calculator-body .button .btn{
width: 20%;
height: 20%;
border: none;
border-radius: 50%;
margin-left: 9px;
background: #ffffff09;
font-family: sans-serif;
font-weight: bold;
color: rgb(250, 247, 247);
/* font-size: 30px; */
}
/*this is all about toggle button*/
.bi{
font-size: 15px;
}
/* when we hover on button*/
.calculator-box .calculator-body .button .btn:hover{
background-color: #ffffff09;
font-size: 15px;
box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset;
}