JezK
Edit File: tiffin-menu-frontend.css
/* === TIFFIN MENU FRONTEND STYLES === */ /* Main Container */ .tiffin-menu-display { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; background: #ffffff; border-radius: 12px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); overflow: hidden; margin: 20px 0; border: 1px solid #f0f0f0; } /* Menu Header */ .tiffin-menu-display .menu-header { background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%); color: white; padding: 20px 24px; text-align: center; } .tiffin-menu-display .menu-title { margin: 0 0 8px 0; font-size: 24px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 10px; } .tiffin-menu-display .menu-icon { font-size: 28px; } .tiffin-menu-display .menu-week-info { font-size: 14px; opacity: 0.9; font-weight: 500; } /* Notice */ .tiffin-menu-notice { background: #f8f9fa; border: 2px dashed #dee2e6; border-radius: 8px; padding: 20px; text-align: center; color: #6c757d; margin: 20px 0; } /* === TABLE LAYOUT === */ .layout-table .menu-table-container { overflow-x: auto; } .layout-table .menu-table { width: 100%; border-collapse: collapse; background: white; } .layout-table .menu-table thead th { background: #f8f9fa; color: #495057; font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; padding: 16px 20px; text-align: left; border-bottom: 2px solid #dee2e6; } .layout-table .menu-table tbody tr { border-bottom: 1px solid #f0f0f0; transition: background-color 0.2s ease; } .layout-table .menu-table tbody tr:hover { background: #f8f9fa; } .layout-table .menu-table tbody tr:last-child { border-bottom: none; } .layout-table .day-cell { padding: 20px; width: 140px; vertical-align: top; border-right: 1px solid #f0f0f0; } .layout-table .day-label { display: flex; flex-direction: column; gap: 4px; } .layout-table .day-name { font-weight: 700; font-size: 16px; color: #ff6b35; } .layout-table .day-date { font-size: 12px; color: #6c757d; font-weight: 500; } .layout-table .items-cell { padding: 20px; vertical-align: top; } .layout-table .menu-items-list { font-size: 15px; line-height: 1.6; color: #333; font-weight: 500; padding: 12px 16px; background: #f8f9fa; border-radius: 8px; border-left: 4px solid #ff6b35; } /* === GRID LAYOUT === */ .layout-grid .menu-grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; padding: 24px; } .layout-grid .daily-menu-card { background: white; border-radius: 12px; border: 1px solid #f0f0f0; overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; } .layout-grid .daily-menu-card:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); } .layout-grid .card-header { background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%); color: white; padding: 16px 20px; text-align: center; } .layout-grid .day-title { margin: 0 0 4px 0; font-size: 18px; font-weight: 700; } .layout-grid .day-date { font-size: 12px; opacity: 0.9; } .layout-grid .card-content { padding: 20px; } .layout-grid .menu-items-inline { font-size: 15px; line-height: 1.6; color: #333; font-weight: 500; } /* === INLINE LAYOUT === */ .layout-inline .menu-inline-container { padding: 24px; line-height: 1.6; font-size: 15px; } .layout-inline .day-group { display: inline-block; margin: 5px 8px; padding: 10px 12px; background: #f8f9fa; border-radius: 6px; border-left: 3px solid #ff6b35; } .layout-inline .day-group strong { color: #ff6b35; font-weight: 700; } .layout-inline .separator { color: #dee2e6; font-weight: bold; margin: 0 12px; } /* === LIST LAYOUT === */ .layout-list .menu-list-container { padding: 0; } .layout-list .daily-menu-section { border-bottom: 1px solid #f0f0f0; } .layout-list .daily-menu-section:last-child { border-bottom: none; } .layout-list .section-header { background: #f8f9fa; padding: 16px 24px; border-bottom: 1px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; } .layout-list .day-header { margin: 0; font-size: 18px; font-weight: 700; color: #ff6b35; } .layout-list .day-date { font-size: 13px; color: #6c757d; font-weight: 500; } .layout-list .section-content { padding: 16px 24px; } .layout-list .menu-items-inline { font-size: 15px; line-height: 1.6; color: #333; font-weight: 500; } /* Common styling for inline menu items */ .menu-items-inline { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; } /* Menu separator styling */ .menu-separator { color: #ff6b35; opacity: 0.7; font-weight: 600; margin: 0 2px; } /* Good Tiffin special styling */ .good-tiffin-item { color: #28a745; font-weight: 700; background: rgba(40, 167, 69, 0.1); padding: 2px 6px; border-radius: 4px; border: 1px solid rgba(40, 167, 69, 0.2); } /* Non Veg Good Tiffin special styling */ .non-veg-good-tiffin-item { color: #dc3545; font-weight: 700; background: rgba(220, 53, 69, 0.1); padding: 2px 6px; border-radius: 4px; border: 1px solid rgba(220, 53, 69, 0.2); } /* === RESPONSIVE DESIGN === */ @media (max-width: 768px) { .tiffin-menu-display .menu-header { padding: 16px 20px; } .tiffin-menu-display .menu-title { font-size: 20px; } /* Table becomes stacked on mobile */ .layout-table .menu-table, .layout-table .menu-table thead, .layout-table .menu-table tbody, .layout-table .menu-table th, .layout-table .menu-table td, .layout-table .menu-table tr { display: block; } .layout-table .menu-table thead tr { position: absolute; top: -9999px; left: -9999px; } .layout-table .menu-table tr { border: 1px solid #f0f0f0; border-radius: 8px; margin-bottom: 16px; padding: 16px; background: white; } .layout-table .day-cell, .layout-table .items-cell { border: none !important; padding: 0; width: 100%; } .layout-table .day-cell { margin-bottom: 12px; } .layout-table .day-label { flex-direction: row; align-items: center; gap: 8px; } .layout-table .menu-items-list { font-size: 14px; padding: 10px 12px; } .layout-grid .menu-grid-container { grid-template-columns: 1fr; gap: 16px; padding: 16px; } .layout-grid .menu-items-inline { font-size: 14px; } .layout-inline .menu-inline-container { padding: 16px; } .layout-inline .day-group { display: block; margin: 10px 0; } .layout-inline .separator { display: none; } .layout-list .section-header { padding: 12px 16px; flex-direction: column; align-items: flex-start; gap: 4px; } .layout-list .section-content { padding: 12px 16px; } .layout-list .menu-items-inline { font-size: 14px; } } @media (max-width: 480px) { .tiffin-menu-display { margin: 16px 0; border-radius: 8px; } .tiffin-menu-display .menu-header { padding: 12px 16px; } .tiffin-menu-display .menu-title { font-size: 18px; } .layout-table .menu-items-list { font-size: 13px; padding: 8px 10px; } .layout-grid .card-content { padding: 16px; } .layout-grid .menu-items-inline { font-size: 13px; } .layout-list .menu-items-inline { font-size: 13px; line-height: 1.5; } } /* === WEEKEND PREFIX STYLING === */ .weekend-prefix { display: inline-block; color: black; padding: 6px 12px; border-radius: 5px; border: 1px solid #f06b1a; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-right: 8px; } /* Responsive weekend prefix */ @media (max-width: 768px) { .weekend-prefix { font-size: 11px; padding: 4px 8px; margin-right: 6px; } } @media (max-width: 480px) { .weekend-prefix { font-size: 10px; padding: 3px 6px; margin-right: 4px; display: block; margin-bottom: 8px; text-align: center; width: fit-content; margin-left: auto; margin-right: auto; } }