fridge_bites/assets/css/style.css

1577 lines
25 KiB
CSS

:root {
--panel-text: #008b70;
--input-background: #f7f7f7;
--input-border: #b3b3b3;
--input-placeholder: #b3b3b3;
--panel-background: #eaf8eb;
--input-text-color: #000;
--title-color: #015847;
--meta-color: #727272;
--common-text: #000;
--panel-title-color: #000;
--button-primary: #0DBB99;
--button-secondary: #ECECEC;
--title-font: 'Roboto Slab', sans-serif;
--common-font: 'Roboto Condensed', serif;
}
* {
box-sizing: border-box;
}
.hover-anim:hover {
opacity: 0.7;
}
.page {
min-height: 100vh;
}
.container {
width: 100%;
max-width: 1170px;
margin: 0 auto;
padding: 0 5px;
}
body {
position: relative;
font-family: var(--common-font);
font-size: 14px;
color: var(--common-text);
background-color: #fff;
padding-top: 80px;
/* Adjust padding to account for fixed header */
}
.header {
position: fixed;
top: 0;
left: 0;
width: 100%;
background-color: var(--panel-background);
color: var(--panel-text);
filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
z-index: 1000;
}
.header-inner {
display: flex;
align-items: center;
justify-content: space-between;
height: 80px;
}
.nav ul {
display: flex;
}
.nav-item a {
text-decoration: none;
color: var(--panel-text);
font-weight: 700;
margin-right: 45px;
}
.nav-item:last-child a {
margin-right: 0;
}
.nav-item a:hover {
opacity: 0.7;
}
.logo-img {
width: 100%;
height: auto;
}
.logo {
max-width: 70px;
}
.toastify.info {
background: #003a92;
}
.toastify.error {
background: #770000;
}
.toastify.success {
background: #00660f;
}
.search-and-login {
display: flex;
align-items: center;
position: relative;
}
.search-input {
height: 36px;
background-color: #C7E2C9;
border: 1px solid #A8C9AA;
border-radius: 10px;
padding: 10px;
font-family: var(--common-font);
font-size: 14px;
color: var(--input-text-color);
padding-left: 2rem;
margin-right: 16px;
}
.search-results {
position: absolute;
top: 110%;
left: 0;
background-color: var(--panel-background);
border: 1px solid #A8C9AA;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
width: 220px;
z-index: 1000;
overflow: hidden;
}
.search-result-item {
padding: 10px 16px;
font-size: 14px;
cursor: pointer;
color: var(--common-text);
font-family: var(--common-font);
}
.search-result-item a{
text-decoration: none;
color: var(--title-color);
}
.login-link {
background-color: #C7E2C9;
height: 36px;
width: 36px;
text-align: center;
border-radius: 10px;
color: rgba(0, 113, 91, 0.45);
font-size: 20px;
display: flex;
align-items: center;
justify-content: center;
border: 1px solid #A8C9AA;
}
.search-input::placeholder {
color: rgba(0, 113, 91, 0.45);
}
.search-icon {
position: absolute;
left: 0.6rem;
top: 50%;
transform: translateY(-50%);
color: rgba(0, 113, 91, 0.45);
pointer-events: none;
}
.quote {
display: flex;
flex-wrap: wrap;
font-family: var(--common-font);
font-size: 20px;
color: var(--panel-text);
text-align: center;
}
.quote h2 {
margin-right: 10px;
margin-bottom: 5px;
}
.welcome {
background: var(--panel-background);
margin-bottom: 30px;
font-size: 24px;
line-height: 32px;
}
.welcome__inner {
display: flex;
justify-content: space-between;
align-items: center;
}
.welcome__inner .quote {
font-size: 38px;
text-align: left;
margin-bottom: 20px;
}
.welcome .text-container {
padding: 50px 0;
}
.black-qoute-word {
color: var(--common-text);
}
.latest-recipes .swiper {
height: 350px;
}
.latest-recipes .swiper-slide {
height: 320px;
width: 273px;
}
.recipe-img {
height: 300px;
width: 250px;
overflow: hidden;
border: 3px solid #689E94;
border-radius: 10px;
filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
}
.recipe-img__img {
width: 100%;
height: 100%;
object-fit: cover;
display: block
}
.recent-recipe {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.recipe-info {
position: absolute;
bottom: -10px;
right: 10px;
border: 3px solid #689E94;
border-radius: 10px;
padding: 10px;
background-color: var(--panel-background);
text-align: center;
filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
}
.recipe-info__title {
font-family: var(--title-font);
font-size: 20px;
color: var(--title-color);
margin-bottom: 5px;
}
.recipe-info__meta {
font-family: var(--title-font);
font-size: 12px;
color: var(--meta-color);
}
.title {
text-align: center;
font-family: var(--title-font);
font-size: 24px;
color: var(--title-color);
font-weight: 500;
margin-bottom: 20px;
}
.categories .swiper-slide {
width: 100px;
}
.categories-swiper {
padding: 0 20px;
}
.category {
margin-left: 20px;
width: 100px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
padding: 10px 0;
text-decoration: none;
filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
background-color: var(--panel-background);
border-radius: 10px;
}
.category-title {
font-family: var(--title-font);
font-size: 14px;
color: var(--title-color);
text-align: center;
}
.categories {
margin-bottom: 40px;
}
.reviews-grid {
display: grid;
grid-template-columns: repeat(3, 310px);
grid-auto-rows: 175px;
row-gap: 20px;
column-gap: 50px;
}
.recent-review {
display: flex;
flex-direction: column;
justify-content: space-around;
height: 100%;
width: 310px;
padding: 15px;
border-radius: 10px;
background-color: var(--panel-background);
}
.review-img {
border-radius: 10px;
overflow: hidden;
margin-right: 10px;
}
.review-img img {
width: 35px;
height: 35px;
object-fit: cover;
}
.review-title {
display: flex;
align-items: center;
margin-bottom: 15px;
}
.review-title-text {
font-family: var(--title-font);
font-size: 16px;
color: #000;
}
.recent-reviews {
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
margin-bottom: 20px;
}
.review-text {
font-family: var(--common-font);
font-size: 14px;
color: var(--common-text);
margin-bottom: 15px;
}
.recent-reviews a {
text-decoration: none;
}
.review-meta {
display: flex;
flex-direction: row;
align-items: flex-start;
justify-content: space-between;
}
.daily-meals-grid {
display: grid;
grid-template-columns: repeat(2, 300px);
grid-auto-rows: auto;
row-gap: 20px;
column-gap: 20px;
margin: 0 auto;
}
.daily-meals-grid a {
text-decoration: none;
color: var(--common-text);
}
.daily-meal {
background-color: var(--panel-background);
border-radius: 10px;
display: flex;
align-items: center;
}
.daily-meals {
display: flex;
flex-direction: column;
justify-content: center;
margin-bottom: 100px;
}
.meal-img {
width: 94px;
height: 94px;
border-radius: 10px;
overflow: hidden;
padding: 5px;
}
.meal-img img {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 10px;
}
.daily-meal-title h3 {
font-family: var(--title-font);
font-size: 14px;
color: var(--common-text);
margin-bottom: 3px;
}
.daily-meal-title {
margin-bottom: 8px;
}
.daily-meal-info {
display: flex;
flex-direction: column;
justify-content: space-between;
height: 100%;
padding: 10px 0;
margin-left: 5px;
}
.ingredients-list {
margin-left: 15px;
display: grid;
grid-template-columns: 1fr 1fr;
row-gap: 3px;
column-gap: 8px;
padding: 0;
height: 100%;
}
.ingredients-list li {
margin-right: 15px;
max-width: 72px;
}
.daily-meal-ingredients{
height: 100%;
}
.no-daily-meals-msg{
width: 100%;
text-align: center;
}
.footer {
background-color: var(--panel-background);
color: var(--panel-text);
width: 100%;
height: 150px;
text-align: center;
z-index: 1000;
}
.footer-inner {
display: flex;
flex-direction: column;
align-items: center;
height: 100%;
padding: 0 20px;
}
.footer-nav {
margin-top: 35px;
}
.footer-links {
display: flex;
justify-content: center;
}
.footer-links li {
list-style: none;
margin-right: 60px;
text-decoration: none;
}
.footer-links a {
text-decoration: none;
color: var(--panel-text);
font-size: 16px;
}
.footer-links a:hover {
opacity: 0.7;
}
hr {
width: 100%;
border: 0;
border-top: 1px solid var(--panel-text);
margin: 20px 0;
}
.copyright {
font-family: var(--common-font);
font-size: 14px;
color: var(--panel-text);
margin-top: 20px;
}
.meta {
font-family: var(--common-font);
font-size: 12px;
color: var(--meta-color);
}
/* Terms.php */
.terms-title {
text-align: start;
}
.terms-of-use p {
font-family: var(--common-font);
font-size: 14px;
color: var(--common-text);
margin-bottom: 20px;
}
.terms-of-use {
margin-top: 46px;
}
.terms-of-use p:first-of-type {
text-align: center;
}
/* contact.php */
.contact {
margin-top: 46px;
}
.contact p {
font-family: var(--common-font);
font-size: 14px;
color: var(--common-text);
margin-bottom: 20px;
text-align: center;
}
.contact a {
text-decoration: none;
color: var(--panel-text);
font-size: 16px;
display: block;
margin: 0 auto;
text-align: center;
}
.address {
display: flex;
flex-direction: column;
align-items: center;
}
.faq {
margin-top: 46px;
}
.faq-question {
font-family: var(--title-font);
font-size: 24px;
color: var(--title-color);
margin-bottom: 10px;
}
.faq-answer {
font-family: var(--common-font);
font-size: 14px;
color: var(--common-text);
margin-bottom: 20px;
}
.faq-answer a {
text-decoration: none;
color: var(--panel-text);
font-size: 16px;
}
.login__inner {
margin-top: 46px;
}
.input input {
width: 100%;
max-width: 400px;
height: 40px;
background-color: var(--input-background);
border: 1px solid var(--input-border);
border-radius: 10px;
padding: 10px;
font-family: var(--common-font);
font-size: 14px;
color: var(--input-text-color);
}
.form label {
font-size: 16px;
}
.input {
margin-bottom: 20px;
}
.login-choice a {
text-decoration: none;
color: var(--panel-text);
font-size: 16px;
}
.btn {
font-size: 14px;
font-family: var(--common-font);
color: #fff;
border-radius: 10px;
padding: 10px 20px;
border: none;
cursor: pointer;
text-decoration: none;
display: inline-block;
text-align: center;
}
.btn:disabled {
opacity: 0.3;
}
.btn-primary {
background-color: var(--button-primary);
height: 35px;
max-width: 225px;
}
.login-text__notice p {
font-size: 16px;
margin-bottom: 10px;
}
.login__inner .title {
text-align: start;
}
.terms-checkbox {
margin-bottom: 10px;
}
.terms-link {
text-decoration: none;
color: var(--panel-text);
}
.recovery-info {
margin-bottom: 10px;
}
label span {
color: #015847;
font-weight: bold;
}
.reset-info {
margin-bottom: 10px;
}
.account-block .title {
text-align: start;
}
.btn-secondary {
background-color: var(--button-secondary);
cursor: pointer;
max-width: 225px;
color: var(--common-text);
}
.account-block {
font-size: 16px;
}
.account-block td {
padding: 10px;
margin-top: 20px;
}
.account-title {
margin-top: 46px;
}
.change-user-btns {
margin-bottom: 20px;
}
.a-back {
text-decoration: none;
color: var(--panel-text);
}
.menu-toggle {
display: none;
font-size: 1.5rem;
background: none;
border: none;
cursor: pointer;
color: var(--panel-text);
}
.catalog {
margin-top: 46px;
display: flex;
}
input[type="checkbox"]{
accent-color: #0DBB99;
}
.catalog a{
text-decoration: none;
}
.catalog-recipe {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 100%;
}
.catalog-recipe__image {
width: 200px;
height: 150px;
overflow: hidden;
border-radius: 10px;
margin-bottom: 5px;
}
.catalog-recipe__image img {
width: 100%;
height: 100%;
object-fit: cover;
}
.catalog-recipe__title {
font-family: var(--title-font);
color: var(--title-color);
font-size: 14px;
text-align: center;
margin-bottom: 5px;
}
.catalog-recipe__info {
text-align: center;
}
.catalog-items {
width: 800px;
display: grid;
grid-template-columns: repeat(3, 1fr);
column-gap: 25px;
row-gap: 40px;
margin-right: 80px;
}
.filters-container {
position: relative;
}
.filters {
position: fixed;
max-height: 500px;
width: 230px;
padding: 15px;
background-color: var(--panel-background);
border-radius: 10px;
}
.filters__title {
font-family: var(--title-font);
color: var(--common-text);
font-size: 14px;
margin-bottom: 12px;
}
.filters__search {
position: relative;
width: 100%;
}
.filters__search .search-input {
margin-right: 0;
width: 200px;
}
.filters-checkboxes ul {
list-style: none;
padding: 0;
max-height: 100px;
overflow-y: auto;
margin-top: 10px;
margin-bottom: 15px;
}
.filters-checkboxes ul li {
font-family: var(--common-font);
font-size: 14px;
padding: 5px;
}
.filters-form .btn {
width: 200px;
margin-bottom: 10px;
}
.single-recipe {
margin-top: 46px;
}
.single-recipe-title .title {
text-align: start;
}
.single-recipe-info {
display: flex;
}
.single-recipe-info__details {
min-width: 400px;
}
.single-recipe-info__image {
width: 350px;
height: 260px;
overflow: hidden;
border-radius: 10px;
margin-right: 25px;
}
.single-recipe-info__image img {
width: 100%;
height: 100%;
object-fit: cover;
}
.single-recipe-data {
margin-bottom: 20px;
}
.single-recipe-data__item {
display: flex;
align-items: baseline;
margin-bottom: 6px;
}
.single-recipe-data__item .data-name {
color: var(--meta-color);
margin-right: 10px;
flex: 0 0 120px;
text-align: left;
}
.single-recipe-data__item .data {
max-width: 500px;
}
.day-select {
position: relative;
width: 230px;
border: 1px solid #00775F;
padding: 0;
}
.day-select-wrapper {
position: relative;
display: inline-block;
}
.btn-ctrl {
display: flex;
align-items: center;
}
.select-icon {
position: absolute;
right: 0;
top: 50%;
transform: translateY(-50%);
background-color: #008C71;
color: #fff;
padding: 10px;
border-top-right-radius: 10px;
border-bottom-right-radius: 10px;
}
.btn-small {
width: 35px;
text-align: center;
padding: 0;
border: 2px solid var(--input-border);
}
.button-ctrl {
display: flex;
justify-content: space-between;
align-items: center;
text-align: center;
}
.custom-select-dropdown {
position: absolute;
top: 110%;
left: 0;
z-index: 10;
background: white;
border: 1px solid var(--input-border);
border-radius: 10px;
width: 100%;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.dropdown-item {
font-size: 16px;
padding: 8px 12px;
cursor: pointer;
border-radius: 10px;
}
.custom-select-dropdown .dropdown-item:last-child {
border-top: 1px solid var(--input-border);
}
.dropdown-selected {
background-color: #00775F;
color: #fff;
}
.qr-popup {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background: #fff;
padding: 20px;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
z-index: 9999;
}
#qrcode img {
margin-bottom: 15px;
}
.hidden {
display: none !important;
}
#overlay {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-color: rgba(0, 0, 0, 0.5);
z-index: 9998;
}
.btn-small,
.btn-small i {
line-height: 30px;
}
.single-recipe-content h2 {
text-align: start;
}
.single-recipe-content {
display: flex;
width: 100%;
justify-content: space-between;
align-items: flex-start;
margin-top: 30px;
gap: 40px;
margin-bottom: 30px;
}
.single-instructions {
width: 50%;
font-size: 16px;
}
.single-ingredients {
width: 50%;
}
.ingredients-table {
width: 400px;
border-radius: 10px;
overflow: hidden;
border: 1px solid #b3b3b3;
border-collapse: separate;
margin-bottom: 20px;
}
.ingredients-table i {
color: #f00;
cursor: pointer;
margin-left: 10px;
}
.ingredients-table td:nth-child(2) {
display: flex;
align-items: center;
}
.ingredients-table th {
background-color: #008B70;
color: #fff;
padding: 10px 20px;
text-align: start;
}
.ingredients-table td {
padding: 10px 20px;
border-top: 2px solid #b3b3b3;
}
input:disabled {
background-color: #e9ecef;
color: #6c757d;
}
select {
padding: 6px;
border-radius: 10px;
margin-bottom: 20px;
}
textarea{
width: 400px;
padding: 10px;
background-color: var(--input-background);
border: 1px solid var(--input-border);
border-radius: 10px;
}
label {
display: inline-block;
margin-bottom: 5px;
}
.daily-recipes{
margin-top: 46px;
}
.favorites-items a {
text-decoration: none;
}
.favorites{
margin-top: 46px;
display: flex;
}
.favorites-items{
width: 100%;
display: grid;
grid-template-columns: repeat(4, 1fr);
column-gap: 25px;
row-gap: 40px;
}
.single-recipe-reviews{
margin-bottom: 46px;
}
.single-recipe-reviews .title{
text-align: start;
margin-top: 20px;
}
.single-recipe-reviews .rating{
font-size: 20px;
color: var(--common-text);
font-family: var(--title-font);
font-weight: 400;
margin-bottom: 30px;
}
.reviews{
display: flex;
align-items: flex-start;
justify-content: space-between;
width: 100%;
gap: 40px;
margin-top: 40px;
}
.review-list{
width: 50%;
}
.review-form{
width: 50%;
}
.review{
margin-bottom: 20px;
border-bottom: 1px solid #b3b3b3;
}
.subtitle{
font-family: var(--title-font);
font-size: 16px;
color: var(--common-font);
margin-bottom: 20px;
}
.review-title{
font-family: var(--title-font);
font-size: 16px;
color: var(--title-color);
margin-bottom: 10px;
font-weight: 500;
}
.review-body{
font-size: 16px;
padding: 5px;
}
.single-review-meta{
font-size: 14px;
margin-top: 15px;
display: flex;
flex-direction: row;
align-items: flex-start;
justify-content: space-between;
padding: 5px;
}
.review-meta__user{
font-size: 14px;
}
.review-meta__date{
font-size: 14px;
}
.rating-select{
color: var(--title-color);
}
.rating-selection{
display: flex;
align-items: center;
gap: 10px;
height: 70px;
}
.rating-selection select{
margin: 0;
}
.review-form textarea{
width: 100%;
height: 150px;
margin-bottom: 10px;
font-family: var(--common-font);
}
.submit-recipe {
margin-top: 46px;
}
.submit-recipe .title{
text-align: start;
}
.input-file{
margin-bottom: 20px;
}
.add-ingredient-btn{
margin-bottom: 0px;
}
.single-submit-form span{
color: #015847;
font-weight: bold;
}
.ing-modal{
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background: #fff;
padding: 20px;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
z-index: 9999;
}
.pagination ul{
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
margin-top: 20px;
}
.pagination ul li {
margin: 0 5px;
}
.pagination ul li:hover{
opacity: 0.7;
}
.error-page{
margin-top: 46px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.error-code{
font-family: var(--title-font);
font-size: 100px;
color: var(--title-color);
margin-bottom: 20px;
}
.error-message{
font-size: 24px;
color: var(--common-text);
text-align: center;
}
@media (max-width: 768px) {
.catalog-items {
width: 100%;
grid-template-columns: repeat(2, 1fr);
margin-right: 0;
}
.welcome__inner {
flex-direction: column;
}
.single-recipe-content {
flex-wrap: wrap;
flex-direction: column;
gap: 20px;
padding: 10px;
}
.single-instructions,
.single-ingredients {
width: 100%;
}
.ingredients-table {
width: 100%;
}
.single-recipe-info {
flex-direction: column;
align-items: center;
text-align: center;
}
.single-recipe-info__image {
width: 100%;
max-width: 350px;
height: auto;
margin-right: 0;
margin-bottom: 20px;
}
.single-recipe-info__image img {
width: 100%;
height: auto;
}
.single-recipe-info__details {
width: 100%;
padding: 0 15px;
}
.single-recipe-title .title {
text-align: center;
font-size: 24px;
}
.single-recipe-data__item {
flex-direction: column;
align-items: flex-start;
margin-bottom: 10px;
}
.single-recipe-data__item .data-name {
margin-right: 0;
margin-bottom: 2px;
flex: none;
text-align: left;
}
.button-ctrl {
flex-direction: column;
align-items: center;
gap: 12px;
}
.small-btns {
display: flex;
justify-content: center;
gap: 10px;
}
.day-select-wrapper,
.btn-small,
.btn-small i {
width: auto;
}
.btn-small {
width: 35px;
}
.custom-select-dropdown {
width: 100%;
left: 0;
max-width: 230px;
}
.qr-popup {
width: 90%;
}
}
@media (max-width: 900px) {
.menu-toggle {
display: block;
}
.nav {
display: none;
flex-direction: column;
align-items: center;
text-align: center;
background-color: var(--panel-background);
position: absolute;
top: 100%;
left: 0;
right: 0;
z-index: 1000;
border-top: 1px solid #0DBB99;
}
.nav-item a {
margin-right: 0;
}
.nav.nav-open {
display: flex;
}
.nav-list {
flex-direction: column;
padding: 1rem;
}
.nav-item {
margin: 0.5rem 0;
}
.footer {
height: auto;
}
.footer-links {
flex-direction: column;
}
.footer-links li {
margin-right: 0;
margin-bottom: 10px;
}
.footer-inner {
/* padding: 10px 0; */
padding: 20px 0;
}
.footer-nav {
margin-top: 0;
}
.daily-meals-grid {
grid-template-columns: repeat(1, 300px);
grid-template-rows: repeat(6, 100px);
}
.favorites-items {
width: 100%;
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 1024px) {
.reviews-grid {
grid-template-columns: 1fr;
column-gap: 0;
}
.recent-review {
width: 100%;
max-width: 100%;
}
}
@media (max-width: 1200px) {
.catalog {
flex-direction: column-reverse;
align-items: center;
margin-bottom: 46px;
}
.filters {
position: static;
margin-bottom: 46px;
}
.catalog-items {
margin-right: 0;
justify-items: center;
align-items: center;
padding: 5px;
}
.favorites-items {
margin-right: 0;
justify-items: center;
align-items: center;
padding: 5px;
}
.catalog-recipe {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 200px;
}
#food-3d {
display: none;
}
}
@media (max-width: 465px) {
.catalog-recipe {
width: 150px;
}
}
@media (max-width: 400px) {
.catalog-items {
width: 100%;
grid-template-columns: 1fr;
margin-right: 0;
}
.favorites-items {
width: 100%;
grid-template-columns: 1fr;
margin-right: 0;
}
}