-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
151 lines (133 loc) · 3.82 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
@import url("https://use.typekit.net/jbs6usg.css");
html {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
body {
margin: 0;
min-height: 100vh;
background: -webkit-gradient(linear, left top, left bottom, from(#63a69a), to(#3d665f));
background: linear-gradient(#63a69a, #3d665f);
font-family: automate,sans-serif;
font-weight: 700;
font-style: normal;
overflow: hidden;
}
.container {
position: relative;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
width: 100%;
height: 100%;
}
.container .calculator {
width: 400px;
background: #fff;
border-radius: 20px;
background: -webkit-gradient(linear, left top, left bottom, from(rgba(242, 181, 167, 0.5)), to(rgba(242, 129, 119, 0.5))), url("https://meilune.github.io/calculator/noise.svg");
background: linear-gradient(rgba(242, 181, 167, 0.5), rgba(242, 129, 119, 0.5)), url("https://meilune.github.io/calculator/noise.svg");
-webkit-box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
}
.container .calculator header {
-webkit-box-sizing: border-box;
box-sizing: border-box;
width: 100%;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: end;
-ms-flex-pack: end;
justify-content: flex-end;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
background-color: #000;
border-radius: 20px 20px 0 0;
color: #fff;
padding: 2rem;
}
.container .calculator header h1 {
overflow-x: auto;
font-size: 48px;
margin: 0 0;
}
.container .calculator .calc-body {
padding: 1.5rem;
display: -ms-grid;
display: grid;
-ms-grid-columns: (1fr)[4];
grid-template-columns: repeat(4, 1fr);
grid-gap: 5px;
}
.container .calculator .calc-body button {
font-family: automate,sans-serif;
min-height: 50px;
font-size: 28px;
border: none;
border-radius: 5px;
cursor: pointer;
background: #fff;
-webkit-box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 4px, rgba(0, 0, 0, 0.2) 0px 4px 2px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 4px, rgba(0, 0, 0, 0.2) 0px 4px 2px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
}
.container .calculator .calc-body button:hover {
color: #f2b5a7;
}
.container .calculator .calc-body button:active {
-webkit-transform: translatey(1px);
transform: translatey(1px);
-webkit-box-shadow: rgba(64, 63, 63, 0.2) 2px 2px 6px 0px inset, rgba(45, 44, 44, 0.1) -3px -3px 4px 1px inset;
box-shadow: rgba(64, 63, 63, 0.2) 2px 2px 6px 0px inset, rgba(45, 44, 44, 0.1) -3px -3px 4px 1px inset;
}
.container .calculator .calc-body button:focus {
outline: none;
}
.container .calculator .calc-body .operator {
background-color: #8fbfba;
color: #fff;
font-size: 34px;
}
.container .calculator .calc-body .equal-sign {
grid-column: -2;
-ms-grid-row: 2;
-ms-grid-row-span: 4;
grid-row: 2/6;
background-color: #63a69a;
}
.container .calculator .calc-body .clear {
background-color: #f28177;
}
/* width */
::-webkit-scrollbar {
width: 10px;
height: 5px;
}
/* Track */
::-webkit-scrollbar-track {
background: #f2b5a7;
border-radius: 10px;
}
/* Handle */
::-webkit-scrollbar-thumb {
background: #f28177;
border-radius: 10px;
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
background: #f28da8;
border-radius: 10px;
}
@media only screen and (max-width: 600px) {
.container .calculator {
width: 95%;
}
}
/*# sourceMappingURL=style.css.map */