-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
121 lines (108 loc) · 2.05 KB
/
index.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
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300&display=swap');
* {
margin: 0;
padding: 0;
}
:root {
--bg-color1: #1e1e1e;
--calc-bg: black;
--display-normal: #323333;
--display-orange: #FE9F06;
--display-text: white;
--display-grey: #A4A5A4;
font-size: 62.5%;
}
body {
display: flex;
width: 100%;
height: 100vh;
justify-content: center;
align-items: center;
background-color: var(--bg-color1);
font-family: 'Rubik', sans-serif;
}
.calculator {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-color: var(--calc-bg);
border-radius: 1rem;
height: 56rem;
}
#display {
background-color: var(--display-bg);
width: 30rem;
outline: none;
border: none;
height: 30rem;
color: var(--display-text);
font-size: 4.5rem;
text-align: right;
padding: 2rem;
margin: 15rem 0 0 0;
align-self: left;
}
input[type=number], input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}
.allBtns {
display: flex;
flex-direction: row;
justify-content: center;
width: 100%;
padding: 2rem 0;
background-color: var(--bg-color1);
height: 100%;
outline: 0.1px solid black;
outline-offset: -1px;
border-radius: 0 0 1rem 1rem;
}
.btn {
cursor: pointer;
}
.col {
display: flex;
flex-direction: column;
padding: 5px;
gap: 5px;
}
.row {
display: flex;
flex-direction: row;
}
.btnGrey {
background-color: var(--display-grey);
width: 6rem;
height: 6rem;
border-radius: 50%;
border: none;
margin: 0.5rem;
color: white;
font-size: 2.5rem;
padding: 1rem;
}
.btnNormal {
background-color: var(--display-normal);
width: 6rem;
height: 6rem;
border-radius: 50%;
border: none;
margin: 0.5rem;
color: white;
font-size: 2.5rem;
padding: 1rem;
}
.btnOrange {
background-color: var(--display-orange);
width: 6rem;
height: 6rem;
border-radius: 50%;
border: none;
margin: 0.5rem;
color: white;
font-size: 2.5rem;
padding: 1rem;
}