-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
127 lines (113 loc) · 2.7 KB
/
styles.css
File metadata and controls
127 lines (113 loc) · 2.7 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/*
To Do:
1. Add a class to all buttons classes for
touch effect on click
2. Merge the (+) and (?) buttons so it gets larger
3. Make a class for the screen to be off (darker)
and on (lighter, when the (ON) button is pressed) [JS Required]
4. Add Media Queries for Responsive Behavior on Mobile Phones
*/
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
min-height: 100vh;
min-width: 375px;
max-width: 1440px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background-image: url('./img/equations.jpg');
background-size: cover;
background-position: center;
}
#calculator {
width: 300px;
height: 400px;
background-color: grey;
border-radius: 1rem;
box-shadow: 0px 0px 5px 5px darkslategray;
display: flex;
flex-direction: column;
align-items: center;
padding: 1.5rem 1rem;
gap: 2rem;
}
.screen-container {
width: 100%;
height: 25%;
background-color: white;
border-radius: 0.8rem;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 0.2rem 0rem;
box-shadow: 0px 0px 2px 2px white;
}
.calculator-screen {
width: 95%;
height: 95%;
background-color: lightblue;
box-shadow: 0px 0px 2px 2px lightblue;
border-radius: inherit;
display: flex;
flex-direction: column;
align-items: flex-end;
justify-content: center;
padding: 0.5rem;
font-size: xx-large;
font-family: 'Orbitron', sans-serif;
}
.screen-off {
background-color: rgb(93, 123, 133);
box-shadow: 0px 0px 2px 2px rgb(93, 123, 133);
}
.calculator-keyboard {
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
gap: 0.5rem;
}
.calculator-keyboard > button {
width: 45px;
height: 50px;
border-radius: 0.5rem;
font-size: large;
}
.operator-grey:hover,
.num-button:hover {
background-color: grey;
cursor: pointer;
}
.operator-grey,
.num-button {
background-color: rgb(216, 214, 214);
border: 2px solid darkgrey;
box-shadow: 0px 0px 1px 1px rgb(90, 89, 89);
}
.on-button {
color: white;
background-color: rgb(158, 0, 0);
border: 1px solid rgb(177, 22, 22);
box-shadow: 0px 0px 1px 1px rgb(177, 22, 22);
}
.on-button:hover {
background-color: white;
color: rgb(158, 0, 0);
cursor: pointer;
}
.ce-button {
color: white;
background-color: rgb(6, 6, 151);
border: 1px solid rgb(59, 59, 151);
box-shadow: 0px 0px 1px 1px rgb(6, 6, 151);
}
.ce-button:hover {
background-color: white;
color: rgb(6, 6, 151);
cursor: pointer;
}