-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.scss
110 lines (100 loc) · 2.27 KB
/
index.scss
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
/*
Marielle Tan
*/
*{
box-sizing: border-box;
margin: 0;
}
html,body{
display: block;
min-width: 100vw;
max-width: auto;
width: 100vw;
height: 100vh;
min-height: 100vh;
max-height: auto;
}
#main-container{
display: flex;
flex-wrap: nowrap;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
background-color: #448AFF;
overflow: hidden;
}
#calculator{
display: block;
width: 40%;
height: 70%;
background-color: #FFFFFF;
border-radius: 5px;
box-shadow: 0px 20px 10px -10px rgba(0,0,0,0.4);
overflow: hidden;
min-width: 300px;
min-height: 500px;
>#screen{
display: block;
width: 100%;
height: 40%;
background-color: #EEEEEE;
>#expr-history{
display:block;
text-align: right;
width: 100%;
height: 30%;
outline: none;
border: none;
font-size: 20px;
padding: 0px 20px 0px 20px;
}
>#expr-or-result{
display:block;
text-align: right;
width: 100%;
height: 70%;
outline: none;
border: none;
font-size: 40px;
padding: 0px 20px 0px 20px;
}
}
>#keys{
display: flex;
flex-direction: column;
flex-wrap: nowrap;
align-items: center;
justify-content: space-around;
padding: 5px;
width: 100%;
height: 60%;
>.keys_row {
display: flex;
flex-wrap: nowrap;
align-items: center;
justify-content: space-around;
width: 100%;
height: auto;
>.key_row_button{
display: block;
width: 50px;
height: 50px;
border-radius: 360px;
outline: none;
border: none;
box-shadow: 0px 3px 7px -2px rgba(0,0,0,0.4);
}
}
}
}
@media screen and (min-width:280px) and (max-width: 768px){
#calculator{
display: block;
width: 100%;
height: 100%;
min-width: initial;
min-height: initial;
border-radius: initial;
}
}