Skip to content

Commit

Permalink
Revert "[MWPW-146756] Add support for RTL in aside notifications, hor…
Browse files Browse the repository at this point in the history
…izontal cards" (adobecom#2177)

Revert "[MWPW-146756] Add support for RTL in aside notifications, horizontal …"

This reverts commit e71b33d.
  • Loading branch information
Ruchika4 authored and mokimo committed Apr 30, 2024
1 parent b1c31b0 commit d1c0369
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 72 deletions.
12 changes: 1 addition & 11 deletions libs/blocks/aside/aside.css
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@
}

.aside.notification.center.small .foreground.container .text p {
text-align: initial;
text-align: left;
}

.aside.notification.large .foreground.container {
Expand Down Expand Up @@ -799,11 +799,6 @@
margin-left: 24px;
}

[dir = "rtl"] .aside.notification.small .foreground.container .text .body-m.action-area {
margin-left: 0;
margin-right: 24px;
}

.aside.split.half .foreground.container .text {
flex: 0 0 41.72%;
}
Expand Down Expand Up @@ -844,11 +839,6 @@
margin-bottom: 0;
}

[dir = "rtl"] .aside.notification .foreground.container .icon-area {
margin-left: var(--spacing-xs);
margin-right: 0;
}

.aside.notification.extra-small .foreground.container.no-image .text {
display: flex;
}
Expand Down
62 changes: 1 addition & 61 deletions libs/blocks/card-horizontal/card-horizontal.css
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
position: relative;
display: flex;
flex-direction: row;
text-align: initial;
text-align: left;
align-items: center;
background-color: white;
border-radius: 4px;
Expand Down Expand Up @@ -98,11 +98,6 @@
flex-grow: 1;
}

[dir = "rtl"] .card-horizontal .foreground .card-block .card-content {
padding-left: var(--spacing-s);
padding-right: 0;
}

.card-horizontal .foreground .card-block .card-image {
height: 130px;
flex: 0 0 90px;
Expand Down Expand Up @@ -156,11 +151,6 @@
margin-left: var(--spacing-s);
}

[dir = "rtl"] .card-horizontal.tile .foreground .card-block .card-image img {
margin-left: 0;
margin-right: var(--spacing-s);
}

.two-up .card-horizontal .foreground .card-block .card-image,
.three-up .card-horizontal .foreground .card-block .card-image {
flex: 0 0 91px;
Expand All @@ -179,11 +169,6 @@
padding-right: var(--spacing-m);
}

[dir = "rtl"] .card-horizontal.tile .foreground .card-block .card-content {
padding-left: var(--spacing-m);
padding-right: 0;
}

.card-horizontal.tile .foreground .card-block .card-image {
flex: 0 0 106px;
}
Expand All @@ -198,11 +183,6 @@
margin-left: var(--spacing-m);
}

[dir = "rtl"] .card-horizontal.tile .foreground .card-block .card-image img {
margin-left: 0;
margin-right: var(--spacing-m);
}

.two-up .card-horizontal .foreground .card-block {
gap: var(--spacing-s);
}
Expand All @@ -219,34 +199,19 @@
padding-right: var(--spacing-s);
}

[dir = "rtl"] .two-up .card-horizontal.tile .foreground .card-block .card-content {
padding-left: var(--spacing-s);
padding-right: 0;
}

.two-up .card-horizontal.tile .foreground .card-block .card-image img {
width: 74px;
height: 72px;
margin-left: var(--spacing-s);
}

[dir = "rtl"] .two-up .card-horizontal.tile .foreground .card-block .card-image img {
margin-left: 0;
margin-right: var(--spacing-s);
}

.three-up .card-horizontal.tile .foreground .card-block .card-image {
flex: 0 0 98px;
}

.three-up .card-horizontal.tile .foreground .card-block .card-image img {
margin-left: var(--spacing-s);
}

[dir = "rtl"] .three-up .card-horizontal.tile .foreground .card-block .card-image img {
margin-left: 0;
margin-right: var(--spacing-s);
}
}

@media screen and (min-width: 1200px) {
Expand All @@ -259,29 +224,14 @@
padding-right: var(--spacing-m);
}

[dir = "rtl"] .card-horizontal .foreground .card-block .card-content {
padding-left: var(--spacing-m);
padding-right: 0;
}

.two-up .card-horizontal .foreground .card-block .card-content {
padding-right: var(--spacing-s);
}

[dir = "rtl"] .two-up .card-horizontal .foreground .card-block .card-content {
padding-left: var(--spacing-s);
padding-right: 0;
}

.three-up .card-horizontal .foreground .card-block .card-content {
padding-right: var(--spacing-s);
}

[dir = "rtl"] .three-up .card-horizontal .foreground .card-block .card-content {
padding-left: var(--spacing-s);
padding-right: 0;
}

.card-horizontal .foreground .card-block .card-image {
flex: 0 0 180px;
}
Expand Down Expand Up @@ -314,21 +264,11 @@
margin-left: var(--spacing-s);
}

[dir = "rtl"] .two-up .card-horizontal.tile .foreground .card-block .card-image img {
margin-left: 0;
margin-right: var(--spacing-s);
}

.three-up .card-horizontal.tile .foreground .card-block .card-image {
flex: 0 0 98px;
}

.three-up .card-horizontal.tile .foreground .card-block .card-image img {
margin-left: var(--spacing-s);
}

[dir = "rtl"] .three-up .card-horizontal.tile .foreground .card-block .card-image img {
margin-left: 0;
margin-right: var(--spacing-s);
}
}

0 comments on commit d1c0369

Please sign in to comment.