-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
executable file
·74 lines (59 loc) · 1.43 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
*, *::before, *::after {
box-sizing: border-box;
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
font-weight: normal;
}
body {
padding: 0;
margin: 0;
background: linear-gradient(to right, #c44bb0, #3122749a);
}
.calculator-grid {
display: grid;
justify-content: center;
align-content:center ;
min-height: 100vh;
grid-template-columns: repeat(4,100px);
grid-template-rows: minmax(120px,auto)repeat(5,100px);
}
.calculator-grid > button {
cursor:pointer;
font-size: 2rem;
border: 1px solid rgba(99, 93, 96, 0.397);
outline:none;
background-color: rgba(182, 180, 167, 0.5) ;
}
.calculator-grid > button:hover {
background-color:rgba(175, 102, 235, 0.9);
}
.span-two {
grid-column: span 2;
}
.equal-button {
grid-column: span 2;
border-bottom-right-radius: 25px;
}
.dot {
border-bottom-left-radius: 25px;
}
.output{
grid-column: 1/-1;
background-color: rgba(104, 117, 153, 0.582);
display: flex;
align-items: flex-end;
justify-content: space-around;
flex-direction: column;
padding: 10px;
word-wrap: break-word;
word-break: break-all;
border-top-left-radius: 25px;
border-top-right-radius: 25px;
}
.output .previous-operand {
color: rgba(255, 244, 244, 0.658);
font-size: 2rem;
}
.output .current-operand {
color: rgba(255, 255, 255, 0.918);
font-size: 3rem;
}