-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
99 lines (90 loc) · 1.72 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
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
/* general */
.line {
height: 3px;
width: 50px;
background-color: #7868e6;
margin: 10px auto;
}
input, select, button {
text-align: center;
width: 50px;
border: 3px #7868e6 solid;
font-size: 1rem;
outline: none;
}
/* ---- */
h1 {
text-align: center;
margin: 2rem auto;
width: 20rem;
padding: 8px;
border-radius: 5px;
background-color:#b8b5ff ;
color: #fff;
cursor: default;
}
.grid-item {
text-align: center;
display: grid;
justify-content: center;
grid-template-columns: repeat(3, 0.09fr);
} .grid-item button{
grid-column: 2 / 3;
width: 6rem;
margin-top: 1rem;
height: 2rem;
cursor: pointer;
background-color: #b8b5ff;
color: #fff;
} .grid-item button:hover {
background-color: #7868e6;
} .grid-item select#operator {
font-size: 0.8rem;
width: 3rem;
margin: auto;
}
.fraction input {
width: 4rem;
}
section#result {
margin: 5rem auto;
text-align: center;
} section#result h1{
width: 10rem;
} section#result .fraction-result {
position: relative;
display: inline-block;
} section#result .fraction-result input {
border: none;
font-size: 1.5rem;
} section#result .fraction-result input.wholeNumber {
position: absolute;
top: 25px;
right: 50px;
}
#fraction-figure {
margin: 1rem;
display: flex;
} #fraction-figure .denom-box {
background-color: transparent;
height: 50px;
width: 50px;
border: 1px solid #333;
} #fraction-figure .numerator-box {
height: 50px;
width: 50px;
border: 1px solid #333;
background-color: #7868e6;
} #fraction-figure .seperate {
margin-right: 1rem;
}
@media screen and (max-width: 748px) {
.grid-item {
grid-template-columns: repeat(3, 0.15fr);
}
}