-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
108 lines (101 loc) · 1.85 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
html {
box-sizing: border-box;
}
body {
margin: 0;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background: linear-gradient(to right, #076585, #fff);
}
.calculator{
width: 400px;
background-color: whitesmoke;
border-radius: 12px;
box-shadow: 0 5px 30px -5px rgba(206, 118, 118, 0.6);
}
/* Display */
.calculator-display{
background-color: black;
color: white;
display: flex;
align-items: center;
justify-content: flex-end;
border-radius: 12px 12px 0 0;
}
.calculator-display h1{
margin: 0;
padding: 25px;
font-size: 45px;
font-family:'Times New Roman', Times, serif;
font-weight: 100;
overflow-x:auto;
}
/* Custom Scrollbar */
/* width */
::-webkit-scrollbar {
width: 10px;
}
/* Track */
::-webkit-scrollbar-track {
background: #f1f1f1;
}
/* Handle */
::-webkit-scrollbar-thumb {
background: rgb(53, 42, 42);
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
background: rgb(201, 8, 8);
}
.calculator-buttons{
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-gap: 10px;
}
button{
min-height: 50px;
font-size: 30px;
font-weight: 100;
border: none;
color: white;
background-color: gray;
margin: 5px;
border-radius: 10px;
cursor: pointer;
}
.red{
background-color: red !important;
color: #000;
}
.operator{
background-color: rgb(97, 105, 97);
color: rgb(216, 255, 144);
border: none;
}
#clear-btn{
background-color: rgb(211, 85, 85);
color: rgb(216, 255, 144);
}
button:hover{
filter: brightness(110%);
}
button:active {
transform: translateY(2px);
}
button:focus {
outline: red;
}
.equal {
background-color: rgb(154, 196, 154);
color: white;
grid-column: -2;
grid-row: 2 / span 4 ;
}
/* Media Query: Large Smartphone (Vertical) */
@media only screen and (max-width: 600px){
.calculator{
width: 95%;
}
}