forked from Lakshita02-adv/Calculator-Project-HTML5-CSS-JS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
57 lines (50 loc) · 1.13 KB
/
style.css
File metadata and controls
57 lines (50 loc) · 1.13 KB
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
*{
box-sizing: border-box;
font-family: 'Orbitron', sans-serif;
}
body{
padding: 0;
margin: 0;
background: linear-gradient(to right, rgb(255, 0, 212), rgb(102, 45, 236));
}
.calculator-grid{
display:grid;
min-height: 100vh;
justify-content: center;
align-content: center;
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 white;
background-color: rgba(255, 255, 255, .75);
outline:none;
}
.calculator-grid>button:hover{
background-color: rgba(255, 255, 255, .9);
}
.span-two{
grid-column: span 2;
}
.output{
grid-column: 1/-1;
display: flex;
flex-direction: column;
/* align-content: flex-start; */
align-items: flex-end;
justify-content: space-around;
background-color: rgba(0,0,0, .75);
padding: 10px;
word-wrap: break-word;
word-break: break-all;
}
.output .previous-operand{
color:rgba(255, 255, 255, .75);
font-size: 1.5rem;
}
.output .current-operand{
color:white;
font-size: 2.5rem;
}