297 lines
5.9 KiB
CSS
297 lines
5.9 KiB
CSS
/* Stylesheet for index.html */
|
|
.main-content-container {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
gap: 50px;
|
|
}
|
|
|
|
.promo-item,
|
|
.testimonial-item,
|
|
.featured-item {
|
|
display: none; /* Hide all by default */
|
|
}
|
|
|
|
.promo-item.visible,
|
|
.testimonial-item.visible,
|
|
.featured-item.active {
|
|
display: block; /* Show visible or active items */
|
|
}
|
|
|
|
#left-side,
|
|
#category-nav {
|
|
flex: 1;
|
|
box-shadow: var(--shadow-strong);
|
|
max-width: 325px;
|
|
}
|
|
|
|
#left-side {
|
|
display: flex;
|
|
flex-direction: column;
|
|
background-color: var(--color-soft-golden);
|
|
border: solid var(--color-destin-sand);
|
|
padding: 5px 10px;
|
|
margin-top: 10px;
|
|
margin-left: 0;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
#left-side h2 {
|
|
border: solid var(--color-dark-green);
|
|
background-color: var(--color-light-teal);
|
|
border-radius: 10px;
|
|
}
|
|
|
|
#promos-container {
|
|
background-color: var(--color-mid-green);
|
|
color: var(--color-dark-green);
|
|
border: solid var(--color-dark-green);
|
|
border-radius: 10px;
|
|
padding: 5px 10px;
|
|
margin-top: 5px;
|
|
text-align: center;
|
|
box-shadow: var(--shadow-strong);
|
|
}
|
|
|
|
.promo-item {
|
|
background-color: var(--color-destin-sand);
|
|
color: var(--color-dark-green);
|
|
border: solid var(--color-dark-green);
|
|
border-radius: 10px;
|
|
padding: 5px 10px;
|
|
white-space: normal;
|
|
max-height: 200px;
|
|
min-height: 200px;
|
|
max-width: 350px;
|
|
box-shadow: var(--shadow-strong);
|
|
text-align: center;
|
|
}
|
|
|
|
#promos-heading, #testimonials-heading {
|
|
font-family: 'Arial', sans-serif;
|
|
font-weight: bold;
|
|
font-size: 1.875rem; /* 30px for title */
|
|
box-shadow: var(--shadow-strong);
|
|
}
|
|
|
|
/* --- TESTIMONIALS --- */
|
|
|
|
#testimonials-container{
|
|
background-color: var(--color-mid-green);
|
|
color: var(--color-dark-green);
|
|
border: solid var(--color-dark-green);
|
|
border-radius: 10px;
|
|
padding: 5px 10px;
|
|
margin-top: 10px;
|
|
white-space: normal;
|
|
box-shadow: var(--shadow-strong);
|
|
}
|
|
|
|
#testimonials-container h2 {
|
|
font-size: 1.675rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.testimonial-item {
|
|
background-color: var(--color-destin-sand);
|
|
color: var(--color-dark-green);
|
|
border: solid var(--color-dark-green);
|
|
border-radius: 5px;
|
|
padding: 5px 10px;
|
|
white-space: normal;
|
|
max-height: 200px;
|
|
max-width: 350px;
|
|
min-height: 200px;
|
|
box-shadow: var(--shadow-strong);
|
|
text-align: center;
|
|
}
|
|
|
|
/* FEATURED ITEMS */
|
|
#featured-container {
|
|
display: flex;
|
|
flex: 2;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
text-align: center;
|
|
margin-top: 10px;
|
|
margin-left: 50px;
|
|
margin-right: 50px;
|
|
}
|
|
|
|
#featured-container h2 {
|
|
font-size: 2.675rem;
|
|
text-align: center;
|
|
text-shadow: var(--text-shadow-layered);
|
|
color: var(--color-destin-sand);
|
|
background-color: var(--color-mid-green);
|
|
border: solid var(--color-destin-sand);
|
|
border-radius: 10px;
|
|
width: fit-content;
|
|
padding: 0 50px;
|
|
margin: 0px;
|
|
box-shadow: var(--shadow-medium);
|
|
}
|
|
|
|
#featured-container ul {
|
|
list-style-type: none;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 0;
|
|
box-shadow: var(--shadow-strong);
|
|
}
|
|
|
|
#featured-list {
|
|
border: solid var(--color-mid-green);
|
|
border-radius: 10px;
|
|
box-shadow: var(--shadow-strong);
|
|
|
|
}
|
|
|
|
|
|
#featured-list a {
|
|
color: var(--color-dark-green);
|
|
background-color: var(--color-destin-sand);
|
|
border-radius: 10px;
|
|
padding: 0px 10px;
|
|
display: block;
|
|
text-align: center;
|
|
font-size: 1.4rem;
|
|
color:var(--color-dark-green);
|
|
}
|
|
|
|
#featured-list {
|
|
min-width: 710px;
|
|
background-color: var(--color-destin-sand);
|
|
}
|
|
|
|
#featured-list img {
|
|
display: block;
|
|
margin: 0 auto;
|
|
margin-bottom: 10px;
|
|
box-shadow: var(--shadow-strong);
|
|
}
|
|
|
|
#featured-list {
|
|
overflow: hidden; /* Hide anything outside the container */
|
|
/*text-align: center;
|
|
width: 100%; */
|
|
height: auto; /* Let the height adapt to content */
|
|
}
|
|
|
|
.featured-card h3,
|
|
.featured-card p,
|
|
.feature-card figure,
|
|
.featured-card figcaption {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.featured-card h3.product-name {
|
|
margin-top: 5px;
|
|
}
|
|
|
|
.featured-card p.price {
|
|
margin-top: 5px;
|
|
}
|
|
|
|
figcaption {
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
#featured-list img {
|
|
max-width: 100%; /* Ensure images are responsive */
|
|
height: auto; /* Maintain aspect ratio */
|
|
background-color: var(--color-mid-green);
|
|
border: solid var(--color-dark-green);
|
|
border-radius: 5px;
|
|
padding: 5px;
|
|
}
|
|
|
|
h3.product-name {
|
|
font-size: 1.6rem;
|
|
margin-bottom: 5px;
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
p.short-description {
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
#featured-container a {
|
|
text-decoration: none;
|
|
}
|
|
|
|
/* --- CATEGORY NAVIGATION --- */
|
|
#category-nav {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
background-color: var(--color-soft-golden);
|
|
padding: 5px 10px;
|
|
margin-top: 10px;
|
|
border: solid var(--color-destin-sand);
|
|
border-radius: 10px;
|
|
}
|
|
|
|
#category-nav-container {
|
|
background-color: var(--color-destin-sand);
|
|
color: var(--color-dark-green);
|
|
border: solid var(--color-dark-green);
|
|
border-radius: 10px;
|
|
padding: 5px 10px;
|
|
margin-top: 5px;
|
|
text-align: center;
|
|
width: 90%;
|
|
box-shadow: var(--shadow-strong);
|
|
}
|
|
|
|
#category-nav h2 {
|
|
font-size: 1.675rem;
|
|
background-color: var(--color-light-teal);
|
|
color: var(--color-dark-green);
|
|
border: solid var(--color-dark-green);
|
|
border-radius: 10px;
|
|
padding: 0 5px;
|
|
white-space: nowrap;
|
|
box-shadow: var(--shadow-strong);
|
|
}
|
|
|
|
.categories ul {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
list-style-type: none;
|
|
gap: 5px;
|
|
}
|
|
|
|
.categories ul li {
|
|
border: solid var(--color-dark-green);
|
|
border-radius: 10px;
|
|
background-color: var(--color-mid-green);
|
|
margin-top: 20px;
|
|
min-width: 100%;
|
|
transition: background-color 0.3s ease, color 0.3s ease;
|
|
box-shadow: var(--shadow-strong);
|
|
}
|
|
|
|
.categories a {
|
|
color: var(--color-dark-green);
|
|
font-size: 1.3rem;
|
|
font-weight: bold;
|
|
transition: background-color 0.3s ease, color 0.3s ease;
|
|
|
|
}
|
|
|
|
.categories ul li:hover {
|
|
background-color: var(--color-destin-sand);
|
|
color: var(--color-dark-green);
|
|
box-shadow: var(--shadow-medium);
|
|
}
|
|
|
|
.categories ul li a:hover {
|
|
background: none;
|
|
border: none;
|
|
box-shadow: none;
|
|
color: inherit;
|
|
} |