Skip to content

Commit

Permalink
Adjust announcement bar arrow icon (Shopify#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
kmeleta authored Jul 29, 2021
1 parent 1177f84 commit 95442fb
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 22 deletions.
13 changes: 5 additions & 8 deletions assets/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,10 @@ details > * {
text-decoration-thickness: 0.2rem;
}

.icon-arrow {
width: 1.5rem;
}

/* arrow animation */
.animate-arrow .icon-arrow path {
transform: translateX(-0.25rem);
Expand Down Expand Up @@ -1626,19 +1630,12 @@ input[type='checkbox'] {

.announcement-bar__link .icon-arrow {
display: inline-block;
height: 1.2rem;
pointer-events: none;
padding-left: 1rem;
margin-left: 0.8rem;
vertical-align: middle;
margin-bottom: 0.2rem;
}

@media screen and (min-width: 750px) {
.announcement-bar__link .icon-arrow {
height: 1.3rem;
}
}

.announcement-bar__link .announcement-bar__message {
padding: 0;
}
Expand Down
10 changes: 3 additions & 7 deletions assets/component-card.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@
color: rgb(var(--color-foreground));
}

.card .icon-arrow {
width: 1.5rem;
}

.card .icon-wrap {
margin-left: 0.8rem;
white-space: nowrap;
Expand Down Expand Up @@ -276,16 +272,16 @@
.card--search img {
transition: transform var(--duration-default) ease;
}

.card-wrapper:hover .card--search img {
transform: scale(1.05);
}

.card-wrapper:hover .card__text {
text-decoration: underline;
text-underline-offset: 0.3rem;
}

.card-wrapper:hover .card--soft {
background-color: rgba(var(--color-card-hover), 0.06);
transition: background-color var(--duration-long) ease;
Expand Down
4 changes: 0 additions & 4 deletions assets/component-menu-drawer.css
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,6 @@ details[open].menu-opening > .menu-drawer__submenu {
display: none;
}

.menu-drawer .icon-arrow {
width: 1.3rem;
}

.menu-drawer__menu-item > .icon-arrow {
position: absolute;
right: 2.5rem;
Expand Down
1 change: 0 additions & 1 deletion assets/section-blog-post.css
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@
}

.article-template__link .icon-wrap {
width: 1.5rem;
margin-right: 1rem;
transform: rotate(180deg);
}
Expand Down
2 changes: 0 additions & 2 deletions assets/template-collection.css
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,6 @@ details.menu-opening .mobile-facets__close svg {
.mobile-facets__close-button .icon-arrow {
transform: rotate(180deg);
margin-right: 1rem;
width: 1.3rem;
}

.mobile-facets__main {
Expand Down Expand Up @@ -618,7 +617,6 @@ details.menu-opening .mobile-facets__close svg {
}

.mobile-facets__summary svg {
width: 1.8rem;
margin-left: auto;
}

Expand Down

0 comments on commit 95442fb

Please sign in to comment.