Skip to content

Commit

Permalink
Fix type
Browse files Browse the repository at this point in the history
Fix typo of scss file.
Replace from '#' to `=`.

Error message:
```bash
Conversion error: Jekyll::Converters::Scss encountered an error while converting 'assets/css/i.scss':
                    Error: Invalid CSS after "...t(startColorstr": expected expression (e.g. 1px, bold), was "#$color,endColorstr" on line 87:77 of _sass/_mixins.scss from line 8:1 of i.scss >> Transform.Microsoft.gradient(startColorstr#$color,endColorstr=$color); ------------------------------------------^
                    ------------------------------------------------
      Jekyll 4.0.0   Please append `--trace` to the `serve` command
                     for any additional information or backtrace.
                    ------------------------------------------------
```
  • Loading branch information
hannut91 committed Oct 26, 2019
1 parent 02271dd commit eac1d02
Showing 1 changed file with 119 additions and 101 deletions.
220 changes: 119 additions & 101 deletions _sass/_mixins.scss
Original file line number Diff line number Diff line change
@@ -1,178 +1,196 @@
// Underline
@mixin underline($width: 2px, $style: solid, $border-color: $link) {
border-bottom: 2px solid $border-color;
border-bottom: 2px solid $border-color;
}

// Clearfix
@mixin clearfix {
// For modern browsers
// For modern browsers
&:before,
&:after {
content:"";
display:table;
} &:after {
clear:both;
} // For IE 6/7 (trigger hasLayout)
content: "";
display: table;
}
&:after {
clear: both;
} // For IE 6/7 (trigger hasLayout)
& {
zoom:1;
}
}

// BACKGROUND GRADIENT
@mixin background-gradient($startColor: #3C3C3C, $endColor: #999999) {
background-color: $startColor;
background-image: -webkit-gradient(linear, left top, left bottom, from($startColor), to($endColor));
background-image: -webkit-linear-gradient(top, $startColor, $endColor);
background-image: -moz-linear-gradient(top, $startColor, $endColor);
background-image: -ms-linear-gradient(top, $startColor, $endColor);
background-image: -o-linear-gradient(top, $startColor, $endColor);
background-image: linear-gradient(top, $startColor, $endColor);
filter: progid:DXImageTransform.Microsoft.gradient(startColorStr=$startColor, EndColorStr=$endColor);
zoom: 1;
}
}

// BACKGROUND GRADIENT
@mixin background-gradient($startColor: #3c3c3c, $endColor: #999999) {
background-color: $startColor;
background-image: -webkit-gradient(
linear,
left top,
left bottom,
from($startColor),
to($endColor)
);
background-image: -webkit-linear-gradient(top, $startColor, $endColor);
background-image: -moz-linear-gradient(top, $startColor, $endColor);
background-image: -ms-linear-gradient(top, $startColor, $endColor);
background-image: -o-linear-gradient(top, $startColor, $endColor);
background-image: linear-gradient(top, $startColor, $endColor);
filter: progid:DXImageTransform.Microsoft.gradient(startColorStr=$startColor, EndColorStr=$endColor);
}

// BACKGROUND SIZE
@mixin background-size($width: 100%, $height: 100%) {
-moz-background-size: $width $height;
-moz-background-size: $width $height;
-webkit-background-size: $width $height;
background-size: $width $height;
background-size: $width $height;
}

// BORDER RADIUS
@mixin br($radius: 5px) {
-moz-border-radius: $radius;
-webkit-border-radius: $radius;
border-radius: $radius;
-moz-border-radius: $radius;
-webkit-border-radius: $radius;
border-radius: $radius;
}

