-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
197 lines (174 loc) · 4.16 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
/* 0.0 changed this by adding a container that wraps
#calculatorand #imgLinkedIn for easier positioning
body{
margin: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: hsl(0, 0%, 95%);
}
*/
/*------------------------------------------------------------*/
/* 0.1 took off wrapping idea and instead made a
wrap for images alone to have positioning freedom for apps
.mainConatainer {
display: flex;
flex-direction: column;
}
#calculator{
font-family: Arial, sans-serif;
background-color: hsl(0, 0%, 15%);
border-radius: 15px;
max-width: 500px;
overflow: hidden;
}
#imgLinkedIn {
margin-top: 200px; // Space between calculator and image
width: 100px;
height: auto;
Left: 20px;
}
*/
/*
#calculator {
font-family: Arial, sans-serif;
background-color: hsl(0, 0%, 15%);
border-radius: 15px;
max-width: 500px;
width: 100%; // Ensures it stays within container width
overflow: hidden;
padding: 20px;
display: flex;
flex-direction: column;
align-items: center; // Centers content within #calculator
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); // Optional shadow for effect
}
#imgContainer {
display: flex;
justify-content: center; // Centers images horizontally
gap: 15px; // Adds space between images
margin-top: 20px; // Space between calculator and images
}
#imgContainer img {
width: 50px; // Adjust size as needed
height: auto;
cursor: pointer; // Makes images clickable
}
*/
/* 0.2 */
body {
margin: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: hsl(212, 100%, 92%);
flex-direction: column;
}
#calculator {
font-family: Arial, sans-serif;
background-color: hsl(0, 0%, 15%);
border-radius: 15px;
max-width: 500px;
width: 100%;
overflow: hidden;
padding: 20px;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* Stronger shadow for depth */
display: flex;
flex-direction: column;
align-items: center;
}
#imgContainer {
display: flex;
justify-content: center;
gap: 15px;
margin-top: 20px;
padding: 10px; /* Adds inner padding to balance spacing */
}
#imgContainer img {
width: 50px; /* Adjust size as needed */
height: auto;
cursor: pointer;
transition: transform 0.3s ease; /* Smooth animation */
}
#imgContainer img:hover {
transform: scale(1.1); /* Slight zoom on hover for effect */
}
#display{
width: 100%;
padding: 20px;
font-size: 5rem;
text-align: left;
border: none;
background-color: hsl(0, 0%, 25%);
color: white;
}
#keys{
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 10px;
padding: 25px;
}
button{
width: 100px;
height: 100px;
border-radius: 50pc;
border: none;
background-color: hsl(0, 0%, 30%);
color: white;
font-size: 3rem;
font-weight: bold;
cursor: pointer;
}
button:hover{ /* buttons flash when hovered over */
background-color: hsl(0, 0%, 40%);
}
button:active{ /* buttons flash when clicked */
background-color: hsl(0, 0%, 50%);
}
.operator-btn{
background-color: hsl(225, 72.5%, 56.9%);
}
.operator-btn:hover{
background-color: hsl(225, 72.7%, 66.9%);
}
.operator-btn:active{
background-color: hsl(225, 73.7%, 76.9%);
}
.link-btn{
border-radius: 10px;
width: 200px;
height: 8vh;
background-color: hsl(200, 100%, 35%);
margin: 0;
display: flex;
justify-content: center;
align-items: center;
}
.link-btn:hover{
background-color: hsl(200, 100%, 40%);
}
.link-btn:active{
background-color: hsl(200, 100%, 45%);
}
/* old LinkedIn body
#imgLinkedIn{
position: absolute; // or absolute, depending on layout
top: 50px;
left: 100px;
}
*/
/* a tag positioning before i changed it to an <img>
a {
display: flex;
justify-content: center;
margin-top: 20px; // Adjust as needed
text-decoration: none; // Removes the underline
color: inherit; // Ensures it inherits the color from
its parent or button styles
}
a:visited {
color: inherit; // Ensures no color change after visiting
}
*/