Skip to content
This repository has been archived by the owner on Nov 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #928 from adobe/stage
Browse files Browse the repository at this point in the history
Release Template-v2
  • Loading branch information
JingleH authored Jun 26, 2023
2 parents f1d5d9f + c5245c7 commit 6802457
Show file tree
Hide file tree
Showing 25 changed files with 2,663 additions and 1,396 deletions.
208 changes: 133 additions & 75 deletions express/blocks/browse-by-category/browse-by-category.css
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@
main .browse-by-category-container {
padding-bottom: 24px;
}

main .browse-by-category-container .browse-by-category {
main .browse-by-category-wrapper.fullwidth {
margin: 0;
max-width: fit-content;
}

main .browse-by-category {
max-width: max-content;
}

main .browse-by-category-container .browse-by-category-wrapper {
padding: 0;
max-width: none;
}

main .browse-by-category-container .browse-by-category .carousel-container .carousel-platform {
align-items: flex-start;
}

main .browse-by-category-container .browse-by-category .carousel-container .button.carousel-arrow {
}
main .browse-by-category .carousel-container .carousel-platform {
align-items: start;
}
main .browse-by-category.card .carousel-container .carousel-platform {
gap: 14px;
margin: 6px 0 0 0;
}
main .browse-by-category .carousel-container .button.carousel-arrow {
position: absolute;
top: 46px;
}

main .browse-by-category-container .browse-by-category-heading-section {
}
main .browse-by-category .browse-by-category-heading-section {
display: flex;
justify-content: space-between;
flex-direction: column;
Expand All @@ -29,28 +30,28 @@ main .browse-by-category-container .browse-by-category-heading-section {
margin-left: auto;
margin-right: auto;
margin-bottom: 10px;
}

main .browse-by-category-container .browse-by-category-heading-section .browse-by-category-heading {
}
main .browse-by-category .browse-by-category-heading-section .browse-by-category-heading {
text-align: left;
font-size: 28px;
line-height: 30px;
}

main .browse-by-category-container .browse-by-category-heading-section .browse-by-category-link-wrapper {
}
main .browse-by-category .browse-by-category-heading-section .browse-by-category-link-wrapper {
margin: 8px 0 0;
}

main .browse-by-category-container .browse-by-category-link {
}
main .browse-by-category .browse-by-category-link {
font-size: 16px;
line-height: 22px;
display: flex;
padding: 0;
white-space: nowrap;
width: max-content;
}

main .browse-by-category-container .browse-by-category-link::after {
}
main .browse-by-category .browse-by-category-link::after {
display: flex;
width: 6px;
height: 6px;
Expand All @@ -61,14 +62,14 @@ main .browse-by-category-container .browse-by-category-link::after {
border-style: solid;
border-color: var(--color-info-accent);
transform-origin: 75% 75%;
transform: rotate( -45deg );
transform: rotate(-45deg);
content: "";
margin-top: 5px;
margin-left: 5px;
margin-right: 2.25px;
}

main .browse-by-category-container .browse-by-category-category {
}
main .browse-by-category:not(.card) .browse-by-category-card {
position: relative;
display: flex;
gap: 8px;
Expand All @@ -77,19 +78,29 @@ main .browse-by-category-container .browse-by-category-category {
min-width: 123px;
margin: 0;
padding: 10px 8px 0 8px;
}

main .browse-by-category-container .browse-by-category-category-anchor {
}

main .browse-by-category.card .browse-by-category-card {
position: relative;
display: flex;
flex-direction: column;
}

main .browse-by-category .browse-by-category-card-link {
position: absolute;
height: 100%;
width: 100%;
}

main .browse-by-category-container .browse-by-category-category-anchor:hover ~ .browse-by-category-category-image-wrapper img {
transform: scale(1.1) matrix(1, -0.07, 0.07, 1, 0, 0);
}

main .browse-by-category-container .browse-by-category-category-image-wrapper {
}

main .browse-by-category:not(.card) .browse-by-category-card-link:hover ~ .browse-by-category-image-wrapper img {
transform: scale(1.1) matrix(1, -0.07, 0.05, 1, 0, 0);
}

main .browse-by-category.card .browse-by-category-card-link:hover ~ .browse-by-category-image-wrapper img {
transform: scale(1.1) matrix(1, -0.01, 0.01, 1, 0, 0);
}

main .browse-by-category .browse-by-category-image-wrapper {
background-color: var(--color-gray-200);
min-height: 90px;
width: 148px;
Expand All @@ -98,53 +109,100 @@ main .browse-by-category-container .browse-by-category-category-image-wrapper {
justify-content: center;
align-items: center;
pointer-events: none;
}

main .browse-by-category-container .browse-by-category-category-image-wrapper img {
}
main .browse-by-category:not(.card) .browse-by-category-image-wrapper img {
display: block;
object-fit: cover;
width: 80px;
height: 80px;
transform: matrix(1, -0.07, 0.07, 1, 0, 0);
box-shadow: 0 0 6px #0000001F;
box-shadow: 0 0 6px #0000001f;
border-radius: 8px;
opacity: 1;
transition: transform 0.2s ease-in-out;
}

main .browse-by-category-container .browse-by-category-category-image-wrapper .browse-by-category-category-image-shadow {
}
main .browse-by-category .browse-by-category-image-wrapper .browse-by-category-image-shadow {
position: absolute;
width: 76px;
height: 76px;
transform: matrix(0.97, -0.22, 0.22, 0.97, -6, 0);
background: var(--color-gray-300) 0 0 no-repeat padding-box;
border-radius: 10px;
opacity: 1;
}

main .browse-by-category-container .browse-by-category-category-title {
}

main .browse-by-category.card .browse-by-category-image-shadow-wrapper {
display: block;
object-fit: cover;
transform: matrix(1, -0.07, 0.07, 1, 0, 0);
box-shadow: 0 0 6px #0000001f;
border-radius: 8px;
opacity: 1;
transition: transform 0.2s ease-in-out;
}

main .browse-by-category.card .browse-by-category-image-wrapper {
background-color: #f8f8f8;
min-height: 90px;
height: 116px;
width: 182px;
border-radius: 10px;
display: flex;
justify-content: center;
align-items: center;
pointer-events: none;
}

main .browse-by-category.card .browse-by-category-image-wrapper img {
display: block;
object-fit: contain;
max-width: 110px;
max-height: 97px;
height: 100%;
transform: matrix(1, -0.01, 0.01, 1, 0, 0);
box-shadow: 0 0 6px #0000001f;
border-radius: 8px;
opacity: 1;
transition: transform 0.2s ease-in-out;
}

main .browse-by-category.card .browse-by-category-image-wrapper .browse-by-category-image-shadow {
position: absolute;
width: 100%;
height: 100%;
transform: matrix(0.90, -0.18, 0.20, 0.90, -14, 0);
background: #d6d6d6e5;
}

main .browse-by-category:not(.card) .browse-by-category-card-title {
margin: 0;
font-size: 18px;
line-height: 24px;
font-weight: 700;
max-width: 148px;
}

@media (min-width: 900px) {
main .browse-by-category-container .browse-by-category-heading-section {
flex-direction: row;
padding: 0;
}

main .browse-by-category-container .browse-by-category-wrapper {
padding: 0 28px;
max-width: none;
}
}

@media (min-width: 1200px) {
main .browse-by-category-container .browse-by-category-wrapper {
padding: 0 28px;
max-width: none;
}

main .browse-by-category.card .browse-by-category-card-title {
margin: 6px 0;
font-size: 16px;
line-height: 24px;
font-weight: 700;
align-self: start;
}

@media (min-width: 900px) {
main .section .browse-by-category-wrapper {
padding: 0 28px;
}

main .section .browse-by-category-wrapper {
max-width: none;
}

main .browse-by-category .browse-by-category-heading-section {
flex-direction: row;
padding: 0;
}
}
}
Loading

0 comments on commit 6802457

Please sign in to comment.