-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
121 lines (105 loc) · 2.27 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
font-size: 16px;
font-family: "Roboto Mono", monospace;
color: #000;
}
body {
width: 100vw;
height: 100vh;
background: #fff;
background: linear-gradient(
90deg,
rgba(255, 255, 255, 1) 0%,
rgba(70, 130, 180, 1) 0%,
rgba(238, 238, 238, 1) 50%,
rgba(255, 165, 0, 1) 100%
);
display: grid;
place-content: center;
}
.container {
width: 90vw;
max-width: 500px;
background-color: #cecece;
display: grid;
gap: 1px;
grid-template-areas:
"header header header header"
"display display display display";
grid-template-columns: repeat(4, minmax(0, 1fr));
grid-template-rows: 20px minmax(120px, auto) repeat(5, minmax(0, 70px));
}
.container:focus-within {
background-color: rgba(225, 225, 225, 0.5);
}
.header {
grid-area: header;
padding: 0.25rem 0.5rem;
display: flex;
align-items: center;
}
.header > h1 {
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
font-size: 0.85rem;
font-weight: normal;
}
.display {
grid-area: display;
padding: 3px 5px;
display: flex;
justify-content: space-between;
flex-direction: column;
}
.previousvalue {
display: flex;
justify-content: flex-end;
align-items: center;
height: 1rem;
}
.currentvalue {
font-size: 3rem;
font-weight: bolder;
background-color: transparent;
border: none;
outline: none;
text-align: right;
font-family: "Roboto Mono", monospace;
}
button {
display: grid;
place-content: center;
font-size: 1.5rem;
padding: 0.5rem;
background-color: whitesmoke;
border: none;
outline: none;
}
button:hover,
button:active {
background-color: rgba(255,255,255, 0.2);
}
.function {
background-color: rgb(235, 235, 235);
}
.equals {
background-color: rgb(108, 177, 233);
}
.equals:hover,
.equals:active {
background-color: steelblue;
filter: brightness(110%);
}
@media screen and (min-width: 768px) {
html {
font-size: 22px;
}
.container {
grid-template-rows: 35px minmax(95px, auto) repeat(5, minmax(0, 95px));
}
}