-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstyles.css
More file actions
201 lines (195 loc) · 5.69 KB
/
styles.css
File metadata and controls
201 lines (195 loc) · 5.69 KB
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
198
199
200
201
/* Style the custom scrollbar for Webkit-based browsers (Chrome, Safari) */
::-webkit-scrollbar {
width: 10px;
}
::-webkit-scrollbar-track {
background: #1a1a1a ; /* Track color */
}
::-webkit-scrollbar-thumb {
background: #444; /* Thumb color */
border-radius: 5px; /* Rounded corners */
}
/* Style the custom scrollbar for Firefox */
/* Note that the scrollbar in Firefox can only be styled using the scrollbar-width property, which is not widely supported yet (as of my knowledge cutoff in September 2021) */
/* This example might not work in all versions of Firefox */
* {
scrollbar-width: thin;
scrollbar-color: #444 #1a1a1a;
}
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #1a1a1a; /* Dark background color */
color: #ffffff; /* Light text color */
display: flex;
flex-direction: column;
min-height: 100vh; /* Make the body take up at least the full viewport height */
}
header, footer{
background-color: #4caf50; /* Green header and footer background color */
padding: 10px;
color: #ffffff;
text-align: center;
animation: changeHue 10s infinite alternate; /* Apply the hue animation */
}
@keyframes changeHue {
0% {
filter: hue-rotate(0deg); /* Starting hue rotation value */
}
100% {
filter: hue-rotate(360deg); /* Ending hue rotation value (360deg for a full cycle) */
}
}
main {
display: flex; /* Use flexbox to create a two-column layout */
max-width: 1050px;
margin: 20px auto;
flex-wrap: wrap; /* Allow elements to wrap within the flex container */
justify-content: space-between; /* Align items at the edges */
}
.profile {
flex: 1 0 250px; /* Allow the profile to grow, but not shrink below 250px */
display: flex;
flex-direction: column;
margin-bottom: 20px;
}
.profile-inner,
.blog {
padding: 20px;
background-color: #292929; /* Darker content background color */
border: 1px solid #444;
border-radius: 5px;
margin-bottom: 20px;
text-align: justify;
}
.profile-picture {
max-width: 150px;
display: block;
margin: 0 auto 20px;
box-shadow: 8px 8px 15px rgba(0, 0, 0, 0.5);
}
.info {
text-align: justify;
}
.info p {
margin: 5px 0;
}
.blogs-container {
flex: 1 0 600px; /* Allow the blogs to grow, but not shrink below 600px */
max-width: 600px; /* Limit the width of the blog container */
margin-left: 20px; /* Add some space between the profile and blogs */
display: flex;
flex-direction: column;
}
.blog {
background-color: #292929; /* Use the same background color as the profile */
color: white;
padding: 20px;
text-align: justify;
margin-bottom: 20px;
border: 1px solid #444;
border-radius: 5px;
}
.button {
background-color: #292929; /* Use the same background color as the profile */
color: white;
padding: 10px;
text-align: justify;
margin-bottom: 10px;
border: 1px solid #444;
border-radius: 5px;
}
.button:hover {
border-color: #4caf50;
color: #4caf50; /* Set the link text color to yellow when hovering */
animation: changeHue 10s infinite alternate;
}
#length {
background-color: #292929; /* Use the same background color as the profile */
color: white;
padding: 10px;
text-align: justify;
margin-bottom: 10px;
border: 1px solid #444;
border-radius: 5px;
}
#length:hover {
color: #4caf50; /* Set the link text color to yellow when hovering */
animation: changeHue 10s infinite alternate;
border-color: #4caf50;
}
/* Style the number input to hide the spinners */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}
/* For Firefox */
input[type="number"] {
-moz-appearance: textfield;
appearance: textfield;
}
footer {
text-align: center;
padding: 10px;
background-color: #4caf50; /* Green footer background color */
color: #fff;
position: fixed;
bottom: 0;
left: 0;
width: 100%;
display: block; /* Initially show the footer */
transition: transform 0.3s ease-in-out; /* Add smooth transition when showing/hiding */
}
.footer-hidden {
transform: translateY(100%); /* Move the footer outside the viewport */
}
a {
color: white; /* Set the link text color to white */
text-decoration: none; /* Remove the default underline */
}
/* Apply styles when hovering over the link */
a:hover {
color: #4caf50; /* Set the link text color to yellow when hovering */
animation: changeHue 10s infinite alternate;
border-color: #4caf50;
}
.bottom-box {
bottom: 0;
left: 0;
width: 100%;
background-color: #4caf50;
color: white;
padding: 10px;
box-sizing: border-box;
animation: changeHue 10s infinite alternate;
}
.exception-link {
color: white; /* Change the color for the exception links */
}
.exception-link:hover {
color: white; /* Change the color for hovered exception links */ /* Add underline for hovered exception links */
animation: none; /* Remove animation for hovered exception links */
}
/* styles.css */
#scrollToTopBtn {
position: fixed;
bottom: 20px;
left: 20px;
z-index: 1000;
display: none;
font-size: 24px;
background-color: #292929;
color: #fff;
border: none;
border-radius: 50%;
width: 40px;
height: 40px;
cursor: pointer;
}
#scrollToTopBtn:hover {
background-color: #444444;
color: #4caf50;
animation: changeHue 10s infinite alternate;
}