-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
109 lines (95 loc) · 1.9 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
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
* {
-webkit-box-sizing: border-box;
box-sizing: border-box;
font-family: Gotham Rounded, sans-serif;
font-size: 25px;
}
body {
padding: 0;
margin: 0;
}
main {
display: -ms-grid;
display: grid;
grid-gap: 2px;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
-ms-flex-line-pack: center;
align-content: center;
min-height: 100vh;
-ms-grid-columns: (100px)[4];
grid-template-columns: repeat(4, 100px);
-ms-grid-rows: minmax(120px, auto) (80px)[5];
grid-template-rows: minmax(120px, auto) repeat(5, 80px);
}
main .output {
grid-column: 1 / -1;
border-radius: 6px;
background: #dddada;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: end;
-ms-flex-align: end;
align-items: flex-end;
-ms-flex-pack: distribute;
justify-content: space-around;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
padding: 8px;
word-wrap: break-word;
word-break: break-all;
}
main .output .answer {
position: relative;
width: 100%;
height: 100%;
}
main .output .answer::after {
content: attr(data-after);
padding: 5px;
position: absolute;
top: 2px;
right: 2px;
min-width: 40px;
height: 30px;
}
main .output .answer input {
width: 100%;
height: 100%;
padding: 10px 10px 5px 10px;
outline: none;
border: none;
}
main .output .answer:focus {
outline: none;
}
main button {
cursor: pointer;
border: none;
outline: none;
background: #e0e0e4;
border-radius: 6px;
}
main button:hover {
background: #d9d9dd;
}
main .operators {
background: #c2c0c0;
}
main .operators:hover {
background: #b6b4b4;
}
main .ac, main .equal {
grid-column: span 2;
}
main .equal {
background: #5e99f1;
}
main .equal:hover {
background: #4c8ef1;
}
/*# sourceMappingURL=style.css.map */