Skip to content

Commit

Permalink
chore: stylelint --fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kitian616 committed Aug 26, 2018
1 parent 4898f48 commit 43d30b1
Show file tree
Hide file tree
Showing 42 changed files with 358 additions and 358 deletions.
4 changes: 2 additions & 2 deletions _sass/common/_function.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@function get-color-theme($color) {
@if lightness($color) < 15% {
@return 'dark';
@return "dark";
} @else {
@return 'light';
@return "light";
}
}
10 changes: 5 additions & 5 deletions _sass/common/_reset.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ html {
}

body {
margin: 0;
padding: 0;
margin: 0;
}

@include block-elements() {
margin: map-get($base, vertical-space) 0;
padding: 0;
margin: map-get($base, vertical-space) 0;
}

body {
Expand Down Expand Up @@ -148,13 +148,13 @@ figcaption {
}

button {
padding: 0;
margin: 0;
font-size: 1rem;
cursor: pointer;
outline: none;
background-color: transparent;
padding: 0;
margin: 0;
border-width: 0;
outline: none;
}

input {
Expand Down
2 changes: 1 addition & 1 deletion _sass/common/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ $layout: (
// 0 500 1024 -

$responsive: (
sm: 0px,
sm: 0,
md: 500px,
lg: 1024px
);
Expand Down
2 changes: 1 addition & 1 deletion _sass/common/classes/_animation.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@mixin animation($value) {
-webkit-animation: $value;
animation: $value;
animation: $value;
}

@mixin keyframes($name) {
Expand Down
2 changes: 1 addition & 1 deletion _sass/common/classes/_clearfix.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@mixin clearfix() {
&::after {
content: "";
display: table;
clear: both;
content: "";
}
}

Expand Down
18 changes: 9 additions & 9 deletions _sass/common/classes/_clickable.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,33 +19,33 @@
// hover
@if $hover-clr == default {
@if $hover-bg-clr == null {
@if $theme == 'light' {
@if $theme == "light" {
$hover-clr: darken($clr, 14%);
}
@if $theme == 'dark' {
@if $theme == "dark" {
$hover-clr: lighten($clr, 18%);
}
} @else if $hover-bg-clr == default {
$hover-clr: $clr
$hover-clr: $clr;
}
}

@if $hover-bg-clr == default {
@if $theme == 'light' {
@if $theme == "light" {
$hover-bg-clr: darken($bg-clr, 14%);
}
@if $theme == 'dark' {
@if $theme == "dark" {
$hover-bg-clr: lighten($bg-clr, 18%);
}
}

// active
@if $active-clr == default {
@if $active-bg-clr == null {
@if $theme == 'light' {
@if $theme == "light" {
$active-clr: darken($hover-clr, 15%);
}
@if $theme == 'dark' {
@if $theme == "dark" {
$active-clr: lighten($hover-clr, 16%);
}
} @else if $active-bg-clr == default {
Expand All @@ -54,10 +54,10 @@
}

@if $active-bg-clr == default {
@if $theme == 'light' {
@if $theme == "light" {
$active-bg-clr: darken($hover-bg-clr, 15%);
}
@if $theme == 'dark' {
@if $theme == "dark" {
$active-bg-clr: lighten($hover-bg-clr, 16%);
}
}
Expand Down
Loading

0 comments on commit 43d30b1

Please sign in to comment.