-
Notifications
You must be signed in to change notification settings - Fork 279
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* #533938 added styles sass * #533938 removed local fontawesome and added npm package fontawesome
- Loading branch information
1 parent
bdb14ed
commit 82d287e
Showing
79 changed files
with
1,961 additions
and
8 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
7 changes: 6 additions & 1 deletion
7
packages/create-sitecore-jss/src/templates/nextjs-sxa/package.json
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,10 @@ | ||
{ | ||
"dependencies": { | ||
"bootstrap": "^5.1.3" | ||
"bootstrap": "^5.1.3", | ||
"font-awesome": "^4.7.0" | ||
}, | ||
"devDependencies": { | ||
"sass-alias": "^1.0.5", | ||
"sass": "^1.52.3" | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
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; | ||
} |
8 changes: 8 additions & 0 deletions
8
...es/create-sitecore-jss/src/templates/nextjs-sxa/src/assets/sass/abstracts/_functions.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,8 @@ | ||
@function headings($from:1, $to:6) { | ||
@if $from==$to { | ||
@return 'h#{$from}'; | ||
} | ||
@else { | ||
@return 'h#{$from},'+headings($from+1, $to); | ||
} | ||
} |
121 changes: 121 additions & 0 deletions
121
packages/create-sitecore-jss/src/templates/nextjs-sxa/src/assets/sass/abstracts/_mixins.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,121 @@ | ||
@import "vars"; | ||
|
||
/* breakpoints */ | ||
|
||
$break-desktop: 960px; | ||
$break-mobile: 380px; | ||
$break-mobile-horizontal: 640px; | ||
$break-mobile-large: 786px; | ||
@mixin wrapper() { | ||
max-width: 960px; | ||
margin: 0 auto !important; | ||
} | ||
@mixin clearfix { | ||
&:after { | ||
content: ""; | ||
display: table; | ||
clear: both; | ||
} | ||
} | ||
@mixin headings($from: 1, $to: 6) { | ||
@for $i from $from through $to { | ||
h#{$i} { | ||
@content | ||
} | ||
} | ||
} | ||
@mixin font-size($sizeValue: 1.6) { | ||
font-size: ($sizeValue * 10) + px; | ||
font-size: $sizeValue + rem; | ||
} | ||
@mixin proxima-font($weight:semibold) { | ||
@if($weight==semibold) { | ||
font-family: "ProximaNova-Semibold", arial, helvetica, sans-serif; | ||
} | ||
@else if($weight==light) { | ||
font-family: "ProximaNova-Light", arial, helvetica, sans-serif; | ||
} | ||
} | ||
@mixin opensans-font-stack() { | ||
font-family: "Open Sans", Helvetica, Verdana, Tahoma, sans-serif; | ||
} | ||
@mixin loading-gif() { | ||
background-image: url(data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiIgd2lkdGg9IjMyIiBoZWlnaHQ9IjMyIiBmaWxsPSJibGFjayI+DQogIDxwYXRoICBvcGFjaXR5PSIuMjUiIGQ9Ik0xNiAwIEExNiAxNiAwIDAgMCAxNiAzMiBBMTYgMTYgMCAwIDAgMTYgMCBNMTYgNCBBMTIgMTIgMCAwIDEgMTYgMjggQTEyIDEyIDAgMCAxIDE2IDQiLz4NCiAgPHBhdGggZmlsbD0nIzFhODBiNicgZD0iTTE2IDAgQTE2IDE2IDAgMCAxIDMyIDE2IEwyOCAxNiBBMTIgMTIgMCAwIDAgMTYgNHoiPg0KICAgIDxhbmltYXRlVHJhbnNmb3JtIGF0dHJpYnV0ZU5hbWU9InRyYW5zZm9ybSIgdHlwZT0icm90YXRlIiBmcm9tPSIwIDE2IDE2IiB0bz0iMzYwIDE2IDE2IiBkdXI9IjAuOHMiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiAvPg0KICA8L3BhdGg+DQo8L3N2Zz4NCg==); | ||
background-position: center center; | ||
background-repeat: no-repeat; | ||
} | ||
@mixin respond-to($media) { | ||
@if $media==mobile { | ||
@media only screen and (max-width: $break-mobile) { | ||
@content; | ||
} | ||
} | ||
@else if $media==mobile-horizontal { | ||
@media only screen and (max-width: $break-mobile-horizontal - 1) { | ||
@content; | ||
} | ||
} | ||
@else if $media==mobile-large { | ||
@media only screen and (max-width: $break-mobile-large) { | ||
@content; | ||
} | ||
} | ||
@else if $media==tablet { | ||
@media only screen and (min-width: $break-mobile + 1) and (max-width: $break-desktop - 1) { | ||
@content; | ||
} | ||
} | ||
@else if $media==all-mobile { | ||
@media only screen and (max-width: $break-desktop - 1) { | ||
@content; | ||
} | ||
} | ||
@else if $media==desktop { | ||
@media only screen and (min-width: $break-desktop) { | ||
@content; | ||
} | ||
} | ||
} | ||
@mixin border-basic($position:all, $border-color:$border-gray, $border-width:1px) { | ||
@if($position!=all) { | ||
border-#{$position}-width: $border-width; | ||
border-#{$position}-style: solid; | ||
border-#{$position}-color: $border-color; | ||
} | ||
@else { | ||
border-width: $border-width; | ||
border-style: solid; | ||
border-color: $border-color; | ||
} | ||
} | ||
@mixin fixed-bg($pos, $min-height:240px) { | ||
background-position: $pos; | ||
background-attachment: fixed; | ||
min-height: $min-height; | ||
} | ||
@mixin linear-gradient($direction, $color-stops...) { | ||
// Direction has been omitted and happens to be a color-stop | ||
@if is-direction($direction)==false { | ||
$color-stops: $direction, $color-stops; | ||
$direction: 180deg; | ||
} | ||
background: nth(nth($color-stops, 1), 1); | ||
background: -webkit-linear-gradient(legacy-direction($direction), $color-stops); | ||
background: linear-gradient($direction, $color-stops); | ||
} | ||
@mixin default-link-button { | ||
@include border-basic(); | ||
@include font-size(1.2); | ||
display: inline-block; | ||
vertical-align: middle; | ||
box-sizing: border-box; | ||
margin: 5px 0; | ||
padding: 10px 15px; | ||
text-align: center; | ||
text-decoration: none; | ||
font-weight: bold; | ||
&:hover { | ||
color: $text-basic; | ||
background: $bg-light-gray; | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
packages/create-sitecore-jss/src/templates/nextjs-sxa/src/assets/sass/abstracts/_vars.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 @@ | ||
@import "vars/colors"; | ||
@import "vars/margins"; | ||
@import "vars/fontSizes"; |
Oops, something went wrong.