Flux-web / style.css
GarGerry's picture
Update style.css
b32e38e verified
raw
history blame
2.43 kB
/* Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
line-height: 1.6;
margin: 0;
background-color: white;
color: black;
transition: background-color 0.3s, color 0.3s;
}
/* Dark mode */
body.dark-mode {
background-color: #121212;
color: white;
}
header {
background-color: purple;
color: white;
padding: 1rem;
text-align: center;
position: relative;
}
header h1 {
font-size: 1.5rem;
}
header nav ul {
display: flex;
justify-content: center;
gap: 1rem;
list-style: none;
}
header nav ul li a {
color: white;
text-decoration: none;
font-weight: bold;
}
#toggleDarkMode {
position: absolute;
top: 1rem;
right: 1rem;
background: none;
border: none;
font-size: 1.5rem;
cursor: pointer;
}
/* Section */
section {
padding: 1.5rem;
}
#skills ul {
list-style-type: disc;
margin-left: 1.5rem;
}
.project {
margin-bottom: 1rem;
}
/* Form */
form input, form textarea, form button {
width: 100%;
margin: 0.5rem 0;
padding: 0.7rem;
border: 1px solid #ccc;
border-radius: 5px;
}
/* Chat Footer */
.chat-footer {
position: fixed;
bottom: 0;
left: 0;
width: 100%;
background: purple;
color: white;
text-align: center;
padding: 1rem;
}
#chatButton {
background: white;
color: purple;
border: none;
padding: 0.5rem 1rem;
border-radius: 5px;
cursor: pointer;
}
#chatbox {
display: none;
margin-top: 1rem;
}
#chatbox.active {
display: block;
padding: 1rem;
background-color: #f4f4f4;
border-radius: 5px;
color: black;
}
/* Burger Menu for Mobile */
.burger-menu {
display: none;
font-size: 1.5rem;
cursor: pointer;
position: absolute;
top: 1rem;
left: 1rem;
}
header nav ul {
flex-wrap: wrap;
}
header nav ul.active {
display: block;
flex-direction: column;
text-align: center;
}
/* Media Queries */
@media (max-width: 768px) {
header h1 {
font-size: 1.2rem;
}
header nav ul {
display: none;
}
header nav ul.active {
display: flex;
flex-direction: column;
background-color: purple;
position: absolute;
top: 3.5rem;
left: 0;
width: 100%;
padding: 1rem 0;
}
.burger-menu {
display: block;
}
section {
padding: 1rem;
}
#skills ul {
margin-left: 1rem;
}
.chat-footer {
font-size: 0.9rem;
padding: 0.8rem;
}
#chatButton {
font-size: 0.9rem;
}
}