-
Notifications
You must be signed in to change notification settings - Fork 0
/
stylesheet.css
92 lines (90 loc) · 1.64 KB
/
stylesheet.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
/* Style sheet for the calculator */
body {
background-color: #476088;
color: #f8eeee;
font-family: sans-serif;
margin: 0;
padding: 0;
}
.header {
text-align: left;
margin: 30px 30px 30px 30px;
}
#card {
background-color: #f8eeee;
max-width: 290px;
margin: 10px 30px 10px 30px;
padding: 30px;
border-radius: 0.2em;
}
#screen {
width: auto;
height: 50px;
background-color: #ffffff;
color: #476088;
box-shadow: inset 0px 4px 4px rgba(0, 0, 0, 0.25);
margin-bottom: 20px;
text-align: right;
font-size: 2em;
padding: 0.5em 0.5em 0 0;
}
#button-grid {
display: grid;
grid-template-columns: auto 1fr;
gap: 10px;
grid-auto-flow: row;
}
button {
width: 50px;
height: 50px;
background-color: #476088;
color: #f8eeee;
border-radius: 0.2em;
font-weight: 600;
font-size: 1.3em;
text-align: center;
border-style: none;
cursor: pointer;
}
button:hover {
box-shadow: inset 0px 4px 4px rgba(0, 0, 0, 0.25);
}
button:focus {
outline: 1px solid #ffffff;
outline-offset: -4px;
background-color: #ffffff;
color: #476088;
box-shadow: inset 0px 2px 2px rgba(71, 96, 136, 0.4);
}
#decimal {
grid-row: 3 / 3;
grid-column: 1 / 1;
}
#substract {
grid-row: 3 / 3;
grid-column: 2 / 2;
}
#add {
grid-row: 3 / 3;
grid-column: 3 / 3;
}
#divide {
grid-row: 3 / 3;
grid-column: 4 / 4;
}
#multiply {
grid-row: 3 / 3;
grid-column: 5 / 5;
}
#sqrt {
grid-row: 4 / 4;
grid-column: 3 / 3;
}
#equal {
grid-row: 4 / 4;
grid-column: 4 / 4;
}
#cancel {
grid-row: 4 / 4;
grid-column: 5 / 5;
}