-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcalculator.css
115 lines (103 loc) · 2.19 KB
/
calculator.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;
font-family: Arial, Helvetica, sans-serif;
letter-spacing: 2px;
}
html{
font-size: 52%;
scroll-behavior: smooth;
}
.calculator h1{
text-align: center;
font-size: 3rem;
border: 2px solid #000;
border-top:none ;
border-radius: 20px/50px 40px 90px;
box-shadow: 0 0 12px rgba(12,12,12,99);
background: rgba(122, 86, 89, 0.133);
display: block;
margin-top: 0;
padding: 12px;
font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
font-weight: 700;
color:#ac93;
text-decoration: none;
letter-spacing: 5px;
transition: all 0.5s ease-in-out;
&:hover{
color:rgb(141, 104, 104);
}
}
body{
min-height: 100vh;
max-width: 100%;
display: flex;
justify-content: center;
align-items: center;
background:linear-gradient(45deg,#0a0a0a,#3a4452);
position: relative;
}
h1{
text-decoration: underline;
color:rgba(255, 255, 0,0.5);
align-items: start;
top:0;
}
.calculator{
padding:15px;
box-shadow: 0 0 15px #000;
border: 2px solid rgb(116,114,114);
border-radius: 2rem;
}
.display input{
background: transparent;
width: 360px;
border: none;
outline:none;
height:100%;
padding:2rem;
margin:10px;
caret-color: #cd8282;
color:aliceblue;
border-bottom: 2px solid #fff;
font-size: 40px;
text-align: right;
cursor:pointer;
& ::placeholder{
color:#fff;
}
}
button{
width: 8rem;
height: 8rem;
border-radius:50%;
/* background-color: rgba(166,124,0,0.9); */
border:0.1rem solid #3a4452;
margin:15px;
padding: 0.4rem;
text-align: center;
font-size: 25px;
font-weight: 400;
border: 0;
/* box-shadow: -5px -6px 15px #0a0a0a; */
background: transparent;
color:white;
outline: 2px solid #313131;
outline-offset: 3px;
cursor: pointer;
&:active{
background-color: #000;
transform: translate(2px,2px);
}
&.opr{
color:#000;
background-color: rgba(166,124,0,0.9);
font-weight: 700;
}
}
#equals{
background-color: rgb(151, 31, 31);
font-weight: 500;
}