-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
102 lines (91 loc) · 1.88 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
:root {
--background-color: #121212;
--text-color: #ffffff;
--font-family: Arial, sans-serif;
--highlight-color: #ffff00; /* Neon yellow */
--calculator-bg-color: #222;
--button-bg-color: #333;
--button-hover-bg-color: #444;
--box-shadow-color: #ffff00;
}
body {
background-color: var(--background-color);
color: var(--text-color);
font-family: var(--font-family);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 100%;
height: 100vh;
margin: 0;
}
h1,
h2 {
text-align: center;
margin: 30px 0;
color: var(--highlight-color);
}
.calculator {
display: flex;
flex-direction: column;
align-items: center;
padding: 20px;
border: 2px solid var(--highlight-color);
border-radius: 10px;
background-color: var(--calculator-bg-color);
width: 100%;
max-width: 400px;
}
#screen {
width: calc(100% - 20px);
padding: 15px;
margin-bottom: 20px;
font-size: 1.5em;
border: none;
border-radius: 5px;
background-color: var(--button-bg-color);
color: var(--highlight-color);
text-align: right;
box-shadow: 0 0 10px var(--box-shadow-color);
}
.buttons {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 10px;
width: 100%;
}
input[type='button'] {
padding: 20px;
font-size: 1.2em;
border: none;
border-radius: 5px;
background-color: var(--button-bg-color);
color: var(--highlight-color);
cursor: pointer;
transition: background-color 0.3s, box-shadow 0.3s;
box-shadow: 0 0 10px var(--box-shadow-color);
text-align: center;
}
input[type='button']:hover {
background-color: var(--button-hover-bg-color);
box-shadow: 0 0 20px var(--box-shadow-color);
}
input[type='button'].equal {
grid-column: span 4;
}
input[value]:hover {
color: var(--text-color);
font-weight: bold;
}
@media (width <= 600px) {
.calculator {
width: 90%;
max-width: 300px;
}
#screen,
input[type='button'] {
font-size: 1.2em;
padding: 10px;
}
}