Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update: expand _imageAlignment properties and set popup item DOM order (fixes #289) #290

Merged
merged 6 commits into from
Jan 3, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
popup image alignment styles updated inline with core notify
  • Loading branch information
kirsty-hames committed Dec 4, 2023
commit 0a8f824007514ec6764323155a343f13a64a875b
36 changes: 15 additions & 21 deletions less/hotgraphicPopup.less
Original file line number Diff line number Diff line change
Expand Up @@ -34,24 +34,11 @@

// Pop up item
// --------------------------------------------------
&__item-image-container {
width: 60%;
margin: auto;
}

@media (min-width: @device-width-medium) {
&__item {
display: flex;
align-items: flex-start;
}

&__item-content {
width: 60%;
}

&__item-image-container {
width: 40%;
margin-left: @item-padding;
flex-direction: column;
row-gap: 1rem;
}
}

Expand Down Expand Up @@ -81,16 +68,23 @@
.u-display-none;
}

// Align hotgraphic pop up image to the left
// Hotgraphic pop up image alignment
// --------------------------------------------------
@media (min-width: @device-width-medium) {
&__item.align-image-left {
flex-direction: row-reverse;
&__item.align-image-left,
&__item.align-image-right {
flex-direction: row;
column-gap: 1rem;
}

&__item.align-image-left &__item-content,
&__item.align-image-right &__item-content {
width: 60%;
}

&__item.align-image-left &__item-image-container {
margin-left: inherit;
margin-right: @item-padding;
&__item.align-image-left &__item-image-container,
&__item.align-image-right &__item-image-container {
width: 40%;
}
}

Expand Down