added css for beautificaton
This commit is contained in:
@@ -111,8 +111,10 @@ footer, .Footer {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
min-height: 140px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.recipe-card:hover {
|
.recipe-card:hover {
|
||||||
transform: translateY(-3px);
|
transform: translateY(-3px);
|
||||||
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
|
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
|
||||||
@@ -227,6 +229,170 @@ footer, .Footer {
|
|||||||
color: #292524;
|
color: #292524;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tag-badge {
|
||||||
|
display: inline-block;
|
||||||
|
padding-right: 0.4rem;
|
||||||
|
padding-top: 0.5rem;
|
||||||
|
color: #b45309;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Print & PDF Export Styles */
|
||||||
|
@media print {
|
||||||
|
@page {
|
||||||
|
size: portrait;
|
||||||
|
margin: 0.5in;
|
||||||
|
}
|
||||||
|
|
||||||
|
header, footer, .no-print {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
background-color: #ffffff !important;
|
||||||
|
margin: 0 !important;
|
||||||
|
padding: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container {
|
||||||
|
max-width: 100% !important;
|
||||||
|
padding: 0 !important;
|
||||||
|
margin: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.printable-recipe-card {
|
||||||
|
page-break-before: always !important;
|
||||||
|
break-before: page !important;
|
||||||
|
page-break-after: always !important;
|
||||||
|
break-after: page !important;
|
||||||
|
page-break-inside: avoid !important;
|
||||||
|
break-inside: avoid !important;
|
||||||
|
height: 100vh !important;
|
||||||
|
max-height: 100vh !important;
|
||||||
|
box-sizing: border-box !important;
|
||||||
|
overflow: hidden !important;
|
||||||
|
border: none !important;
|
||||||
|
box-shadow: none !important;
|
||||||
|
padding: 0.5rem 0 !important;
|
||||||
|
margin: 0 !important;
|
||||||
|
display: flex !important;
|
||||||
|
flex-direction: column !important;
|
||||||
|
justify-content: flex-start !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.printable-recipe-card:first-child {
|
||||||
|
page-break-before: auto !important;
|
||||||
|
break-before: auto !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.printable-recipe-card .recipe-title {
|
||||||
|
font-size: 1.5rem !important;
|
||||||
|
margin-bottom: 0.2rem !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.printable-recipe-card .recipe-author {
|
||||||
|
font-size: 0.85rem !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.printable-recipe-card .recipe-illustration {
|
||||||
|
width: 60px !important;
|
||||||
|
height: 60px !important;
|
||||||
|
padding: 3px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.printable-recipe-card .recipe-divider {
|
||||||
|
margin: 0.5rem 0 0.75rem 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.printable-recipe-card .recipe-body h2,
|
||||||
|
.printable-recipe-card .recipe-body h3 {
|
||||||
|
font-size: 0.95rem !important;
|
||||||
|
margin-top: 0.75rem !important;
|
||||||
|
margin-bottom: 0.3rem !important;
|
||||||
|
padding-bottom: 0.15rem !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.printable-recipe-card .recipe-body p,
|
||||||
|
.printable-recipe-card .recipe-body li {
|
||||||
|
font-size: 0.82rem !important;
|
||||||
|
line-height: 1.35 !important;
|
||||||
|
margin-bottom: 0.2rem !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.printable-recipe-card .recipe-body ul,
|
||||||
|
.printable-recipe-card .recipe-body ol {
|
||||||
|
margin-bottom: 0.6rem !important;
|
||||||
|
padding-left: 1.2rem !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.category-header-card {
|
||||||
|
display: flex !important;
|
||||||
|
flex-direction: column !important;
|
||||||
|
align-items: center !important;
|
||||||
|
justify-content: center !important;
|
||||||
|
text-align: center !important;
|
||||||
|
background-color: #faf8f5 !important;
|
||||||
|
border: 2px solid var(--border-color) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.category-header-content {
|
||||||
|
margin: auto 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.category-label {
|
||||||
|
font-size: 0.9rem !important;
|
||||||
|
letter-spacing: 0.25em !important;
|
||||||
|
color: var(--primary-color) !important;
|
||||||
|
font-weight: 700 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.category-header-title {
|
||||||
|
font-size: 2.8rem !important;
|
||||||
|
font-family: var(--font-serif) !important;
|
||||||
|
color: #1c1917 !important;
|
||||||
|
margin: 0.5rem 0 !important;
|
||||||
|
letter-spacing: 0.05em !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.category-count {
|
||||||
|
font-size: 1.1rem !important;
|
||||||
|
color: #78716c !important;
|
||||||
|
font-style: italic !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Category header web styles */
|
||||||
|
.category-header-card {
|
||||||
|
min-height: 300px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
text-align: center;
|
||||||
|
background-color: #faf8f5;
|
||||||
|
border: 2px solid var(--border-color);
|
||||||
|
margin-bottom: 3rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.category-label {
|
||||||
|
display: block;
|
||||||
|
font-size: 0.85rem;
|
||||||
|
letter-spacing: 0.25em;
|
||||||
|
color: var(--primary-color);
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
|
.category-header-title {
|
||||||
|
font-size: 2.5rem;
|
||||||
|
font-family: var(--font-serif);
|
||||||
|
color: #1c1917;
|
||||||
|
margin: 0.4rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.category-count {
|
||||||
|
font-size: 1rem;
|
||||||
|
color: #78716c;
|
||||||
|
font-style: italic;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user