-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
118 lines (100 loc) · 2.55 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
112
113
114
115
116
117
118
body {
font-family: 'Arial', sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background: linear-gradient(45deg, #01507e, #04ffea); /* Radiant background */
}
.calculator {
background: linear-gradient(145deg, #24ffbd, #3801017e); /* Subtle gradient for the calculator */
padding: 20px;
border-radius: 15px;
box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
}
#display {
width: 100%;
height: 50px;
font-size: 24px;
text-align: right;
margin-bottom: 15px;
padding-right: 10px;
border: 1px solid #cccccc;
border-radius: 10px;
background-color: #c8fae6; /* Slightly lighter background */
}
.buttons {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-gap: 10px;
}
button {
width: 100%;
padding: 15px; /* Reduced padding */
font-size: 16px; /* Smaller font size */
font-weight: bold;
color: rgb(0, 2, 1);
border: none;
border-radius: 10px;
cursor: pointer;
background: linear-gradient(145deg, #01374d83, #00f7ffe8), black; /* Radiant gradient for buttons */
transition: transform 0.2s, background-color 0.3s;
}
button:hover {
transform: scale(1.05);
}
button:active {
transform: scale(0.95);
}
.zero {
grid-column: span 2;
}
.history {
display: none; /* Initially hidden */
position: fixed; /* Fixed position to place it in the upper left corner */
top: 10px; /* Distance from the top of the screen */
left: 10px; /* Distance from the left side of the screen */
padding: 1px;
background: #f4f4f4;
border-radius: 10px;
max-width: 300px;
max-height: 300px; /* Limit the height to make it scrollable */
overflow-y: auto; /* Make history scrollable */
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
z-index: 1000; /* Ensures it stays on top of other elements */
border: 1px solid black;
}
.history h4 {
margin: 0;
text-align: center;
}
#history-list {
list-style-type: none;
padding: 0;
}
#history-list li {
padding: 5px;
border-bottom: 1px solid #000000;
border: 3px solid #09615a;
margin-top: 1px;
display: flex;
flex-direction: column;
}
#history-list li:last-child {
border-bottom: none;
}
#toggle-history {
margin-top: 10px;
padding: 1px ;
font-size: 16px;
cursor: pointer;
border: none;
border-radius: 5px;
background: #4CAF50; /* Green background */
color: white;
transition: background-color 0.3s;
}
#toggle-history:hover {
background-color: #45a049;
}