forked from Jeaanibarra/simple-calculator-with-JavaScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
80 lines (75 loc) · 1.39 KB
/
styles.css
File metadata and controls
80 lines (75 loc) · 1.39 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@500&display=swap');
*
{
box-sizing: border-box;
font-family: 'M PLUS Rounded 1c', sans-serif;
font-weight: 500;
}
body
{
padding: 0;
margin: 0;
background: rgb(10,246,191);
background: linear-gradient(90deg, rgba(10,246,191,1) 33% rgba(5,212,252,1) 95%);
background-size: 300%;
animation: bg-animation 5s infinite alternate;
}
@keyframes bg-animation{
0%{
background-position: left;
}
100%{
background-position: right;
}
}
.calc-grid
{
display: grid;
grid-template-columns: repeat(4,100px);
grid-template-rows: minmax(120px, auto), repeat(5,100px);
align-content: center;
justify-content: center;
min-height: 100vh;
}
.calc-grid > button
{
cursor: pointer;
font-size: 2rem;
border: 1px solid #fff;
outline: none;
background-color: #e8ffff;
padding: 10px;
}
.calc-grid > button:hover
{
background-color: #cbf1f5;
}
.calc-grid > button:active
{
transform: scale(1.04);
}
.span-two
{
grid-column: span 2;
}
.output
{
grid-column: 1/-1;
display: flex;
flex-direction: column;
align-content: flex-end;
justify-content: space-around;
padding: 30px;
background-color: #364f6b;
height: 150px;
}
.out .previous-op
{
color: rgba(255,255,0.75);
font-size: 1.5rem;
}
.output .current-op
{
color: #fff;
font-size: 2.5rem
}