feat: implement responsive column-based styling for all thumbnail cards #9
@@ -158,7 +158,7 @@
|
|||||||
transition: transform 0.2s, box-shadow 0.2s;
|
transition: transform 0.2s, box-shadow 0.2s;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
height: 100%;
|
aspect-ratio: 1 / 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cookbook-card:hover {
|
.cookbook-card:hover {
|
||||||
@@ -168,14 +168,14 @@
|
|||||||
|
|
||||||
.cookbook-cover {
|
.cookbook-cover {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
aspect-ratio: 16 / 9;
|
height: 60%;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cookbook-cover-placeholder {
|
.cookbook-cover-placeholder {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
aspect-ratio: 16 / 9;
|
height: 60%;
|
||||||
background: linear-gradient(135deg, #81c784 0%, #4caf50 100%);
|
background: linear-gradient(135deg, #81c784 0%, #4caf50 100%);
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -185,7 +185,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.cookbook-info {
|
.cookbook-info {
|
||||||
padding: 1.25rem;
|
padding: 0.75rem;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
@@ -193,7 +193,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.cookbook-info h3 {
|
.cookbook-info h3 {
|
||||||
font-size: 1.3rem;
|
font-size: 1rem;
|
||||||
color: #212121;
|
color: #212121;
|
||||||
margin: 0 0 0.5rem 0;
|
margin: 0 0 0.5rem 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
@@ -205,20 +205,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.cookbook-info .description {
|
.cookbook-info .description {
|
||||||
font-size: 0.95rem;
|
display: none;
|
||||||
color: #666;
|
|
||||||
margin: 0 0 0.75rem 0;
|
|
||||||
line-height: 1.4;
|
|
||||||
overflow: hidden;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
display: -webkit-box;
|
|
||||||
-webkit-line-clamp: 2;
|
|
||||||
-webkit-box-orient: vertical;
|
|
||||||
flex: 0 0 auto;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.cookbook-info .recipe-count {
|
.cookbook-info .recipe-count {
|
||||||
font-size: 0.9rem;
|
font-size: 0.8rem;
|
||||||
color: #2e7d32;
|
color: #2e7d32;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user