MyFavStuff5/static/css/style.css

121 lines
2.1 KiB
CSS

body {
font-family: 'Roboto', Arial, sans-serif;
background: #f4f6fa;
margin: 0;
color: #222;
}
header {
background: #fff;
padding: 24px 32px 12px 32px;
box-shadow: 0 2px 8px rgba(0,0,0,0.03);
display: flex;
align-items: center;
gap: 16px;
}
header h1 {
font-size: 2rem;
margin: 0;
}
.tabs {
display: flex;
gap: 32px;
border-bottom: 2px solid #e0e5ec;
margin: 0 32px;
font-size: 1.1rem;
}
.tab {
padding: 12px 0;
cursor: pointer;
border-bottom: 2px solid transparent;
color: #666;
transition: border 0.2s, color 0.2s;
}
.tab.active {
border-bottom: 2px solid #1976d2;
color: #1976d2;
font-weight: 500;
}
.cards {
display: flex;
gap: 24px;
flex-wrap: wrap;
margin: 32px;
}
.card {
background: #fff;
border-radius: 16px;
box-shadow: 0 2px 8px rgba(0,0,0,0.07);
width: 240px;
padding: 0 0 20px 0;
display: flex;
flex-direction: column;
align-items: flex-start;
transition: box-shadow 0.2s;
}
.card:hover {
box-shadow: 0 6px 24px rgba(25, 118, 210, 0.09);
}
.card img {
width: 100%;
height: 180px;
object-fit: cover;
border-radius: 16px 16px 0 0;
}
.card-title {
font-size: 1.1rem;
font-weight: 500;
margin: 16px 0 0 16px;
}
.card-rating {
margin-left: 16px;
color: #fbc02d;
font-size: 1.1rem;
}
.card-desc {
margin: 8px 16px 0 16px;
color: #444;
font-size: 0.98rem;
}
.card-link {
margin: 10px 16px 0 16px;
color: #1976d2;
text-decoration: none;
font-weight: 500;
font-size: 0.97rem;
display: flex;
align-items: center;
gap: 4px;
}
.card-link:hover {
text-decoration: underline;
}
.card-likes {
margin-left: 16px;
color: #e53935;
font-size: 0.97rem;
display: flex;
align-items: center;
gap: 4px;
}
.fab {
position: fixed;
right: 32px;
bottom: 32px;
width: 56px;
height: 56px;
border-radius: 50%;
background: #1976d2;
color: #fff;
font-size: 2.2rem;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 4px 24px rgba(25, 118, 210, 0.18);
cursor: pointer;
z-index: 100;
}
@media (max-width: 900px) {
.cards { flex-direction: column; gap: 32px; }
.card { width: 100%; }
}