-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
220 lines (186 loc) · 4.36 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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
:root{
/* dark theme color scheme */
--font-family: Verdana, Geneva, Tahoma, sans-serif;
--dark-background: #292D36;
--dark-footer-container-bg: #2A2C37;
--footer-box-shaodw: 2px 2px 12px 2px rgb(150 150 150 / 10%);
--box-shadow: 2px 12px 12px 12px rgba(179, 179, 179, 0.2);
--container-border-radius: 40px;
--footer-container-radius: 20px;
--normal-box-shadow: 2px 2px 2px 2px rgba(0, 0, 0, 0.2);
--dark-color-theme: #fff;
--dark-btn-bg: #212225;
--dark-btn-pimary-operator: turquoise;
--dark-btn-secodnary-operator: orange;
--footer-bg-light: #fff;
/* light color scheme */
--light-bg: #fff;
--light-footer-bg: #fff;
--light-font-color-theme: #292D36;
--footer-line-bg: var(--dark-background);
--main-bg: url(https://images.unsplash.com/photo-1472289065668-ce650ac443d2?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=869&q=80);
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body{
background: var(--main-bg);
background-repeat: no-repeat;
background-size:cover;
background-position: center;
}
/* main container */
.container {
margin: 100px auto;
}
/* main calculator */
.calculator {
margin: auto;
background-color: var(--dark-background);
color: white;
width: 340px;
border-radius: 15px;
box-shadow: var(--normal-box-shadow);
}
/* calculator head part */
.header {
display: flex;
justify-content: space-around;
padding: 10px;
}
/* time */
.header .time {
align-self: left;
padding: 0px 20px;
width: 50%;
font-family: var(--font-family);
opacity: 0.9;
}
/* top right icons */
.header .other-right-icons {
opacity: 0.7;
width: 50%;
display: flex;
justify-content: space-evenly;
}
.header .body_Upper.fa-moon p .fa-sun{
cursor: pointer;
}
/* calculator body */
.body_Upper {
display: flex;
justify-content: center;
padding: 15px;
background-color: var(--dark-background);
color: white;
width: 20%;
margin: 30px auto;
border-radius: 8px;
box-shadow: 2px 2px 2px 2px rgba(0, 0, 0, 0.2);
}
/* calculator moon and sun icon*/
.body_Upper i {
margin: 0px 10px;
opacity: 0.7;
cursor: pointer;
}
/* output */
.body_center_output {
display: flex;
flex-direction: column;
align-items: flex-end;
padding: 15px;
margin: 0px 20px;
font-family: Verdana, Geneva, Tahoma, sans-serif;
}
.body_center_output #inputText{
background: none;
outline: none;
/* border-radius: var(--container-border-radius); */
padding: 10px;
border: none;
display: flex;
justify-content: flex-end;
font-size: 2.5rem;
width: 100%;
}
.body_center_output p,
h2 {
margin: 12px 0px;
}
.body_center_output p {
opacity: 0.8;
}
.body_center_output p>span {
color: var(--dark-btn-pimary-operator);
opacity: 0.7;
}
/* footer Part Calculator Container and Buttons */
.footer {
display: flex;
flex-direction: column;
justify-content: center;
background-color: var(--footer-container-bg);
box-shadow: var(--footer-box-shaodw);
padding: 30px;
border-radius: 40px 40px 17px 21px;
}
/* calculator buttons */
.footer button {
background-color: var(--dark-btn-bg);
width: 10%;
font-family: Verdana, Geneva, Tahoma, sans-serif;
font-size: 14px;
padding: 10px;
margin: 10px auto;
border: none;
border-radius: 2px;
box-shadow: 2px 2px 2px 2px rgba(0, 0, 0, 0.2);
color: white;
cursor: pointer;
}
.footer .row_1 p {
/* background-color: #343435; */
color: var(--dark-btn-pimary-operator);
padding: 10px;
margin: 10px auto;
box-shadow: 2px 2px 2px 2px rgba(0, 0, 0, 0.2);
border-radius: 7px;
}
.row_1 p{
cursor: pointer;
}
.footer .row_1 button {
color: orange;
}
.footer .row_5 button {
color: var(--dark-btn-secodnary-operator);
}
.footer .row_2,
.row_3,
.row_4,
.row_5 {
display: flex;
justify-content: space-around;
}
.footer .row_1 {
display: flex;
justify-content: space-around;
}
.row_6 {
width: 50%;
height: 100px;
justify-content: center;
display: block;
justify-content: center;
margin-top: 40px;
margin-left: auto;
margin-right: auto;
box-shadow: var(--box-shadow);
height: 5px;
background: white;
border-radius: 10px;
opacity: 0.1;
}