-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
113 lines (96 loc) · 2.09 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
/*All elements, before each and after each, will have these property values*/
* {
box-sizing: border-box; /*padding and border are factored into sizing of elements*/
font-weight: normal;
}
html,
body {
overflow: hidden;
height: 100%;
margin: 0;
}
body {
position: relative;
display: none;
padding: 50px 0px;
background: #e3e0e0;
font-family: "Noto Sans JP", sans-serif;
}
.calculator_grid {
position: relative;
display: grid;
justify-content: center;
align-content: center;
min-width: fit-content;
max-width: fit-content;
box-shadow: rgba(19, 19, 19, 0.2) 0px 7px 29px 0px;
font-family: "Noto Sans JP", sans-serif;
}
.calculator_grid > button {
cursor: pointer;
border: 1.8px solid rgb(248, 248, 248);
color: whitesmoke;
font-family: inherit;
outline: none;
background-color: rgba(5, 5, 5, 0.98);
overflow: hidden;
}
.calculator_grid > button:hover {
border-color: rgb(255, 255, 0);
}
.span-two {
grid-column-start: span 2;
}
.output {
font-family: inherit;
grid-column: 1 / -1;
background-color: rgba(19, 19, 21, 0.98);
display: flex;
flex-direction: column;
align-items: flex-end;
justify-content: space-around;
padding: 1vmin;
word-break: break-all; /*breaks text at the point of overflow*/
overflow: hidden;
}
.output .previous_operand {
color: rgba(255, 255, 255, 0.75);
}
.output .current_operand {
color: whitesmoke;
}
@media screen and (min-width: 320px) {
body {
display: flex;
justify-content: center;
align-items: center;
}
.calculator_grid {
grid-template-columns: repeat(4, 70px);
grid-template-rows: repeat(6, 70px);
}
.output .previous_operand {
font-size: 18px;
}
.output .current_operand {
font-size: 20px;
}
.calculator_grid > button {
font-size: 20px;
}
}
@media screen and (min-width: 451px) {
.calculator_grid {
grid-template-columns: repeat(4, 80px);
grid-template-rows: repeat(6, 80px);
}
.output .previous_operand {
font-size: 24px;
}
.output .current_operand {
font-size: 26px;
}
.calculator_grid > button {
font-size: 35px;
}
}