Skip to content

Commit

Permalink
review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kailasnadh790 committed Jan 16, 2024
1 parent e2d1f50 commit 8966632
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 27 deletions.
2 changes: 1 addition & 1 deletion cigaradvisor/blocks/authorcard/authorcard.css
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
text-overflow: ellipsis;
display: block;
color: var(--clr-white);
font-weight: var(--font-weight-extrabold);
font-weight: var(--font-weight-bold);
font-size: var(--body-font-size-xl);
}

Expand Down
8 changes: 3 additions & 5 deletions cigaradvisor/blocks/carousel/carousel.css
Original file line number Diff line number Diff line change
Expand Up @@ -87,22 +87,20 @@
content: '\f054';
font-family: var(--ff-fontawesome);
padding-left: 50%;
font-size: x-large;
font-size: var(--body-font-size-xxl);
}

.carousel.block .carousel-arrow .prev-icon::before {
content: '\f053';
font-family: var(--ff-fontawesome);
padding-left: 50%;
font-size: x-large;
font-size: var(--body-font-size-xxl);
}


.carousel.block .arrow-prev {
.carousel.block .carousel-arrow.arrow-prev.disabled, .carousel.block .carousel-arrow.arrow-next.disabled {
display: none;
}


@media screen and (min-width: 600px) {
.carousel.block .slide {
flex: 1 0 50%;
Expand Down
11 changes: 7 additions & 4 deletions cigaradvisor/blocks/carousel/carousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ function createButtons(moveSlides) {
button.classList.add(direction);
const iconDiv = document.createElement('div');
iconDiv.classList.add(`arrow-${direction}`);
if (direction === 'prev') {
iconDiv.classList.add('disabled');
}
iconDiv.classList.add('carousel-arrow');
const iconSpan = document.createElement('span');
iconSpan.classList.add(`${direction}-icon`);
Expand Down Expand Up @@ -86,17 +89,17 @@ export default async function decorate(block) {
if (currentIndex < (items.length - itemsToShow)) {
currentIndex += 1;
slidesWrapper.style.transform = `translate3d(-${currentIndex * offset}%, 0, 0)`;
block.querySelector('.arrow-prev').style.display = 'flex';
block.querySelector('.arrow-prev').classList.remove('disabled');
if (currentIndex === (items.length - itemsToShow)) {
block.querySelector('.arrow-next').style.display = 'none';
block.querySelector('.arrow-next').classList.add('disabled');
}
}
} else if (currentIndex >= 1) {
currentIndex -= 1;
slidesWrapper.style.transform = `translate3d(-${currentIndex * offset}%, 0, 0)`;
block.querySelector('.arrow-next').style.display = 'flex';
block.querySelector('.arrow-next').classList.remove('disabled');
if (currentIndex < 1) {
block.querySelector('.arrow-prev').style.display = 'none';
block.querySelector('.arrow-prev').classList.add('disabled');
}
}
}
Expand Down
Binary file added cigaradvisor/icons/decorleft.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cigaradvisor/icons/decorright.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 20 additions & 17 deletions cigaradvisor/styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,14 @@
--subdued-gold: #b19b5e;
--silver: #ccc;
--very-light-grey: #ddd;
--vv-light-grey: #e0e0e0;
--medium-grey: #888;
--grey: #333;
--light-grey: #d3d3d3;
--dark-grey: #3c3a3b;
--off-white: #f7f7f7;
--section-background: #eaeaea;
--grey-background: #eaeaea;
--charcoal: #1c1c1c;

/* functional-colors */
--clr-text: var(--clr-dark-gray);
Expand Down Expand Up @@ -173,7 +176,7 @@
--heading-font-size-xl: 40px;

/* Font Weights */
--font-weight-extrabold: 700;
--font-weight-extrabold: 900;
--font-weight-bold: 700;
--font-weight-semibold: 600;
--font-weight-normal: 400;
Expand Down Expand Up @@ -233,7 +236,7 @@ h1 {
font-style: normal;
font-weight: 400;
text-transform: uppercase;
color: #141414;
color: var(--clr-dark-gray);
margin: 2px auto;
}

Expand Down Expand Up @@ -391,15 +394,15 @@ main .section[data-layout="50/50"] .right-grid>div {
line-height: 30px;
font-family: var(--ff-opensans);
font-weight: 600;
color: #141414;
color: var(--clr-dark-gray);
cursor: default;
}

.blog-post-template .author-container>.default-content-wrapper a{
font-size: 18px;
line-height: 30px;
text-decoration: underline;
color: #b19b5e;
color: var(--subdued-gold);
}

.blog-post-template .author-container>.default-content-wrapper .article-image-wrapper {
Expand All @@ -419,12 +422,12 @@ color: #b19b5e;
text-align: center;
font-style: italic;
font-weight: 700;
color: #888;
color: var(--medium-grey);
margin: 0;
}

.blog-post-template .author-container>.default-content-wrapper blockquote {
border-color: #e0e0e0;
border-color: var(--vv-light-grey);
border-width: 1px 0;
border-style: solid;
margin: 0 0 20px;
Expand All @@ -435,7 +438,7 @@ color: #b19b5e;
.blog-post-template .author-container>.default-content-wrapper blockquote p{
padding: 10px;
margin: 0;
color: #1c1c1c;
color: var(--charcoal);
background: transparent url('/cigaradvisor/images/blog-post/pattern-1.png') repeat;
}

Expand All @@ -448,15 +451,15 @@ main .section>.default-content-wrapper>h2{
text-transform: uppercase;
font-family: var(--ff-montserrat);
font-weight: 900;
color: #8e7b5c;
color: var(--tan);
padding: 38px 15px;
font-size: 45px;
}

main .section>.default-content-wrapper>h2 ::before{
content: 'decor';
color: transparent;
background: url('/cigaradvisor/images/homepage/sectiontitle/media_10c44610cd58523f02bbd64b114069404ca081e41.png') center no-repeat;
background: url('../icons/decorleft.png') center no-repeat;
background-size: auto;
background-size: contain;
margin-right: 15px;
Expand All @@ -465,7 +468,7 @@ main .section>.default-content-wrapper>h2 ::before{
main .section>.default-content-wrapper>h2 ::after{
content: 'decor';
color: transparent;
background: url('/cigaradvisor/images/homepage/sectiontitle/media_18425bf754b7f7294fbc2cd0065feadd21151d1c7.png') center no-repeat;
background: url('../icons/decorright.png') center no-repeat;
background-size: auto;
background-size: contain;
margin-left: 15px;
Expand All @@ -481,10 +484,10 @@ main .button-container .button{
font-style: normal;
font-family: var(--ff-montserrat);
font-weight: 700;
color: #fff;
color: var(--clr-white);
text-transform: uppercase;
background-color: #000;
border-color: #8e7b5c;
background-color: var(--clr-black);
border-color: var(--tan);
border-width: 2px;
border-radius: 0;
border-style: solid;
Expand All @@ -504,8 +507,8 @@ main .button-container .button{

main .button-container .button:hover{
transition: .5s;
background-color: #b19b5e;
border-color: #b19b5e;
background-color: var(--subdued-gold);
border-color: var(--subdued-gold);
text-decoration: none;
}

Expand Down Expand Up @@ -534,7 +537,7 @@ main .button-container .button:hover{
}

main .section.background-grey {
background-color: var(--section-background);
background-color: var(--grey-background);
}

}
Expand Down

0 comments on commit 8966632

Please sign in to comment.