-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[templates/nextjs-sxa] The component aligment has been fixed #SXA-6539 (
#1950) * CHANGELOG has been changed * [templates/nextjs-sxa]: Styles of alignment has been fixed * CHANGELOG has been changed --------- Co-authored-by: Ruslan Matkovskyi <[email protected]>
- Loading branch information
1 parent
51ce9a9
commit ee8b8f8
Showing
2 changed files
with
62 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 61 additions & 7 deletions
68
...e-sitecore-jss/src/templates/nextjs-sxa/src/assets/sass/components/common/_alignment.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,85 @@ | ||
@import '~bootstrap/scss/functions'; | ||
@import '~bootstrap/scss/variables'; | ||
@import '~bootstrap/scss/mixins'; | ||
|
||
.position-left, | ||
.position-left * { | ||
text-align: left !important; | ||
text-align: left !important; | ||
} | ||
|
||
.position-right, | ||
.position-right * { | ||
text-align: right !important; | ||
text-align: right !important; | ||
} | ||
|
||
.position-center, | ||
.position-center * { | ||
text-align: center !important; | ||
text-align: center !important; | ||
} | ||
|
||
.position-left select { | ||
direction: ltr !important; | ||
direction: ltr !important; | ||
} | ||
|
||
.position-right select { | ||
direction: rtl !important; | ||
direction: rtl !important; | ||
} | ||
|
||
.position-center select { | ||
text-align-last: center !important; | ||
text-align-last: center !important; | ||
} | ||
|
||
@include media-breakpoint-up(sm) { | ||
.ms-sm-auto { | ||
margin-left: auto !important; | ||
margin-right: 0 !important; | ||
} | ||
.me-sm-auto { | ||
margin-right: auto !important; | ||
margin-left: 0 !important; | ||
} | ||
} | ||
|
||
@include media-breakpoint-up(md) { | ||
.ms-md-auto { | ||
margin-left: auto !important; | ||
margin-right: 0 !important; | ||
} | ||
.me-md-auto { | ||
margin-right: auto !important; | ||
margin-left: 0 !important; | ||
} | ||
} | ||
|
||
@include media-breakpoint-up(lg) { | ||
.ms-lg-auto { | ||
margin-left: auto !important; | ||
margin-right: 0 !important; | ||
} | ||
.me-lg-auto { | ||
margin-right: auto !important; | ||
margin-left: 0 !important; | ||
} | ||
} | ||
|
||
@include media-breakpoint-up(xl) { | ||
.ms-xl-auto { | ||
margin-left: auto !important; | ||
margin-right: 0 !important; | ||
} | ||
.me-xl-auto { | ||
margin-right: auto !important; | ||
margin-left: 0 !important; | ||
} | ||
} | ||
|
||
.ms-md-auto { | ||
@include media-breakpoint-up(xxl) { | ||
.ms-xxl-auto { | ||
margin-left: auto !important; | ||
margin-right: 0 !important; | ||
} | ||
.me-xxl-auto { | ||
margin-right: auto !important; | ||
margin-left: 0 !important; | ||
} | ||
} |