-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#535917 added styles for sxa initializer(basic site) (#1062)
* #535917 fixed lint errors(added end of line) * #535917 fixed comments * #535917: fixed comments
- Loading branch information
1 parent
d579dd1
commit ba9dde0
Showing
10 changed files
with
197 additions
and
1 deletion.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
packages/create-sitecore-jss/src/templates/nextjs-sxa/src/assets/basic/_common.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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
* { | ||
font-family: Roboto; | ||
} |
18 changes: 18 additions & 0 deletions
18
packages/create-sitecore-jss/src/templates/nextjs-sxa/src/assets/basic/_component.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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
.component-content { | ||
@include respond-to(all-mobile) { | ||
.row { | ||
padding: 0; | ||
margin: 0; | ||
} | ||
} | ||
} | ||
@include respond-to(all-mobile) { | ||
.row { | ||
margin: 0; | ||
padding: 0; | ||
> * { | ||
padding: 0; | ||
margin: 0; | ||
} | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
packages/create-sitecore-jss/src/templates/nextjs-sxa/src/assets/basic/_footer.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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
@import "@sass/abstracts/mixins"; | ||
|
||
footer { | ||
.rich-text { | ||
font-size: 14px; | ||
color: $text-white; | ||
} | ||
|
||
.indent-inner { | ||
padding: 3rem; | ||
|
||
@include respond-to(all-mobile) { | ||
padding: 25px 0; | ||
} | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
packages/create-sitecore-jss/src/templates/nextjs-sxa/src/assets/basic/_header.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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
@import "@sass/abstracts/vars/colors"; | ||
@import "@sass/abstracts/mixins"; | ||
|
||
header { | ||
.container { | ||
.row { | ||
display: flex; | ||
flex-direction: column; | ||
padding-top: 10px; | ||
|
||
@include respond-to(all-mobile) { | ||
padding-top: 0; | ||
flex-direction: column-reverse; | ||
} | ||
} | ||
} | ||
|
||
.title { | ||
padding-left: 50px; | ||
|
||
@include respond-to(all-mobile) { | ||
padding-left: 0; | ||
} | ||
|
||
.field-title { | ||
@include respond-to(all-mobile) { | ||
text-align: center; | ||
} | ||
a { | ||
font-size: 30px; | ||
font-weight: bold; | ||
border: none; | ||
margin-bottom: 0; | ||
color: $bg-black; | ||
} | ||
} | ||
} | ||
} |
66 changes: 66 additions & 0 deletions
66
packages/create-sitecore-jss/src/templates/nextjs-sxa/src/assets/basic/_navigation.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 |
---|---|---|
@@ -0,0 +1,66 @@ | ||
@import "@sass/abstracts/vars"; | ||
|
||
$hamburger-width: 30px; | ||
$hamburger-height: 18px; | ||
$border-size: 6px; | ||
$hamburger-margin: 1.5rem; | ||
|
||
.navigation.navigation-horizontal { | ||
width: 100%; | ||
padding-right: 50px; | ||
|
||
@include respond-to(all-mobile) { | ||
padding-right: 0; | ||
} | ||
|
||
.component-content { | ||
display: inline-block; | ||
|
||
@include respond-to(all-mobile) { | ||
display: none; | ||
} | ||
} | ||
|
||
@include respond-to(all-mobile) { | ||
&::before { | ||
content: ""; | ||
width: $hamburger-width; | ||
height: $hamburger-height; | ||
margin-right: $hamburger-margin; | ||
margin-top: $hamburger-margin; | ||
display: block; | ||
border-top: 6px solid $bg-black; | ||
border-bottom: 6px solid $bg-black; | ||
float: right; | ||
cursor: pointer; | ||
} | ||
|
||
&:active, &:hover { | ||
&::before { | ||
display: none; | ||
} | ||
.component-content { | ||
display: inline-block; | ||
} | ||
|
||
.level0 { | ||
display: block; | ||
} | ||
} | ||
} | ||
|
||
ul.clearfix { | ||
list-style: none; | ||
} | ||
.level0 { | ||
display: flex; | ||
} | ||
|
||
.level0, .level1 { | ||
>.navigation-title { | ||
>a { | ||
border-width: 0; | ||
} | ||
} | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
packages/create-sitecore-jss/src/templates/nextjs-sxa/src/assets/basic/_promo.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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
@import "@sass/abstracts/vars"; | ||
@import "@sass/abstracts/mixins"; | ||
/**PROMO**/ | ||
|
||
.promo { | ||
&.promo-no-border { | ||
padding-left: 0; | ||
padding-right: 0; | ||
|
||
>.component-content { | ||
@include border-basic(all, 'none', 0); | ||
@include respond-to(all-mobile) { | ||
> div { | ||
padding: 0; | ||
} | ||
|
||
.promo-text { | ||
padding: 15px 10px 10px 25px; | ||
} | ||
} | ||
} | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
packages/create-sitecore-jss/src/templates/nextjs-sxa/src/assets/basic/_rich-text.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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
.rich-text { | ||
@include respond-to(all-mobile) { | ||
padding: 15px 10px 10px 25px; | ||
|
||
h2 { | ||
font-size: 18px; | ||
} | ||
|
||
h4 { | ||
font-size: 18px; | ||
line-height: 35px; | ||
font-weight: 600; | ||
} | ||
|
||
h6 { | ||
font-size: 14px; | ||
strong { | ||
font-weight: normal; | ||
line-height: 24px; | ||
} | ||
} | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
packages/create-sitecore-jss/src/templates/nextjs-sxa/src/assets/basic/main.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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@import "common"; | ||
@import "header"; | ||
@import "promo"; | ||
@import "navigation"; | ||
@import "component"; | ||
@import "rich-text"; | ||
@import "footer"; |
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
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