/
calculator.css
127 lines (101 loc) · 1.4 KB
/
calculator.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
body {
background-color: #F2F2F2;
}
#calculator {
position: absolute;
width: 20em;
height: 28em;
background-color: #1A1A1A;
}
#screen {
height: 10em;
}
#screen div {
width: 100%;
}
#answer {
position: absolute;
bottom: 0;
right: 0;
margin: 0.5em 0;
height: 1.5em;
font-size: 2.5em;
color: white;
}
#answer p {
margin: 0 0.2em;
float: right;
}
#expression {
position: absolute;
right: 0;
margin: 0.5em 0;
font-size: 1.5em;
color: grey;
}
#expression textarea {
width: 100%;
height: 4.5em;
resize: none;
padding: 0 0.5em;
background-color: #1A1A1A;
border: none;
}
#expression textarea:focus {
outline: none;
}
#calculator button {
border: 1px solid #1A1A1A;
border-radius: 0;
}
#calculator button:active {
opacity: 0.5;
}
#calculator button:focus {
outline: none;
}
.operator, .eraser, .number, #dot, #ansSaver {
height: 3.6em;
}
#equal {
height: 7.2em;
}
.color2 {
background-color: #252525;
color: grey;
}
.color1 {
background-color: #303030;
color: grey;
}
.color3 {
background-color: #AC92EC;
color: #121212;
}
.bottom-group {
padding: 0;
}
#erase img {
height: 1.2em;
}
#credit a {
color: #60449D;
}
@media screen and (max-height: 480px) {
#calculator {
width: 18em;
height: 24em;
}
#screen {
height: 8em;
}
.operator, .eraser, .number, #dot, #ansSaver {
height: 3.22em;
}
#equal {
height: 6.44em;
}
#answer {
font-size: 2.2em;
}
}