-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
140 lines (139 loc) · 2.51 KB
/
styles.css
File metadata and controls
140 lines (139 loc) · 2.51 KB
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
128
129
130
131
132
133
134
135
136
137
138
139
140
@font-face {
font-family: 'calc';
src: url('./media/calculator-webfont.woff2') format('woff2'),
url('./media/calculator-webfont.woff') format('woff');
font-weight: normal;
font-style: normal;
}
* {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-size: 100%;
vertical-align: baseline;
background: transparent;
}
h1{
font-size: 30px;
}
.calculator{
height: 80vh;
width: 500px;
margin: 50px auto;
background-color: lightblue;
border: 3px solid black;
border-radius: 5%;
}
.calcTitle{
text-align: center;
}
.display{
font-family: calc, arial, sans-serif;
font-size: 50px;
height: 10vh;
text-align: right;
width: 90%;
margin: 0px auto;
background-color: #cec8c8;
}
.buttons{
width: 90%;
margin: 15px auto;
display: grid;
grid-gap: 4px;
grid-template-columns: 1fr 1fr 1fr 1fr;
grid-template-areas:
'AC AC delete divi'
'seven eight nine multiple'
'four five six minus'
'one two three plus'
'zer zer period equal';
}
.buttons p{
display: block;
margin: 20px 0;
vertical-align: middle;
}
.number, .operator, .clear, .solve, .period, .backspace{
border: 1px solid #efc4b6;
text-align: center;
background-color: white;
border-radius: 11%;
}
.number, .period{
background-color: #ffffff;
color: #8bff1e;
font-weight: bolder;
font-size: 20px;
}
.operator, .solve{
background-color: #921eff;
color: white;
font-weight: bolder;
font-size: 20px;
}
.clear, .backspace{
background-color: #ff921e;
color: white;
font-weight: bolder;
font-size: 20px;
text-transform: uppercase;
}
.number:hover, .operator:hover, .clear:hover, .solve:hover, .period:hover, .backspace:hover{
transform: scale(1.1);
}
.clear[data-key="AC"]{
grid-area: AC;
}
.number[data-key="9"]{
grid-area: nine;
}
.number[data-key="8"]{
grid-area: eight;
}
.number[data-key="7"]{
grid-area: seven;
}
.number[data-key="6"]{
grid-area: six;
}
.number[data-key="5"]{
grid-area: five;
}
.number[data-key="4"]{
grid-area: four;
}
.number[data-key="3"]{
grid-area: three;
}
.number[data-key="2"]{
grid-area: two;
}
.number[data-key="1"]{
grid-area: one;
}
.number[data-key="0"]{
grid-area: zer;
}
.operator[data-key="+"]{
grid-area: plus;
}
.operator[data-key="-"]{
grid-area: minus;
}
.operator[data-key="*"]{
grid-area: multiple;
}
.operator[data-key="/"]{
grid-area: divi;
}
.solve[data-key="="]{
grid-area: equal;
}
.period[data-key="."]{
grid-area: period;
}
.backspace[data-key="<<"]{
grid-area: delete;
}