-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
97 lines (84 loc) · 2.08 KB
/
index.html
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
<!doctype html>
<html class="no-js" lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Calculator</title>
<style>
@import url('https://fonts.googleapis.com/css?family=Open+Sans');
.container > div {
display: flex;
justify-content: center;
align-items: center;
font-size: 2em;
color: #ffeead;
}
html, body {
font-family: 'Open Sans', sans-serif;
box-sizing: border-box;
background-color: #ffeead;
height: 100%;
padding: 10px;
margin: 0px;
}
.container > div:nth-child(1n) {
background-color: #96ceb4;
}
.container > div:nth-child(3n) {
background-color: #88d8b0;
}
.container > div:nth-child(2n) {
background-color: #ff6f69;
}
.container > div:nth-child(4n) {
background-color: #ffcc5c;
}
.container {
border: 1px solid black;
height: 100%;
display:grid;
grid-gap:1px;
grid-template-columns: repeat(4, 100px);
grid-template-rows: repeat(6, 100px);
justify-content: center;
align-content: center;
}
.button_calc {
background-color: #efefef;
}
.display{
grid-column-start: 1;
grid-column-end: 5; /* -1 would be last column line */
}
</style>
</head>
<body>
<!--
ctrl shift L : delete line
-->
<div class="container">
<div class="display">display</div>
<div class="button_calc">C</div>
<div class="button_calc">div</div>
<div class="button_calc">x</div>
<div class="button_calc">back</div>
<div class="button_calc">7</div>
<div class="button_calc">8</div>
<div class="button_calc">9</div>
<div class="button_calc">m</div>
<div class="button_calc">4</div>
<div class="button_calc">5</div>
<div class="button_calc">6</div>
<div class="button_calc">p</div>
<div class="button_calc">1</div>
<div class="button_calc">2</div>
<div class="button_calc">3</div>
<div class="button_calc">()</div>
<div class="button_calc">0</div>
<div class="button_calc">,</div>
<div class="button_calc">p/m</div>
<div class="button_calc">=</div>
</div>
</body>
</html>