|
@@ -1,13 +1,17 @@
|
|
html {
|
|
html {
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
}
|
|
}
|
|
-*, *:before, *:after {
|
|
|
|
|
|
+
|
|
|
|
+*,
|
|
|
|
+*:before,
|
|
|
|
+*:after {
|
|
box-sizing: inherit;
|
|
box-sizing: inherit;
|
|
}
|
|
}
|
|
|
|
|
|
body {
|
|
body {
|
|
margin: 0;
|
|
margin: 0;
|
|
font: 100 14px 'Roboto';
|
|
font: 100 14px 'Roboto';
|
|
|
|
+ font-family: Arial;
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -20,18 +24,18 @@ button {
|
|
user-select: none;
|
|
user-select: none;
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
outline: none;
|
|
outline: none;
|
|
-
|
|
|
|
- -webkit-tap-highlight-color: rgba(0,0,0,0);
|
|
|
|
|
|
+
|
|
|
|
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
}
|
|
}
|
|
|
|
|
|
button:active {
|
|
button:active {
|
|
- box-shadow: inset 0px 0px 80px 0px rgba(0,0,0,0.25);
|
|
|
|
|
|
+ box-shadow: inset 0px 0px 80px 0px rgba(0, 0, 0, 0.25);
|
|
}
|
|
}
|
|
|
|
|
|
#wrapper {
|
|
#wrapper {
|
|
/* height: 100vh; */
|
|
/* height: 100vh; */
|
|
height: max-content;
|
|
height: max-content;
|
|
-
|
|
|
|
|
|
+
|
|
display: flex;
|
|
display: flex;
|
|
align-items: center;
|
|
align-items: center;
|
|
justify-content: center;
|
|
justify-content: center;
|
|
@@ -47,7 +51,7 @@ button:active {
|
|
width: 100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
height: 100%;
|
|
background: black;
|
|
background: black;
|
|
-
|
|
|
|
|
|
+
|
|
display: flex;
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
}
|
|
}
|
|
@@ -61,14 +65,14 @@ button:active {
|
|
background: #1c191c;
|
|
background: #1c191c;
|
|
line-height: 130px;
|
|
line-height: 130px;
|
|
/* font-size: 6em; */
|
|
/* font-size: 6em; */
|
|
- font-size: 16px;
|
|
|
|
- font-size: 4vw;
|
|
|
|
|
|
+ font-size: 16px;
|
|
|
|
+ font-size: 4vw;
|
|
|
|
|
|
|
|
|
|
max-height: 160px;
|
|
max-height: 160px;
|
|
padding: 0 30px;
|
|
padding: 0 30px;
|
|
/* height: 80px; */
|
|
/* height: 80px; */
|
|
-
|
|
|
|
|
|
+
|
|
flex: 1;
|
|
flex: 1;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -85,7 +89,7 @@ button:active {
|
|
|
|
|
|
.calculator-keypad {
|
|
.calculator-keypad {
|
|
height: 400px;
|
|
height: 400px;
|
|
-
|
|
|
|
|
|
+
|
|
display: flex;
|
|
display: flex;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -99,7 +103,7 @@ button:active {
|
|
|
|
|
|
.calculator .digit-keys {
|
|
.calculator .digit-keys {
|
|
background: #e0e0e7;
|
|
background: #e0e0e7;
|
|
-
|
|
|
|
|
|
+
|
|
display: flex;
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-direction: row;
|
|
flex-wrap: wrap-reverse;
|
|
flex-wrap: wrap-reverse;
|
|
@@ -109,28 +113,34 @@ button:active {
|
|
width: 80px;
|
|
width: 80px;
|
|
height: 80px;
|
|
height: 80px;
|
|
border-top: 1px solid #777;
|
|
border-top: 1px solid #777;
|
|
- border-right: 1px solid #666;
|
|
|
|
|
|
+ border-right: 1px solid #666;
|
|
text-align: center;
|
|
text-align: center;
|
|
line-height: 80px;
|
|
line-height: 80px;
|
|
}
|
|
}
|
|
|
|
+
|
|
.calculator .function-keys .calculator-key {
|
|
.calculator .function-keys .calculator-key {
|
|
font-size: 2em;
|
|
font-size: 2em;
|
|
}
|
|
}
|
|
|
|
+
|
|
.calculator .function-keys .key-multiply {
|
|
.calculator .function-keys .key-multiply {
|
|
line-height: 50px;
|
|
line-height: 50px;
|
|
}
|
|
}
|
|
|
|
+
|
|
.calculator .digit-keys .calculator-key {
|
|
.calculator .digit-keys .calculator-key {
|
|
font-size: 2.25em;
|
|
font-size: 2.25em;
|
|
}
|
|
}
|
|
|
|
+
|
|
.calculator .digit-keys .key-0 {
|
|
.calculator .digit-keys .key-0 {
|
|
width: 160px;
|
|
width: 160px;
|
|
text-align: left;
|
|
text-align: left;
|
|
padding-left: 32px;
|
|
padding-left: 32px;
|
|
}
|
|
}
|
|
|
|
+
|
|
.calculator .digit-keys .key-dot {
|
|
.calculator .digit-keys .key-dot {
|
|
padding-top: 1em;
|
|
padding-top: 1em;
|
|
font-size: 0.75em;
|
|
font-size: 0.75em;
|
|
}
|
|
}
|
|
|
|
+
|
|
.calculator .operator-keys .calculator-key {
|
|
.calculator .operator-keys .calculator-key {
|
|
color: white;
|
|
color: white;
|
|
border-right: 0;
|
|
border-right: 0;
|
|
@@ -138,8 +148,9 @@ button:active {
|
|
}
|
|
}
|
|
|
|
|
|
.calculator .function-keys {
|
|
.calculator .function-keys {
|
|
- background: linear-gradient(to bottom, rgba(202,202,204,1) 0%, rgba(196,194,204,1) 100%);
|
|
|
|
|
|
+ background: linear-gradient(to bottom, rgba(202, 202, 204, 1) 0%, rgba(196, 194, 204, 1) 100%);
|
|
}
|
|
}
|
|
|
|
+
|
|
.calculator .operator-keys {
|
|
.calculator .operator-keys {
|
|
- background: linear-gradient(to bottom, rgba(252,156,23,1) 0%, rgba(247,126,27,1) 100%);
|
|
|
|
|
|
+ background: linear-gradient(to bottom, rgba(252, 156, 23, 1) 0%, rgba(247, 126, 27, 1) 100%);
|
|
}
|
|
}
|