-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcalculator.css
102 lines (90 loc) · 1.58 KB
/
calculator.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
body, div, span {
padding:0;
margin:2px auto;
font-family: Arial;
}
h1, footer {
text-align:center;
padding-top:5px;
}
#calculator{
width:70%;
height:465px;
background-color: #AAA; /* dark gray */
border-radius:10px;
padding: 5px;
}
#error {
font-style:italic;
}
#result {
width:93%;
height:60px;
margin:15px;
background-color:#DEE;
text-align:right;
font-size:45px;
}
.columns {
margin:6px;
}
span {
width:22%; height:50px;
float:left;
cursor:pointer;
display:block;
margin: 5px 6px;
text-align:center;
text-decoration:none;
color:black;
font-size: 39px;
padding: 2px;
background: #EEF;
}
.hide {
background-color:#EEE;
cursor:none;
}
.twoCol { width:47%;}
/* Responsive design using width percentages so things look ok on a mobile device */
@media (min-width: 1024px) {
#calculator { width:60%; }
#total { width: 90%; }
.twoCol { width:46%;}
}
@media (max-width: 775px) {
#calculator { width:95%;}
#result { width:93%;}
span { width:20%; }
.columns { padding:0px;}
.twoCol { width: 42%;}
}
@media (max-width: 500px) {
header,.hide-xs {
display:none;
}
footer {
font-size:smaller;
}
#error {
font-size:x-small;
width:50%
}
#calculator {
width:95%;
height: 325px;
}
#result {width:89%;}
#result, span {
font-size:large;
height: 35px;
}
span {
width:23%;
padding:0px;
margin:1px;
}
.twoCol {
width:46.33%;
}
}