-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
161 lines (145 loc) · 3.19 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
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
*, *::after, *::before{
box-sizing: border-box;
margin: 0px;
padding:0px;
}
.light{
--bg-color: #EFEEEE;
--br-color: #D1CDC7;
--tl-color: #ffffff;
--scr-color: black;
--scr-shadow: rgba(0,0,0,0.1);
--switch:2;
--switch-color: lightgreen;
}
.dark{
--bg-color: #121212;
--br-color: #070707;
--tl-color: #1d1d1d;
--scr-color: rgba(200,200,200,0.7);
--scr-shadow: rgba(255,255,255,0.08);
--switch:3;
--switch-color: orange;
}
.container{
width: 100%;
height: 100vh;
display: grid;
place-content: center;
background-color: var(--bg-color);
font-family: monospace;
font-size: 1.5rem;
}
.calc{
display: grid;
padding: 10px;
border-radius: 5px;
grid-template-areas:
"screen screen screen"
"digits digits operator"
"digits digits operator";
grid-gap: 25px;
box-shadow: 6px 6px 6px var(--br-color),
-6px -6px 6px var(--tl-color);
}
.digits{
grid-area: digits;
display: grid;
grid-template-columns: repeat(3, minmax(50px,1fr));
grid-auto-rows: 50px;
grid-gap: 15px;
}
.screen{
grid-area: screen;
font-size: 30px;
min-height: 60px;
padding: 10px 15px;
border-radius: 5px;
color: var(--scr-color);
text-align: right;
text-shadow: 2px 3px var(--scr-shadow);
box-shadow: inset 6px 6px 5px var(--br-color),
inset -6px -6px 5px var(--tl-color);
}
.operator{
grid-area: operator;
display: grid;
grid-template-columns: repeat(1, minmax(50px,1fr));
grid-auto-rows: 50px;
grid-gap: 15px;
}
.btn{
display: grid;
place-content: center;
border-radius: 10px;
box-shadow: 6px 6px 6px var(--br-color),
-6px -6px 6px var(--tl-color);
transition: transform ease-in-out 100ms;
}
.btn:hover{
cursor: pointer;
transform: scale(1.02);
box-shadow: 6px 6px 8px var(--br-color),
-6px -6px 8px var(--tl-color);
}
.btn-digi{
color: green
}
.btn-digi-horizontal{
grid-column: span 1
}
.btn-op{
color: crimson;
}
.credit{
position: absolute;
bottom: 0;
right:0;
margin: 10px;
color: grey;
font-size: 0.8em;
letter-spacing: 0.1rem;
}
.switch-container{
border: 0px grey solid;
border-radius: 25px;
width: 70px;
position: absolute;
top:30px;
right:30px;
padding: 8px 0px;
margin:0px;
cursor: pointer;
display: grid;
place-content: center;
grid-template-columns: 10px 1fr 1fr 10px;
grid-template-rows: 1fr;
background-color: var(--bg-color);
box-shadow: inset 3px 3px 6px var(--br-color),
inset 3px -3px 6px var(--tl-color);
}
.switch-container:before{
content: 'Light';
font-size: 0.5rem;
position: absolute;
color: grey;
top:-15px;
left:0;
}
.switch-container:after{
content: 'Dark';
font-size: 0.5rem;
color: grey;
position: absolute;
top:-15px;
right:0;
}
.switch{
grid-column: var(--switch);
width: 25px;
height: 25px;
border-radius: 25px;
background-color: var(--switch-color);
box-shadow: 3px 3px 3px var(--br-color),
-3px -3px 3px var(--tl-color);
}