133 lines
2.3 KiB
CSS
133 lines
2.3 KiB
CSS
body {
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
background-color: #f0f4f8;
|
|
color: #333;
|
|
text-align: center;
|
|
background-image: linear-gradient(to bottom right, #ffffff, #e3f2fd);
|
|
}
|
|
|
|
.container {
|
|
width: 60%;
|
|
max-width: 700px;
|
|
margin: 40px auto;
|
|
background: #ffffff;
|
|
padding: 30px;
|
|
border-radius: 12px;
|
|
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
|
|
transition: box-shadow 0.3s ease;
|
|
}
|
|
|
|
.container:hover {
|
|
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
h1,
|
|
h2 {
|
|
margin-bottom: 15px;
|
|
color: #444;
|
|
}
|
|
|
|
ul {
|
|
list-style: none;
|
|
padding: 0;
|
|
}
|
|
|
|
li {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 12px;
|
|
background: #fafafa;
|
|
margin: 8px 0;
|
|
border-radius: 8px;
|
|
border: 1px solid #e0e0e0;
|
|
transition: transform 0.2s ease, background-color 0.3s ease;
|
|
}
|
|
|
|
li:hover {
|
|
transform: scale(1.02);
|
|
background-color: #f0f8ff;
|
|
}
|
|
|
|
.avatar {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
margin-right: 15px;
|
|
}
|
|
|
|
.user-info {
|
|
flex-grow: 1;
|
|
text-align: left;
|
|
}
|
|
|
|
button {
|
|
background-color: #4CAF50;
|
|
color: white;
|
|
border: none;
|
|
padding: 6px 12px;
|
|
cursor: pointer;
|
|
border-radius: 6px;
|
|
transition: background-color 0.3s ease, transform 0.2s ease;
|
|
}
|
|
|
|
button:hover {
|
|
background-color: #45a049;
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
button.delete-btn {
|
|
background-color: #f44336;
|
|
}
|
|
|
|
button.delete-btn:hover {
|
|
background-color: #e53935;
|
|
}
|
|
|
|
input[type="text"] {
|
|
padding: 8px;
|
|
border-radius: 6px;
|
|
border: 1px solid #ccc;
|
|
margin-right: 10px;
|
|
width: 70%;
|
|
max-width: 300px;
|
|
box-sizing: border-box;
|
|
transition: border-color 0.3s ease;
|
|
}
|
|
|
|
input[type="text"]:focus {
|
|
border-color: #4CAF50;
|
|
outline: none;
|
|
box-shadow: 0 0 8px rgba(72, 239, 128, 0.5);
|
|
}
|
|
|
|
.random-btn {
|
|
margin-top: 15px;
|
|
background-color: #2196F3;
|
|
}
|
|
|
|
.random-btn:hover {
|
|
background-color: #1976D2;
|
|
}
|
|
|
|
.random-user-card {
|
|
display: inline-block;
|
|
padding: 10px;
|
|
margin-top: 15px;
|
|
background-color: #fff;
|
|
border-radius: 10px;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
animation: fade-in 0.5s ease;
|
|
}
|
|
|
|
@keyframes fade-in {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(20px);
|
|
}
|
|
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
} |