-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
127 lines (105 loc) · 2.2 KB
/
styles.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
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
/* ================================================== */
/* BASIC SETUP */
/* ================================================== */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
li {
list-style-type: none;
}
body {
font-family: "Roboto", sans-serif;
line-height: 1.6;
background-color: #f1f1f1;
}
.container {
max-width: 1100px;
margin: 0 auto;
overflow: auto;
padding: 0 40px;
}
.container .title {
text-align: center;
}
/* === Calculator === */
.calculator {
width: 400px;
height: 650px;
background-color: #000;
margin: 0 auto;
border-radius: 20px;
padding: 20px;
margin-top: 40px;
}
.calculator .display {
overflow-x: scroll;
}
.calculator .display h1 {
color: #fff;
text-align: right;
font-size: 52px;
}
.control-keys {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 8px;
margin-top: 50px;
}
.control-keys .btn {
width: 78px;
height: 78px;
border-radius: 50%;
cursor: pointer;
font-size: 26px;
font-weight: bold;
display: flex;
justify-content: center;
align-items: center;
}
.control-keys .btn-func {
background-color: #A5A5A5;
color: #000;
}
.control-keys .btn-func:focus {
background-color: #A5A5A5;
transition: all 1s;
}
.control-keys .btn-func:active {
background-color: #BFBFBF;
transition: background-color 0.1s;
}
.control-keys .btn-operator,
.control-keys .btn-run {
background-color: #FF9500;
color: #fff;
}
.control-keys .btn-operator:focus,
.control-keys .btn-run:focus {
background-color: #FF9500;
transition: all 1s;
}
.control-keys .btn-operator:active,
.control-keys .btn-run:active {
background-color: #FFA64D;
transition: background-color 0.1s;
}
.control-keys .btn-num {
background-color: #4B4B4B;
color: #fff;
}
.control-keys .btn-num:focus {
background-color: #4B4B4B;
transition: all 1s;
}
.control-keys .btn-num:active {
background-color: #666666;
transition: background-color 0.1s;
}
.control-keys .btn-zero {
grid-column: 1 / 3;
width: auto;
border-radius: 50px;
}