-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
106 lines (91 loc) · 1.73 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--input-height: 150px;
--container-radius: 20px;
}
/* styling calculator */
.top-container {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
width: 100vw;
}
.container {
background-color: rgb(40, 40, 40);
border-radius: var(--container-radius);
height: 500px;
width: 400px;
display: grid;
grid-template-rows: var(--input-height) auto;
}
.buttons-container {
display: grid;
/* rows - 5 */
grid-template-rows: repeat(5, 1fr);
/* columns - 4 */
grid-template-columns: repeat(4, 1fr);
}
.input-space {
height: var(--input-height);
}
.input-value {
height: 100%;
width: 100%;
background: none;
color: white;
font-size: 4rem;
text-align: right;
border-radius: var(--container-radius);
border: none;
}
.input-value:focus {
outline: none;
}
.btn {
cursor: pointer;
display: inline-flex;
justify-content: center;
align-items: center;
width: 100%;
background-color: rgb(10, 10, 10);
color: white;
padding: 1px;
border-radius: 10px;
margin: 1px 1px;
font-size: 1.5rem;
font-weight: 500;
/* pressed effect */
/* box-shadow: 5px 5px red; */
}
.btn:hover {
background-color: rgb(85, 85, 85);
}
.clear {
color: aqua;
}
.operators {
background-color: blue;
}
.operators:hover {
background-color: rgb(0, 0, 125);
}
.result {
background-color: black;
grid-column-start: 3;
grid-column-end: 5;
}
.result:hover {
background-color: rgb(10, 10, 10);
}
@media (max-width: 500px) {
.container {
height: 90vh;
width: 95vw;
border-radius: 0px;
}
}