-
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.
[SXA] Bugfix/539379 fix sxa initializer styles (#1083)
* #539379: fixed style for new structure of basic site * #539379 changed styles and rebase * #539379 fixed loading fonts for production version * #539379 [SXA] fixed mobile menu * #539379 fixed comments * #539379 [SXA] fixed styles for EE
- Loading branch information
1 parent
50510e6
commit 5dc5cc3
Showing
14 changed files
with
184 additions
and
110 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
packages/create-sitecore-jss/src/templates/nextjs-sxa/src/assets/basic/_fonts.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 @@ | ||
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap'); |
1 change: 1 addition & 0 deletions
1
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
@import "fonts"; | ||
@import "container"; | ||
@import "header"; | ||
@import "promo"; | ||
|
1 change: 1 addition & 0 deletions
1
packages/create-sitecore-jss/src/templates/nextjs-sxa/src/assets/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
112 changes: 85 additions & 27 deletions
112
packages/create-sitecore-jss/src/templates/nextjs-sxa/src/assets/sass/_app.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,28 +1,86 @@ | ||
a[target='_blank']:after { | ||
content: '\1F5D7' | ||
} | ||
|
||
/* | ||
Hides Sitecore Experience Editor markup, | ||
if you run the app in connected mode while the Sitecore cookies | ||
are set to edit mode. | ||
*/ | ||
.scChromeData, .scpm { display: none !important; } | ||
|
||
/* | ||
Styles for default JSS error components | ||
*/ | ||
.sc-jss-editing-error, | ||
.sc-jss-placeholder-error { | ||
padding: 1em; | ||
background-color: lightyellow; | ||
} | ||
|
||
/* | ||
Style for default content block | ||
*/ | ||
.contentTitle { | ||
font-size: 3.5rem; | ||
font-weight: 300; | ||
line-height: 1.2; | ||
|
||
html { | ||
font-size: 62.5%; | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
margin-bottom: 0px; | ||
height: auto !important; | ||
} | ||
|
||
body { | ||
@include opensans-font-stack(); | ||
position: relative; | ||
overflow: auto; | ||
color: $text-basic; | ||
font-size: 14px; | ||
line-height: 1.5; | ||
background: $page-bg; | ||
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); | ||
height: auto !important; | ||
&.on-page-editor { | ||
background: $page-bg-editor !important; | ||
} | ||
} | ||
|
||
a { | ||
color: $text-basic; | ||
cursor: pointer; | ||
font-size: 0.85em; | ||
&:hover { | ||
color: $text-basic-active; | ||
} | ||
} | ||
|
||
h1, | ||
h2, | ||
h3, | ||
h4, | ||
h5, | ||
h6 { | ||
font-weight: bold; | ||
} | ||
|
||
h1 { | ||
font-size: 2em; | ||
} | ||
|
||
h2 { | ||
font-size: 1.5em; | ||
} | ||
|
||
h3 { | ||
font-size: 1.2em; | ||
} | ||
|
||
h4 { | ||
font-size: 1em; | ||
} | ||
|
||
h5 { | ||
font-size: 0.83em; | ||
} | ||
|
||
h6 { | ||
font-size: 0.67em; | ||
} | ||
|
||
.xa-variable { | ||
border: 0px; | ||
padding: 1px; | ||
margin: 0px; | ||
background-color: #ebebe4; | ||
color: #545454; | ||
user-select: none; | ||
pointer-events: none; | ||
} | ||
|
||
//Navigation Bar fix | ||
#breadcrumbMenuSubcontrol_context_menu * { | ||
box-sizing: initial; | ||
} | ||
|
||
//End navigation bar fix | ||
|
||
.menu-mobile-navigate { | ||
display: none; | ||
} |
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
1 change: 0 additions & 1 deletion
1
packages/create-sitecore-jss/src/templates/nextjs-sxa/src/assets/sass/base/fonts/_fonts.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,2 +1 @@ | ||
@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i,800,800i&subset=cyrillic,cyrillic-ext,greek,greek-ext,latin-ext,vietnamese'); | ||
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap'); |
1 change: 0 additions & 1 deletion
1
.../create-sitecore-jss/src/templates/nextjs-sxa/src/assets/sass/components/image/index.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,2 +1 @@ | ||
@import "image-default-size"; | ||
@import "component-image"; |
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
33 changes: 17 additions & 16 deletions
33
...ore-jss/src/templates/nextjs-sxa/src/assets/sass/components/link-list/_list-vertical.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,19 +1,20 @@ | ||
@import "@sass/abstracts/vars"; | ||
@import "@sass/abstracts/mixins"; | ||
@import '@sass/abstracts/vars'; | ||
@import '@sass/abstracts/mixins'; | ||
|
||
.link-list.list-vertical { | ||
h3 { | ||
background: $bg-basic-color; | ||
width: 100%; | ||
display: inline-block; | ||
padding: 3px 5px; | ||
@include border-basic(); | ||
} | ||
a { | ||
border: none; | ||
} | ||
li { | ||
display: block; | ||
margin-left: $middle-margin; | ||
} | ||
h3 { | ||
background: $bg-basic-color; | ||
width: 100%; | ||
display: inline-block; | ||
padding: 3px 5px; | ||
@include border-basic(); | ||
} | ||
a { | ||
border: none; | ||
} | ||
li { | ||
display: block; | ||
margin-left: $middle-margin; | ||
} | ||
} | ||
|
2 changes: 2 additions & 0 deletions
2
...ate-sitecore-jss/src/templates/nextjs-sxa/src/assets/sass/components/link-list/index.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,2 @@ | ||
@import "component-link-list"; | ||
@import "list-vertical"; |
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
2 changes: 1 addition & 1 deletion
2
...te-sitecore-jss/src/templates/nextjs-sxa/src/assets/sass/components/navigation/index.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,5 +1,5 @@ | ||
@import "navigation-fat"; | ||
@import "navigation-main-horizontal-vertical"; | ||
@import "navigation-mobile"; | ||
@import "navigation-sidebar"; | ||
@import "sitemap-navigation"; | ||
@import "navigation-fat"; |
1 change: 1 addition & 0 deletions
1
...ate-sitecore-jss/src/templates/nextjs-sxa/src/assets/sass/components/rich-text/index.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 @@ | ||
@import "rich-text-lists"; |
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