-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
111 lines (96 loc) · 1.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
html {
box-sizing: border-box;
}
body {
margin: 0;
min-height: 100vh;
background: linear-gradient(to right, #2193b0, #6dd5ed);
display: flex;
align-items: center;
justify-content: center;
}
.calculator {
background: rgb(245, 240, 240);
border-radius: 7px;
padding: 10px;
width: 350px;
box-shadow: 0 5px 30px -5px rgba(0,0,0, 0.6);
}
.calculator-display{
background: #222;
color: #fff;
margin: 0;
margin-bottom: 5px;
display: flex;
align-items: center;
justify-content: flex-end;
border-radius: 7px;
}
.calculator-display h1{
margin: 0;
padding: 15px;
letter-spacing: 5px;
font-size: 40px;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
font-weight: 100;
overflow-x: auto;
/* width: 100%; */
}
.calculator-display h1::-webkit-scrollbar {
width: 0.1em;
height: 15px;
}
.calculator-display h1::-webkit-scrollbar-track {
box-shadow: inset 0 0 6px rgba(214, 210, 210, 0.3);
}
.calculator-display h1::-webkit-scrollbar-thumb {
background-color: rgb(5, 201, 207);
outline: 1px solid rgb(186, 211, 236);
border-radius: 20px;
outline: none;
}
.calculator-buttons{
display: grid;
grid-gap: 5px;
grid-template-columns: repeat(4, 1fr);
}
button{
min-height: 45px;
font-size: 32px;
cursor: pointer;
border-radius: 5px;
font-weight: 100;
}
button:hover {
filter: brightness(110%);
}
button:active {
transform: translateY(1px);
}
button:focus {
outline: none;
}
.operator {
background: #999;
color: rgb(230, 227, 227);
font-size: 48px;
}
.equal-sign{
grid-row: 2 / 6;
grid-column: 4;
height: 100%;
background: rgb(170, 228, 56);
}
.clear{
background: tomato;
color: #fff;
}
.clear:hover{
filter: brightness(90%);
}
/* Media Query: Large Smartphone (Vertical) */
@media screen and (max-width: 600px) {
.calculator {
width: 90%;
}
}