-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
61 lines (60 loc) · 1.31 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
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
h1{
margin-bottom: 50px;
font-family: 'Courier New', Courier, monospace;
text-align: center;
}
body{
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
flex-wrap: wrap;
min-height: 100vh;
background: linear-gradient(45deg,lightBlue,violet);
background: cover;
}
.calculator{
display: grid;
position: relative;
box-shadow: 10px 10px 10px 10px black;
}
.calculator .value{
grid-column: span 4;
height: 100px;
padding: 10px;
background: gray;
border: none;
outline: none;
font-size: 20px;
text-align: right;
}
.calculator span{
display: grid;
width: 80px;
height: 80px;
background: #0c2835;
place-items: center;
color: white;
font-size: 20px;
border: 2px solid rgba(0, 0, 0, 0.1);
}
span:active{
background-color: rgb(99, 205, 50);
color: black;
}
.calculator span.clear{
background: #ff3077;
}
.calculator span.plus{
grid-row: span 2;
height: 160px;
}
.calculator .equal{
background: #03b1ff;
}