$ git clone https://github.com/shengnian/shengnian-ui-react.git
$ cd shengnian-ui-react
$ gulp
mkdir dist/scss/functions
touch dist/scss/functions/_functions.scss
less/themes.less
.loadFonts() when (@importGoogleFonts) {
@import url('@{googleProtocol}fonts.googleapis.com/css?family=@{googleFontRequest}');
}
to
@mixin loadFonts() {
@import url('#{$googleProtocol}fonts.googleapis.com/css?family=#{$googleFontRequest}');
}
Update @include loadFonts();
to :
@if($importGoogleFonts) {
@include loadFonts();
}
Update
$imagePath : '../../themes/default/assets/images';
$fontPath : '../../themes/default/assets/fonts';
to
$imagePath : './assets/images';
$fontPath : './assets/fonts';
Delete shengnian-ui.scss
line 27 @import './modules/chatroom';
line 42 @import './modules/video';
/--- Colored Text ---/ to
/--- Colored Headers ---/
/------------------- Grid --------------------/ to /------------------- Border Radius --------------------/
/-------------------
Site Colors
--------------------/
end of $strongTransparentWhite : rgba(255, 255, 255, 0.15);
to
/-------------------
Border Radius
--------------------/
/------------------- Paths --------------------/ to top
/*******************************
Power-User
*******************************/
end of $warningTextColor : #573A08;
to /------------------- Border Radius --------------------/
/------------------- Sizes --------------------/ to /******************************* Power-User *******************************/
/------------------- Exact Pixel Values --------------------/ to /------------------- Border Radius --------------------/
/------------------- Page --------------------/ to /-------------- Form Input ---------------/
Errored Input
toInline Validation Prompt
-
Menu Item
toMenu
-
Undefined variable: \"$menuSecondaryItemSpacing\",
Down 3 lines :
$menuSecondaryMargin: 0em -$menuSecondaryItemSpacing;
$menuMinHeight: ($menuItemVerticalPadding * 2) + 1em;
to
$menuMinHeight: (#{$menuItemVerticalPadding} * 2) + 1em;
- $buttonOrHeight: (#{$buttonVerticalPadding} * 2) + 1em;
- $buttonLabeledIconWidth: 1em + (#{$buttonVerticalPadding} * 2);
- $buttonCompactVerticalPadding: (#{$buttonVerticalPadding} * 0.75);
- $buttonCompactHorizontalPadding: (#{$buttonHorizontalPadding} * 0.75);
- $inputIconWidth: (#{$inputVerticalPadding} * 2) + $inputGlyphWidth;
- Fix
$listHorizontalBulletSpacing: $listBulletDistance + 0.5em;
to$listHorizontalBulletSpacing: $listBulletDistance + 0.5rem;
$railDividingWidth: $railWidth + $railSplitDividingDistance;
to
$railDividingWidth: px2rem($railWidth) + $railSplitDividingDistance;
-
Message
toSearch
$dropdownSelectionItemDivider: 1px solid $dropdownSolidInternalBorderColor;
$dropdownSelectionMessagePadding: $dropdownSelectionItemPadding;
to
$dropdownSelectionTransition: $dropdownTransition;
-
$dropdownItemLineHeight: 1em;
to$dropdownItemLineHeight: 1rem;
-
Incompatible units: 'em' and 'rem'
error:
$dropdownItemVerticalPadding * 2
to
#{$dropdownItemVerticalPadding} * 2
$dropdownPointingArrowOffset: -($dropdownPointingArrowSize / 2);
$dropdownPointingArrowDistanceFromEdge: 1em;
to
$dropdownPointingMenuDistance: $dropdownMini;
-
$modalInnerCloseTop: ($modalHeaderVerticalPadding - $modalCloseHitBoxOffset) + ($modalLineHeight - 1em)); $modalInnerCloseTop: ($modalHeaderVerticalPadding - $modalCloseHitBoxOffset + strip-units($modalLineHeight - 1em));
-
Incompatible units: '%' and 'em'.
$modalMobileMargin: 0em 0em 0em -($modalMobileWidth / 2);
to$modalMobileMargin: 0 0 0 -($modalMobileWidth / 2);
Variations
toParts
Label
to top
- remove lastest
}
copy@include addScrollbars();
into@if ($useCustomScrollbars) {
block.