563 lines
12 KiB
CSS
563 lines
12 KiB
CSS
/* Christmas Decorations: Fixed Positioning */
|
|
/* General Body Styles */
|
|
body {
|
|
background-color: #142E35; /* Dark green background */
|
|
color: #ffffff; /* White text */
|
|
font-family: 'Poppins', sans-serif;
|
|
}
|
|
|
|
/* Garland */
|
|
body::before {
|
|
content: '';
|
|
position: fixed;
|
|
top: 10px;
|
|
left: -5%;
|
|
width: 110%;
|
|
height: 20px;
|
|
background:
|
|
radial-gradient(circle, #de4950 4px, transparent 5px),
|
|
radial-gradient(circle, #142E35 4px, transparent 5px),
|
|
radial-gradient(circle, #7accb8 4px, transparent 5px),
|
|
radial-gradient(circle, #edd46e 4px, transparent 5px),
|
|
radial-gradient(circle, #6e98ed 4px, transparent 5px);
|
|
background-size: 100px 20px;
|
|
background-position: 0 0, 20px 0, 40px 0, 60px 0, 80px 0;
|
|
background-repeat: repeat-x;
|
|
z-index: 1031;
|
|
animation: garland-animation 1.5s infinite;
|
|
}
|
|
|
|
@keyframes garland-animation {
|
|
50% {
|
|
filter: brightness(0.7);
|
|
}
|
|
}
|
|
|
|
#christmas-decorations-right {
|
|
position: fixed;
|
|
top: 0px;
|
|
right: 250px;
|
|
width: 220px;
|
|
z-index: 1033;
|
|
}
|
|
|
|
#christmas-decorations-right img {
|
|
width: 100%;
|
|
}
|
|
|
|
#christmas-decorations-left {
|
|
position: fixed;
|
|
top: 0px;
|
|
left: 250px;
|
|
width: 220px;
|
|
z-index: 1033;
|
|
transform: scaleX(-1);
|
|
}
|
|
|
|
#christmas-decorations-left img {
|
|
width: 100%;
|
|
}
|
|
|
|
/* Headings */
|
|
h1, h2, h3, h4, h5, h6 {
|
|
color: #ffffff !important; /* Use !important to override other styles if necessary */
|
|
}
|
|
|
|
/* Buttons and Inputs */
|
|
input,
|
|
button {
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.btn {
|
|
border-radius: 50px !important; /* Fully rounded corners */
|
|
}
|
|
|
|
/* Navbar */
|
|
.navbar {
|
|
background-color: rgba(20, 46, 53, 0.8) !important; /* Semi-transparent dark green */
|
|
backdrop-filter: blur(10px);
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.navbar-brand {
|
|
color: #ffffff !important;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* Main Content */
|
|
.display-4 {
|
|
font-weight: 700;
|
|
color: #ffffff;
|
|
}
|
|
|
|
.lead {
|
|
color: #ffffff;
|
|
}
|
|
|
|
/* Cards */
|
|
.card {
|
|
background-color: rgba(255, 255, 255, 0.05);
|
|
border: none;
|
|
border-radius: 15px;
|
|
}
|
|
|
|
.card-body {
|
|
color: #ffffff;
|
|
}
|
|
|
|
/* Forms */
|
|
.form-label {
|
|
color: #ffffff;
|
|
}
|
|
|
|
.form-control {
|
|
background-color: rgba(0, 0, 0, 0.2);
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
color: #ffffff;
|
|
}
|
|
|
|
.form-control:focus {
|
|
background-color: rgba(0, 0, 0, 0.3);
|
|
border-color: #0a1a1f; /* Dark green accent */
|
|
box-shadow: 0 0 0 0.25rem rgba(10, 26, 31, 0.25);
|
|
color: #ffffff;
|
|
}
|
|
|
|
.form-control::placeholder {
|
|
color: rgba(255, 255, 255, 0.5);
|
|
}
|
|
|
|
/* Buttons */
|
|
.btn-primary, .btn-danger {
|
|
background-color: #de4950 !important; /* Coral red */
|
|
border-color: #de4950 !important;
|
|
font-weight: 600;
|
|
padding: 12px 30px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.btn-primary:hover, .btn-danger:hover {
|
|
background-color: #a02929 !important;
|
|
border-color: #a02929 !important;
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 15px rgba(222, 73, 80, 0.2);
|
|
}
|
|
|
|
.btn-outline-secondary {
|
|
border-color: rgba(255, 255, 255, 0.8);
|
|
color: #ffffff;
|
|
font-weight: 600;
|
|
padding: 12px 30px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.btn-outline-secondary:hover {
|
|
background-color: rgba(255, 255, 255, 0.1);
|
|
color: #ffffff;
|
|
border-color: #ffffff;
|
|
}
|
|
|
|
.btn-secondary {
|
|
background-color: rgba(255, 255, 255, 0.15);
|
|
border: none;
|
|
color: #ffffff;
|
|
padding: 12px 30px;
|
|
}
|
|
|
|
/* Shopping List & Recipe Cards */
|
|
#shopping-list-container .text-muted,
|
|
#recipe-cards-container .text-muted {
|
|
color: #ffffff !important;
|
|
}
|
|
|
|
.recipe-card {
|
|
background-color: rgba(255, 255, 255, 0.1);
|
|
border-radius: 10px;
|
|
padding: 15px;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
/* 3-Column Layout Adjustments */
|
|
.row.g-4 > [class*='col-'] .card {
|
|
height: 100%; /* Make cards in columns equal height */
|
|
}
|
|
|
|
#recipe-cards-container, #shopping-list-container {
|
|
max-height: 60vh; /* Adjust as needed */
|
|
overflow-y: auto;
|
|
padding: 10px;
|
|
}
|
|
|
|
/* Custom scrollbar for webkit browsers */
|
|
::-webkit-scrollbar {
|
|
width: 8px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: rgba(0, 0, 0, 0.2);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: #0a1a1f; /* Even darker green */
|
|
border-radius: 4px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: #10242B; /* Slightly lighter than thumb */
|
|
}
|
|
|
|
/* Footer */
|
|
footer.bg-light {
|
|
background-color: transparent !important;
|
|
border-top: 1px solid rgba(255, 255, 255, 0.1);
|
|
color: #ffffff;
|
|
}
|
|
|
|
/* Snow Effect */
|
|
#snow-container {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
pointer-events: none;
|
|
z-index: 1032;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.snowflake {
|
|
position: absolute;
|
|
top: -20px;
|
|
background: #fff;
|
|
border-radius: 50%;
|
|
opacity: 0.8;
|
|
pointer-events: none;
|
|
animation: fall linear infinite;
|
|
}
|
|
|
|
@keyframes fall {
|
|
to {
|
|
transform: translateY(105vh);
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
/* Shopping List Checkbox */
|
|
.list-group-item.checked .form-check-label {
|
|
text-decoration: line-through;
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.unit-btn {
|
|
padding: 0.375rem 0.5rem;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
/* Adjust padding for the remove button in the ingredient row */
|
|
.ingredient-row .remove-ingredient {
|
|
padding: 0.375rem 0.75rem;
|
|
}
|
|
|
|
/* Custom Shopping List Styles */
|
|
.col-md-4:has(#shopping-list-container) .card {
|
|
background-color: transparent;
|
|
box-shadow: none !important;
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
#shopping-list-container .list-group-item {
|
|
background-color: transparent;
|
|
color: #ffffff;
|
|
border-color: rgba(255, 255, 255, 0.1) !important;
|
|
}
|
|
|
|
/* Custom Checkbox Styles */
|
|
.form-.form-check-input {
|
|
background-color: transparent;
|
|
border: 1px solid #ffffff;
|
|
}
|
|
|
|
.form-check-input:checked {
|
|
background-color: #de4950;
|
|
border-color: #de4950;
|
|
}
|
|
|
|
.form-check-input:focus {
|
|
border-color: #0a1a1f;
|
|
box-shadow: 0 0 0 0.25rem rgba(10, 26, 31, 0.25);
|
|
}
|
|
|
|
@media print {
|
|
body * {
|
|
visibility: hidden;
|
|
}
|
|
#shopping-list-container, #shopping-list-container * {
|
|
visibility: visible;
|
|
}
|
|
#shopping-list-container {
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
width: 100%;
|
|
}
|
|
.card {
|
|
border: none !important;
|
|
box-shadow: none !important;
|
|
}
|
|
.list-group-item {
|
|
color: #000 !important;
|
|
background-color: #fff !important;
|
|
}
|
|
.badge {
|
|
color: #000 !important;
|
|
background-color: #fff !important;
|
|
border: 1px solid #ccc;
|
|
}
|
|
.form-check-input {
|
|
border: 1px solid #000 !important;
|
|
}
|
|
h2, h3 {
|
|
color: #000 !important;
|
|
}
|
|
}
|
|
|
|
.bg-custom-green {
|
|
background-color: #142E35 !important;
|
|
}
|
|
|
|
/* Modal Styles */
|
|
#recipe-form-modal .modal-content, #add-product-modal .modal-content, #confirmRemoveModal .modal-content {
|
|
background-color: #142E35;
|
|
color: white;
|
|
}
|
|
|
|
#recipe-form-modal .modal-header,
|
|
#add-product-modal .modal-header,
|
|
#confirmRemoveModal .modal-header {
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
#recipe-form-modal .modal-footer,
|
|
#add-product-modal .modal-footer,
|
|
#confirmRemoveModal .modal-footer {
|
|
border-top: 1px solid rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
#recipe-form-modal .btn-close,
|
|
#add-product-modal .btn-close,
|
|
#confirmRemoveModal .btn-close {
|
|
filter: invert(1);
|
|
}
|
|
|
|
/* Category Filter Button Styles */
|
|
#category-filters .btn {
|
|
border-radius: 20px; /* Rounded corners */
|
|
padding: 6px 12px;
|
|
font-size: 0.8rem;
|
|
font-weight: 600;
|
|
line-height: 1.5;
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
background-color: rgba(255, 255, 255, 0.1);
|
|
color: white;
|
|
transition: background-color 0.2s ease;
|
|
}
|
|
|
|
#category-filters .btn:hover {
|
|
background-color: rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
#category-filters .btn.active {
|
|
background-color: #de4950; /* Coral red for active */
|
|
border-color: #de4950;
|
|
color: white;
|
|
}
|
|
|
|
/* Recipe Card Category Label */
|
|
.card {
|
|
position: relative;
|
|
}
|
|
|
|
.recipe-category-label {
|
|
position: absolute;
|
|
top: 10px;
|
|
right: 10px;
|
|
background-color: #142E35;
|
|
color: white;
|
|
padding: 5px 10px;
|
|
border-radius: 5px;
|
|
font-size: 0.8em;
|
|
font-weight: 600;
|
|
z-index: 1;
|
|
}
|
|
|
|
/* Shopping List Quantity Controls */
|
|
.btn.btn-quantity-modifier {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 50%;
|
|
padding: 0;
|
|
font-size: 1.2rem;
|
|
font-weight: bold;
|
|
line-height: 1;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
outline: none;
|
|
box-shadow: none;
|
|
color: white;
|
|
background-color: rgba(255, 255, 255, 0.1);
|
|
transition: background-color 0.2s ease;
|
|
}
|
|
|
|
.btn.btn-quantity-modifier:hover {
|
|
background-color: rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
.quantity-controls .quantity {
|
|
margin: 0 10px;
|
|
}
|
|
|
|
/* Make delete recipe button same height as edit button */
|
|
.card .btn.delete-recipe {
|
|
padding: .25rem .5rem;
|
|
margin-left: 8px;
|
|
}
|
|
|
|
/* Recipe Card Image */
|
|
.card .card-img-top {
|
|
height: 200px;
|
|
object-fit: cover;
|
|
}
|
|
|
|
/* Overlay category label */
|
|
.card .recipe-category-label {
|
|
top: 15px;
|
|
right: 15px;
|
|
background-color: rgba(20, 46, 53, 0.8);
|
|
backdrop-filter: blur(5px);
|
|
}
|
|
|
|
/* Recipe Card Animation */
|
|
.recipe-card-enter {
|
|
animation: fade-in 0.5s ease-in-out;
|
|
}
|
|
|
|
@keyframes fade-in {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(10px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
#christmas-decorations-right,
|
|
#christmas-decorations-left {
|
|
display: none;
|
|
}
|
|
|
|
body {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.display-4 {
|
|
font-size: 2.5rem;
|
|
}
|
|
|
|
.btn {
|
|
padding: 10px 20px;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
h1, .h1 { font-size: 2rem; }
|
|
h2, .h2 { font-size: 1.5rem; }
|
|
h3, .h3 { font-size: 1.5rem; }
|
|
|
|
.card .btn.edit-recipe {
|
|
padding-top: .25rem;
|
|
padding-bottom: .25rem;
|
|
}
|
|
|
|
#print-shopping-list-btn {
|
|
font-size: 0; /* Hide the text */
|
|
padding: .25rem .5rem; /* Match other small buttons */
|
|
}
|
|
|
|
#print-shopping-list-btn .bi-printer {
|
|
font-size: 1rem; /* Restore icon size */
|
|
}
|
|
|
|
/* Make Add Recipe and Add Product buttons same height as Print button on mobile */
|
|
#add-product-btn,
|
|
.col-md-6:first-child .btn-primary {
|
|
padding-top: .375rem;
|
|
padding-bottom: .375rem;
|
|
}
|
|
|
|
/* Allow unit selector buttons to wrap in modals */
|
|
.unit-selector {
|
|
flex-wrap: wrap;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
/* Stack form elements in modals on mobile */
|
|
#add-product-modal .row .col,
|
|
#recipe-form-modal .row .col {
|
|
flex: 1 0 100%; /* Make columns full width */
|
|
}
|
|
|
|
/* Make unit selector more compact on mobile */
|
|
.unit-selector {
|
|
justify-content: flex-start;
|
|
gap: 0.25rem; /* Reduce gap between buttons */
|
|
}
|
|
|
|
.unit-selector .unit-btn {
|
|
padding: 0.25rem 0.5rem; /* Reduce padding */
|
|
font-size: 0.8rem; /* Slightly smaller font */
|
|
}
|
|
}
|
|
|
|
/* Search Input with Icon */
|
|
.search-container {
|
|
position: relative;
|
|
}
|
|
|
|
@media (min-width: 769px) {
|
|
.btn-primary,
|
|
#print-shopping-list-btn {
|
|
padding-top: 8px;
|
|
padding-bottom: 8px;
|
|
}
|
|
|
|
.btn.edit-recipe {
|
|
padding-left: 16px;
|
|
padding-right: 16px;
|
|
}
|
|
}
|
|
|
|
.search-container .bi-search {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 1rem;
|
|
transform: translateY(-50%);
|
|
z-index: 2;
|
|
color: rgba(255, 255, 255, 0.5);
|
|
}
|
|
|
|
#recipe-search {
|
|
padding-left: 2.5rem;
|
|
}
|
|
|
|
/* Unit selector button styling */
|
|
.unit-selector .btn.btn-outline-secondary {
|
|
border-color: transparent;
|
|
opacity: 0.7;
|
|
}
|