-
Notifications
You must be signed in to change notification settings - Fork 0
/
calculator.css
115 lines (97 loc) · 1.81 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
103
104
105
106
107
108
109
110
111
112
113
114
115
/*
* Copyright 2022 by Glasswings
* SPDX-FileCopyrightText: 2022 Glasswings
*
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
@import url('https://fonts.googleapis.com/css?family=Orbitron');
:root {
background-color: #443c4c;
color: #d8daf0;
font-family: Orbitron;
}
* {
margin: 0;
padding: 0;
}
.calculator button {
font-family: Orbitron;
font-weight: 850;
font-size: 32px;
border-radius: 12px;
border-style: solid;
color: black;
background-color: #e4d8f0;
border-color: #e4d8f0;
border-width: 5px;
transition-duration: 80ms;
}
.calculator button:hover {
border-color: #c7fff1;
border-width: 5px;
}
.calculator button:active {
border-color: #c7fff1;
background-color: #c7fff1;
}
.calculator {
max-width: 480px;
margin: auto;
margin-top: 50px;
background-color: #b69771;
}
.calculator .screen {
background-color: #462f13;
color: #c7fff1;
width: 96%;
padding: 2%;
text-align: right;
font-size: 38px;
font-weight: 750;
}
.calculator .keypad {
display: grid;
height: 400px;
padding: 10px;
gap: 6px;
font-size: 55px;
grid-template-columns: repeat(4, 1fr);
grid-template-rows: repeat(5, 1fr);
}
.calculator span.una {
display: inline;
}
.calculator span.bin {
display: none;
}
.calculator span.eq {
display: inline;
}
.calculator span.par {
display: none;
}
.div0 {
max-width: 520px;
}
.div0 button {
font-size: 1.5rem;
font-family: inherit;
background-color: #e4d8f0;
}
.div0 button:hover {
background-color: #d8a7e6;
}
footer {
background-color: #e4d8f0;
color: black;
left: 0;
right: 0;
font-size: 1.3rem;
position: absolute;
bottom: 0;
text-align: center;
padding: 0.3rem;
}
footer a {
color: maroon;
}