-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
149 lines (129 loc) · 2.67 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
:root {
--background-color: #383A59;
--calculator-color: #282A36;
--buttons-display-color: #414760;
--operators-color: #353a4e;
--dark-operators: #262a3a;
--dark-nums: #34394e;
--purple: #B28BEC;
--dark-purple: #8b64c5;
--pink: #E573C5;
--blue: #86E0F4;
--green: #76D16E;
--yellow: #FBF280;
--white: #FFF;
}
*, *::before, *::after {
box-sizing: border-box;
font-size: 62.5%;
border: none;
outline: none;
font-family: 'Nippo', sans-serif;
}
body {
padding: 0;
margin: 0;
background: var(--background-color);
}
.container {
min-height: 100vh;
display: grid;
justify-content: center;
align-content: center;
}
.container >.calculator {
display: grid;
justify-content: center;
align-content: center;
grid-template-columns: repeat(4, 80px);
grid-template-rows: minmax(100px, auto) repeat(5, 80px);
gap: 12px;
padding: 25px;
border-radius: 20px;
background: var(--calculator-color);
box-shadow: 28px 28px 56px #1e2029,
-28px -28px 56px #323443;
}
.calculator > button {
cursor: pointer;
font-size: 2rem;
border-radius: 15px;
background: var(--buttons-display-color);
color: var(--blue);
box-shadow: 8px 8px 16px #1b1c26,
-8px -8px 16px #21222e;
transition: all ease 0.2s;
}
button:hover {
background: var(--dark-nums);
}
button:active {
transform: translateY(2px);
}
.calculator > button[data-operation] {
color: var(--pink);
background: var(--operators-color);
}
button[data-operation]:hover {
background: var(--dark-operators);
}
.calculator > button[data-equals]{
color: var(--yellow);
background: var(--purple);
font-size: 2.5rem;
}
button[data-equals]:hover {
background: var(--dark-purple);
}
.calculator > button[data-clear],
button[data-delete] {
color: var(--green);
}
.span-two {
grid-column: span 2;
}
.display {
grid-column: 1 / -1;
display: flex;
align-items: center;
justify-content: flex-end;
font-size: 4.2rem;
word-wrap: break-word;
word-break: break-all;
padding-inline: 20px;
border-radius: 10px;
margin-bottom: 19px;
min-height: 120px;
background: var(--buttons-display-color);
color: var(--pink);
box-shadow: 13px 13px 29px #14141a,
-13px -13px 29px #2e303e;
}
footer {
position: fixed;
left: 0;
bottom: 0;
width: 100%;
text-align: center;
}
footer p, span {
font-size: 1.7rem;
color: var(--pink);
}
footer p > span:hover {
border-bottom: 2px solid;
border-image: linear-gradient(to right, var(--yellow), var(--pink)) 1;
transition: all ease 0.1s;
cursor: pointer;
}
.blink {
font: inherit;
animation: blink 0.6s infinite;
}
@keyframes blink {
from{
opacity: 0;
} to {
opacity: 1;
}
}