/
style.css
105 lines (103 loc) · 1.66 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
* {
box-sizing: border-box;
outline:none;
}
body {
font-size: 6rem;
font-family: 'Montserrat', sans-serif;
}
#calcContainer {
background: #211e1e;
margin:auto;
width:400px;
height:600px;
border:1px inset #ccc;
border-radius:18px;
display:flex;
flex-flow:row wrap;
justify-content:flex-start;
}
p {
font-size:.8rem;
padding:0;
line-height:2%;
color:white;
margin: 0 1% 0 auto;
align-self: flex-end;
padding: 21px;
}
#screen {
background: #ccc;
height:20%;
width: 100%;
flex:100%;
color: black;
border-radius:17px 17px 0 0;
margin: 0 auto;
text-align:right;
padding:0 10px;
overflow:hidden;
}
input#screen {
font-size:4rem;
font-family: 'Montserrat', sans-serif;
}
#buttonContainer {
flex: 100%;
height: 73%;
display: flex;
flex-flow: row wrap;
justify-content: flex-start;
}
#row1,
#row2,
#row3,
#row4,
#row5{
width: 100%;
flex:100%;
margin:0;
padding:0;
display:flex;
justify-content:stretch;
}
button {
width:100%;
height:100%;
background: #3e3d3d;
border: 1px solid #211e1e;
margin:0;
color:white;
font-size:1.8rem;
}
button:active {
-webkit-box-shadow: inset 0px 0px 5px #000;
-moz-box-shadow: inset 0px 0px 5px #000;
box-shadow: inset 0px 0px 5px #000;
}
button#plusMinus .fas {
font-size: 1.4rem;
}
@media (max-device-width:1024px) {
button#plusMinus .fas {
/* font-size:.8rem; */
}
}
button#percentage {
font-size: 1.4rem;
}
button#zero {
border-radius: 0 0 0 17px;
flex: 1 1 0em;
flex: 25%;
}
button#period {
flex: 1 1 0em;
flex: 25%;
}
button#equals {
background: #EC6E33;
border-radius: 0 0 17px;
flex: 2 2 1.1em;
flex: 50%;
}