Website: Homepage carousel fixes (#11151)

+ changed up logo images that didn't have a transparent background
(white bg was visible on the off-white cards)
+ made it so the top border shows up on the tweet cards
+ made the carousel indicators a bit smaller (but kept clickable area
the same) — looked a little bulky on mobile when we have more dots

---------

Co-authored-by: Eric <eashaw@sailsjs.com>
This commit is contained in:
Rachael Shaw 2023-04-11 14:20:47 -05:00 committed by GitHub
parent 50d1cee5e2
commit 755f74e118
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 20 additions and 8 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.8 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 8.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.8 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View file

@ -305,7 +305,7 @@
[purpose='scrollable-tweets'] {
font-size: 13px;
line-height: 20px;
margin-top: 80px;
margin-top: 79px;
margin-bottom: 80px;
[purpose='tweets']::-webkit-scrollbar {
@ -318,6 +318,7 @@
padding-left: 120px;
padding-right: 120px;
padding-bottom: 16px;
padding-top: 1px; //« makes the top of the card border visible
scrollbar-width: none;
-ms-overflow-style: none;
}
@ -334,23 +335,31 @@
text-align: left;
padding: 40px;
background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.4) 100%);
border: 2px solid #FFFFFF;
box-shadow: 0px 0px 1px 1px #E2E4EA;
border: none;
box-shadow: 0px 0px 1px 1px #E2E4EA, inset 0px 0px 0px 2px #FFFFFF;
border-radius: 16px;
}
[purpose='tweets-page-indicator'] {
margin-bottom: 40px;
cursor: pointer;
li {
padding: 4px;
padding: 2px;
height: 16px;
width: 16px;
border-radius: 100%;
margin-right: 8px;
background-color: @core-vibrant-blue-15;
[purpose='page-item-dot'] {
display: inline-block;
width: 100%;
height: 100%;
border-radius: 50%;
background-color: @core-vibrant-blue-15;
}
}
li.selected {
background-color: @core-fleet-black-50;
[purpose='page-item-dot'] {
background-color: @core-fleet-black-50;
}
}
}
}
@ -592,7 +601,10 @@
}
[purpose='tweets-page-indicator'] {
li {
padding: 12px;
width: 24px;
height: 24px;
padding: 6px;
margin-right: 0;
}
}
}

View file

@ -206,7 +206,7 @@
<div purpose="" class="mx-auto d-flex flex-row justify-content-center">
<nav aria-label="..." >
<ul purpose="tweets-page-indicator" class="pagination pagination-sm" v-if="numberOfTweetPages > 1">
<li class="page-item" :class="[currentTweetPage === index ? 'selected' : '']" v-for="(pageNumber, index) in numberOfTweetPages" @click="scrollTweetsDivToPage(index)"></li>
<li class="page-item" :class="[currentTweetPage === index ? 'selected' : '']" v-for="(pageNumber, index) in numberOfTweetPages" @click="scrollTweetsDivToPage(index)"><span purpose="page-item-dot"></span></li>
</ul>
</nav>
</div>