-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
116 lines (101 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
112
113
114
115
116
* {
box-sizing: border-box;
}
/* font-family: 'Roboto Mono', monospace; */
body {
background: #F5F5F5;
}
.container {
margin-top: 50px;
}
.calculator {
margin: 0 auto;
max-width: 500px;
border: 2px solid #212121;
border-radius: 15px;
overflow: hidden;
}
.calculator__screenPart {
min-height: 130px;
background: #9E9E9E;
padding: 15px;
display: flex;
justify-content: center;
align-items: center;
}
.calculator__screen {
border: 2px solid #212121;
background: #607D8B;
min-height: 100px;
height: fit-content;
width: 100%;
padding: 15px;
border-radius: 3px;
font-family: 'Roboto Mono', monospace;
color: #212121;
font-size: 70px;
line-height: 70px;
text-align: right;
}
.calculator__output{
margin: 0;
word-wrap: break-word;
}
.calculator__operationPart {
background: #757575;
padding: 15px;
display: flex;
flex-wrap: wrap;
margin: 0 -15px;
}
.calculator__numbers{
width: calc(65% - 30px);
display: flex;
flex-wrap: wrap;
justify-content: space-between;
margin: 0;
}
.calculator__btn {
width: calc((100% / 3) - 30px);
height: 50px;
margin: 15px;
border: 2px solid #212121;
display: flex;
justify-content: center;
align-items: center;
border-radius: 8px;
font-family: 'Roboto Mono', monospace;
color: #212121;
font-size: 40px;
background: #BDBDBD;
cursor: pointer;
transition: background linear 0.15s;
}
.calculator__btn-null {
width: calc(((100% / 3) * 2) - 30px);
}
.calculator__btn-act {
width: 100%;
margin: 15px 0;
}
.calculator__btn-equal {
width: 100%;
margin: 15px;
background: #B2EBF2;
height: 60px;
}
.calculator__btn-c {
width: 100%;
margin: 15px;
background: #FFCDD2;
height: 60px;
}
.btnPush {
background: #FFF9C4;
}
.calculator__mathActions{
width: 35%;
margin: 0 15px;
display: flex;
flex-wrap: wrap;
}