@mixin border-radius-separate($topLeftRadius: 5px, $topRightRadius: 5px, $bottomLeftRadius: 5px, $bottomRightRadius: 5px) {
-webkit-border-top-left-radius: $topLeftRadius;
-webkit-border-top-right-radius: $topRightRadius;
-webkit-border-bottom-right-radius: $bottomLeftRadius;
-webkit-border-bottom-left-radius: $bottomRightRadius;
@mixin border-radius-separate(
$topLeftRadius: 5px,
$topRightRadius: 5px,
$bottomLeftRadius: 5px,
$bottomRightRadius: 5px
) {
-webkit-border-top-left-radius: $topLeftRadius;
-webkit-border-top-right-radius: $topRightRadius;
-webkit-border-bottom-right-radius: $bottomLeftRadius;
-webkit-border-bottom-left-radius: $bottomRightRadius;

-moz-border-radius-topleft: $topLeftRadius;
-moz-border-radius-topright: $topRightRadius;
-moz-border-radius-bottomright: $bottomLeftRadius;
-moz-border-radius-bottomleft: $bottomRightRadius;
-moz-border-radius-topleft: $topLeftRadius;
-moz-border-radius-topright: $topRightRadius;
-moz-border-radius-bottomright: $bottomLeftRadius;
-moz-border-radius-bottomleft: $bottomRightRadius;

border-top-left-radius: $topLeftRadius;
border-top-right-radius: $topRightRadius;
border-bottom-right-radius: $bottomLeftRadius;
border-bottom-left-radius: $bottomRightRadius;
border-top-left-radius: $topLeftRadius;
border-top-right-radius: $topRightRadius;
border-bottom-right-radius: $bottomLeftRadius;
border-bottom-left-radius: $bottomRightRadius;
}

/* BOX */
@mixin box($orient: horizontal, $pack: center, $align: center) {
display: -webkit-box;
display: -moz-box;
display: box;
display: -webkit-box;
display: -moz-box;
display: box;

-webkit-box-orient: $orient;
-moz-box-orient: $orient;
box-orient: $orient;
-webkit-box-orient: $orient;
-moz-box-orient: $orient;
box-orient: $orient;

-webkit-box-pack: $pack;
-moz-box-pack: $pack;
box-pack: $pack;
-webkit-box-pack: $pack;
-moz-box-pack: $pack;
box-pack: $pack;

-webkit-box-align: $align;
-moz-box-align: $align;
box-align: $align;
-webkit-box-align: $align;
-moz-box-align: $align;
box-align: $align;
}

/* BOX RGBA */
@mixin box-rgba($r: 60, $g: 3, $b: 12, $opacity: 0.23, $color: #3C3C3C) {
@mixin box-rgba($r: 60, $g: 3, $b: 12, $opacity: 0.23, $color: #3c3c3c) {
background-color: transparent;
background-color: rgba($r, $g, $b, $opacity);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr#$color,endColorstr=$color);
zoom: 1;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=$color,endColorstr=$color);
zoom: 1;
}

/* BOX SHADOW */
@mixin bxshd($x: 2px, $y: 2px, $blur: 5px, $color: rgba(0,0,0,.4), $inset: "") {
-webkit-box-shadow: $inset $x $y $blur $color;
-moz-box-shadow: $inset $x $y $blur $color;
box-shadow: $inset $x $y $blur $color;
@mixin bxshd(
$x: 2px,
$y: 2px,
$blur: 5px,
$color: rgba(0, 0, 0, 0.4),
$inset: ""
) {
-webkit-box-shadow: $inset $x $y $blur $color;
-moz-box-shadow: $inset $x $y $blur $color;
box-shadow: $inset $x $y $blur $color;
}

/* BOX SIZING */
@mixin box-sizing($type: border-box) {
-webkit-box-sizing: $type;
-moz-box-sizing: $type;
box-sizing: $type;
-webkit-box-sizing: $type;
-moz-box-sizing: $type;
box-sizing: $type;
}

/* COLUMNS */
@mixin columns($count: 3, $gap: 10) {
-webkit-column-count: $count;
-moz-column-count: $count;
column-count: $count;
-webkit-column-count: $count;
-moz-column-count: $count;
column-count: $count;

-webkit-column-gap: $gap;
-moz-column-gap: $gap;
column-gap: $gap;
-webkit-column-gap: $gap;
-moz-column-gap: $gap;
column-gap: $gap;
}

/* DOUBLE BORDERS */
@mixin double-borders($colorOne: #3C3C3C, $colorTwo: #999999, $radius: 0) {
border: 1px solid $colorOne;
@mixin double-borders($colorOne: #3c3c3c, $colorTwo: #999999, $radius: 0) {
border: 1px solid $colorOne;

-webkit-box-shadow: 0 0 0 1px $colorTwo;
-moz-box-shadow: 0 0 0 1px $colorTwo;
box-shadow: 0 0 0 1px $colorTwo;
-webkit-box-shadow: 0 0 0 1px $colorTwo;
-moz-box-shadow: 0 0 0 1px $colorTwo;
box-shadow: 0 0 0 1px $colorTwo;

@include border-radius( $radius );
@include border-radius($radius);
}

/* FLEX */
@mixin flex($value: 1) {
-webkit-box-flex: $value;
-moz-box-flex: $value;
box-flex: $value;
-webkit-box-flex: $value;
-moz-box-flex: $value;
box-flex: $value;
}

/* FLIP */
@mixin flip($scaleX: -1) {
-moz-transform: scaleX($scaleX);
-o-transform: scaleX($scaleX);
-webkit-transform: scaleX($scaleX);
transform: scaleX($scaleX);
filter: FlipH;
-ms-filter: "FlipH";
-moz-transform: scaleX($scaleX);
-o-transform: scaleX($scaleX);
-webkit-transform: scaleX($scaleX);
transform: scaleX($scaleX);
filter: FlipH;
-ms-filter: "FlipH";
}

/* OPACITY */
@mixin opacity($opacity: 0.5) {
filter: alpha(opacity=($opacity * 100));
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=" + ($opacity * 100) + ")";
-moz-opacity: $opacity;
-khtml-opacity: $opacity;
opacity: $opacity;
filter: alpha(opacity=($opacity * 100));
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=" +
($opacity * 100) + ")";
-moz-opacity: $opacity;
-khtml-opacity: $opacity;
opacity: $opacity;
}

/* ROTATE*/
@mixin rotate($deg: 0, $m11: 0, $m12: 0, $m21: 0, $m22: 0) {
-moz-transform: rotate($deg + deg);
-o-transform: rotate($deg + deg);
-moz-transform: rotate($deg + deg);
-o-transform: rotate($deg + deg);
-webkit-transform: rotate($deg + deg);
-ms-transform: rotate($deg + deg);
transform: rotate($deg + deg);
filter: progid:DXImageTransform.Microsoft.Matrix(
-ms-transform: rotate($deg + deg);
transform: rotate($deg + deg);
filter: progid:DXImageTransform.Microsoft.Matrix(
M11=$m11, M12=$m12,M21=$m21, M22=$m22, sizingMethod='auto expand');
zoom: 1;
zoom: 1;
}

/* TEXT SHADOW */
@mixin tshd($x: 2px, $y: 2px, $blur: 5px, $color: rgba(0,0,0,.4)) {
text-shadow: $x $y $blur $color;
@mixin tshd($x: 2px, $y: 2px, $blur: 5px, $color: rgba(0, 0, 0, 0.4)) {
text-shadow: $x $y $blur $color;
}

/* TRANSITION */
@mixin transit($what: all, $length: 1s, $easing: ease-in-out) {
-moz-transition: $what $length $easing;
-o-transition: $what $length $easing;
-webkit-transition: $what $length $easing;
-ms-transition: $what $length $easing;
transition: $what $length $easing;

-moz-transition: $what $length $easing;
-o-transition: $what $length $easing;
-webkit-transition: $what $length $easing;
-ms-transition: $what $length $easing;
transition: $what $length $easing;
}

0 comments on commit eac1d02

Please sign in to comment.