-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
89 lines (78 loc) · 1.63 KB
/
styles.css
File metadata and controls
89 lines (78 loc) · 1.63 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
81
82
83
84
85
86
87
88
89
*, *::before, *::after
{
box-sizing: border-box;
color: rgb(255, 168, 76);
font-weight: normal;
font-family: 'Press Start 2P', sans-serif;
}
body
{
margin: 0em;
padding: 0em;
background-image: url(./images/background/webpage.jpg);
background-size: cover;
}
.calculator-grid
{
min-height: 100vh;
display: grid;
align-content: center;
justify-content: center;
grid-template-rows: repeat(5, 4em) minmax(6em, auto);
grid-template-columns: repeat(4, 4em);
}
.calculator-grid > button
{
cursor: pointer;
outline: none;
border: 0.08em solid rgb(255, 168, 76);
border-collapse: collapse;
background-color: rgba(176, 83, 203, 0.65);
font-size: 1rem;
}
.calculator-grid > button:hover
{
background-color: rgba(176, 83, 203, 0.85);
}
.output
{
grid-column: 1 / -1;
border: 0.08em solid rgb(255, 168, 76);
border-top-left-radius: 0.4em;
border-top-right-radius: 0.4em;
border-collapse: collapse;
padding: 1em;
background-color: rgba(46, 27, 134, 0.65);
display: flex;
flex-direction: column;
align-items: flex-end;
justify-content: space-around;
word-wrap: break-word;
word-break: break-all;
}
.output .previous-operand
{
color: rgba(254, 211, 56, 0.65);
font-size: 1rem;
}
.output .current-operand
{
color: rgba(254, 211, 56, 1);
font-size: 1rem;
}
.span-one
{
grid-column: span 1;
}
.span-two
{
grid-column: span 2;
}
#decimal
{
border-bottom-left-radius: 0.4em;
}
#equals
{
border-bottom-right-radius: 0.4em;
}