-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
111 lines (92 loc) · 1.52 KB
/
styles.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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
display: flex;
justify-content: center;
align-items: center;
background-color: rgb(46, 45, 45);
}
.main {
background-color: black;
width: 280px;
color: white;
margin: 100px;
font-size: 24px;
}
.screen {
text-align: right;
text-align: bottom;
background-color: black;
color: white;
font-weight: bold;
padding: 40px 10px 8px 10px;
font-size: 30px;
}
.cal-body {
padding: 10px;
}
.row {
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr;
}
.row1 {
grid-template-columns: 2fr 1fr 1fr;
}
.row5 {
grid-template-columns: 3fr 1fr;
}
.button {
text-align: center;
padding: 10px;
margin: 5px 4px;
border-radius: 100%;
background-color: #343131;
}
.button:hover {
background-color: #545050;
cursor: pointer;
}
.back {
background-color: #4c1d1d;
}
.back:hover {
background-color: #5f2222;
cursor: pointer;
}
.button:last-child {
background-color: rgb(212, 161, 42);
}
.button:last-child:hover {
background-color: rgb(246, 185, 43);
cursor: pointer;
}
.clear {
background-color: rgb(28, 28, 80);
}
.clear:hover {
background-color: rgb(38, 38, 110);
cursor: pointer;
}
.zero,
.clear {
border-radius: 190px;
}
@media only screen and (max-width: 445px) {
.main {
margin: 10px;
width: 90%; /* Adjust the width for phones */
height: 90%;
}
body {
height: 100vh;
}
.cal-body {
height: 90%;
display: flex;
flex-direction: column;
justify-content: space-evenly;
}
}