82 lines
1.3 KiB
CSS
82 lines
1.3 KiB
CSS
body {
|
|
font-family: Fredoka, sans-serif;
|
|
background-color: #ffffff;
|
|
color: #333;
|
|
margin: 0;
|
|
padding: 20px;
|
|
transition: background-color 0.3s ease, color 0.3s ease;
|
|
}
|
|
|
|
.container {
|
|
max-width: 900px;
|
|
margin: auto;
|
|
}
|
|
|
|
.item-list {
|
|
list-style: none;
|
|
padding: 0;
|
|
}
|
|
.item-card {
|
|
position: relative;
|
|
background-color: #fff;
|
|
border-radius: 8px;
|
|
margin-bottom: 20px;
|
|
padding: 20px;
|
|
padding-top: 40px;
|
|
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
|
|
/* transition: background-color 0.3s ease; */
|
|
}
|
|
.item-card h2 {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.avatar {
|
|
width: 50px;
|
|
height: 50px;
|
|
border-radius: 50%;
|
|
object-fit: cover;
|
|
margin-top: 5px;
|
|
border: 2px solid #ccc;
|
|
background-color: #fff;
|
|
display: block;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.avatar-container {
|
|
position: absolute;
|
|
top: 15px;
|
|
right: 15px;
|
|
text-align: center;
|
|
}
|
|
|
|
body.dark-mode {
|
|
background-color: #1f1f1f;
|
|
color: #f4f4f4;
|
|
}
|
|
|
|
body.dark-mode .item-card {
|
|
background-color: #2a2a2a;
|
|
}
|
|
|
|
body.dark-mode a,
|
|
body.dark-mode p,
|
|
body.dark-mode h2 {
|
|
color: #ccc;
|
|
}
|
|
|
|
button#toggle {
|
|
position: fixed;
|
|
top: 20px;
|
|
right: 20px;
|
|
background-color: #ff0095;
|
|
color: white;
|
|
border: none;
|
|
padding: 10px 14px;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
transition: background-color 0.3s;
|
|
}
|
|
|
|
button#toggle:hover {
|
|
background-color: #6d0246;
|
|
} |