-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
121 lines (103 loc) · 1.93 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
body {
background-color: rgb(201, 192, 192);
}
.justify-center {
display: flex;
justify-content: center;
}
.align-center {
display: flex;
align-items: center;
}
.align-end {
display: flex;
align-items: flex-end;
}
.flex-column {
flex-direction: column;
}
.calculator-container {
width: 400px;
height: 530px;
align-items: center;
flex-direction: column;
border-radius: 12px;
background-color: rgb(95, 3, 95);
margin-top: 60px;
}
.display,
.console {
width: 360px;
border-radius: 4px;
background-color: azure;
justify-content: flex-end;
padding: 12px;
box-sizing: border-box;
font-family: 'Major Mono Display', monospace;
font-size: 16px;
box-sizing: border-box;
}
.display {
height: 56px;
margin: 8px 4px 0px 4px;
font-size: 24px;
}
.console {
height: 100px;
}
.console-line {
font-size: 12px;
}
.buttons {
margin: 8px 0px 0px 0px;
}
.button-row {
display: flex;
justify-content: stretch;
width: 360px;
height: 50px;
margin: 2px 0px 2px 0px;
}
.button {
/*
height: 42px;
width: 42px;
*/
flex: 1 1 32px;
margin-left: 2px;
margin-right: 2px;
font-size: 24px;
border: 0;
background: none;
box-shadow: none;
border-radius: 4px;
}
.button:active {
/* Styling for the buttons found on:
https://www.geeksforgeeks.org/how-to-add-a-pressed-effect-on-button-click-in-css/
*/
transform: scale(0.98);
/* Scaling button to 0.98 to its original size */
box-shadow: 3px 2px 22px 1px rgba(0, 0, 0, 0.24);
/* Lowering the shadow */
}
.backspace,
.clear {
flex: 1;
background-color: rgb(255, 228, 196);
}
.zero,
.equals {
flex: 2.7 1 32px;
}
.equals {
background-color: rgb(160, 16, 160);
color: white;
margin-bottom: 0px;
}
.operator {
background-color: rgb(243, 145, 145);
}
.number {
background-color: rgb(154, 240, 240);
}