-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
152 lines (136 loc) · 2.55 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
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
141
142
143
144
145
146
147
148
149
150
151
152
/*
Colors --
*/
/*============================
PAGE LAYOUT
============================*/
* {
margin: 0;
box-sizing: border-box;
font-size: 30px;
font-family: 'Open Sans', sans-serif;
}
body {
height: 100vh;
width: auto;
display: flex;
justify-content: center;
align-items: center;
background-color:rgb(237, 239, 241);
}
/*============================
APP DESIGN
============================*/
#calculator {
min-height: 500px;
max-height: 550px;
min-width: 450px;
max-width: 500px;
border-radius: 10px 10px 0 0;
height: auto;
background-color: #1A1A1D;
box-shadow: 5px 10px 20px 10px rgb(29, 25, 25);
display: grid;
grid-template: "s s s s" 1fr
"a a a o" 1fr
"n n n o" 1fr
"n n n o" 1fr
"n n n o" 1fr
"n n n o" 1fr
/ 1fr 1fr 1fr 1fr;
}
/*============================
CALCULATOR SCREEN
============================*/
.screen {
width: 100%;
height: auto;
grid-area: s;
background-color: #1A1A1D;
border-radius: 10px 10px 0 0;
}
.screen p {
display: inline-block;
color: white;
text-align: right;
width: 100%;
height: 100%;
font-size: 2.4rem;
user-select: none;
}
/*============================
CALCULATOR BUTTONS
============================*/
button {
border-radius: 50%;
width: 75%;
min-width: 90px;
height: auto;
outline: none;
color: white;
user-select: none;
border: 1px transparent solid;
transition: all 0.3s ease;
}
/*=== BUTTON CONTAINERS===*/
.container {
justify-items: center;
grid-gap: 5px;
padding: 5px 0;
}
.aux {
grid-area: a;
display: grid;
grid-template-columns: repeat(3, 1fr);
padding-bottom: 0;
}
.operators {
grid-area: o;
display: grid;
grid-template-rows: repeat(5, 1fr);
padding-right: 5px;
}
.numbers {
grid-area: n;
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(4, 1fr);
}
/*=== AUXILLARY BUTTONS===*/
.auxillary {
background-color: #9f9fa1;
color: black;
}
.auxillary:active {
background-color: #d3d3d4;
}
/*=== OPERATOR BUTTONS===*/
.operator {
background-color: #C3073F;
}
.operator:active {
background-color:#a03152;
color: white;
}
.op-clicked {
background-color: white;
color: #C3073F;
}
#division {
font-size: 1.3em;
}
/*=== NUMBER BUTTONS===*/
.numbers button {
background-color: #4E4E50;
}
.numbers button:active {
background-color: #a09e9e;
color: black;
}
#zero {
grid-column: span 2;
border-radius: 40px 40px;
min-width: 190px;
text-align: left;
text-indent: 15%;
}