Skip to content

Commit

Permalink
chore: update stylelintrc
Browse files Browse the repository at this point in the history
  • Loading branch information
kitian616 committed Feb 5, 2019
1 parent 647fb2a commit 9172e97
Show file tree
Hide file tree
Showing 73 changed files with 91 additions and 77 deletions.
1 change: 0 additions & 1 deletion .stylelintrc
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,6 @@
"fill",
"stroke"
],
"no-missing-end-of-source-newline": null,
"property-no-vendor-prefix": true,
"rule-empty-line-before": null,
"selector-attribute-quotes": "always",
Expand Down
2 changes: 1 addition & 1 deletion _sass/additional/_alert.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
border: 1px solid $red;
border-radius: map-get($base, border-radius);
}
}
}
2 changes: 1 addition & 1 deletion _sass/additional/_photo-frame.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
img.circle, .circle > img {
border-radius: 50%;
}
}
}
2 changes: 1 addition & 1 deletion _sass/additional/_tag.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
color: $text-color-function;
background-color: $red;
}
}
}
2 changes: 1 addition & 1 deletion _sass/animate/_fade-in-down.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
opacity: 1;
@include transform(translateY(0));
}
}
}
2 changes: 1 addition & 1 deletion _sass/animate/_fade-in-up.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
opacity: 1;
@include transform(translateY(0));
}
}
}
2 changes: 1 addition & 1 deletion _sass/animate/_fade-in.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
to {
opacity: 1;
}
}
}
5 changes: 3 additions & 2 deletions _sass/common/_classes.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* stylelint-disable at-rule-name-space-after, at-rule-semicolon-space-before */
@charset "utf-8";

@import
"common/classes/animation",
"common/classes/transform",
Expand All @@ -20,4 +20,5 @@
"common/classes/spacing",
"common/classes/split-line",
"common/classes/grid"
;
;
/* stylelint-enable */
2 changes: 1 addition & 1 deletion _sass/common/_function.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
}
$min: map-get($breakpoints, $name);
@return if($min != 0, "#{$name}-", "");
}
}
2 changes: 1 addition & 1 deletion _sass/common/_print.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
blockquote {
page-break-inside: avoid;
}
}
}
22 changes: 18 additions & 4 deletions _sass/common/_reset.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,21 @@
@mixin block-elements {
h1, h2, h3, h4, h5, h6, p,
hr, blockquote, figure, pre, .highlighter-rouge,
ul, ol, dl, table, .footnotes {
h1,
h2,
h3,
h4,
h5,
h6,
p,
hr,
blockquote,
figure,
pre,
.highlighter-rouge,
ul,
ol,
dl,
table,
.footnotes {
@content;
}
}
Expand Down Expand Up @@ -157,4 +171,4 @@ input {
// mermaid
.mermaidTooltip {
display: none;
}
}
2 changes: 1 addition & 1 deletion _sass/common/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -147,4 +147,4 @@ $image: (
$menu: (
horizontal-spacer: 1,
horizontal-item-vertical-spacer: 1
);
);
2 changes: 1 addition & 1 deletion _sass/common/classes/_animation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
@keyframes #{$name} {
@content;
}
}
}
2 changes: 1 addition & 1 deletion _sass/common/classes/_clearfix.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@

.right {
float: right;
}
}
2 changes: 1 addition & 1 deletion _sass/common/classes/_clickable.scss
Original file line number Diff line number Diff line change
Expand Up @@ -156,4 +156,4 @@
}
}
}
}
}
2 changes: 1 addition & 1 deletion _sass/common/classes/_grid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,4 @@ $grid-columns: 12;
}
}

@include make-grid();
@include make-grid();
2 changes: 1 addition & 1 deletion _sass/common/classes/_horizontal-rules.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@

.horizontal-rules {
@include horizontal-rules();
}
}
2 changes: 1 addition & 1 deletion _sass/common/classes/_link.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
text-decoration: none;
}
@include clickable($clr, null, $hover-clr, null, $active-clr, null, $focus-clr, null, $theme, $ignore-path);
}
}
2 changes: 1 addition & 1 deletion _sass/common/classes/_media.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
@media (min-width: map-get($breakpoints, $name)) {
@content;
}
}
}
2 changes: 1 addition & 1 deletion _sass/common/classes/_overflow.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@

.of-hidden {
@include overflow(hidden);
}
}
2 changes: 1 addition & 1 deletion _sass/common/classes/_pseudo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@
&:disabled {
@content;
}
}
}
2 changes: 1 addition & 1 deletion _sass/common/classes/_shadow.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@

.box-shadow-2 {
@include box-shadow(2);
}
}
2 changes: 1 addition & 1 deletion _sass/common/classes/_spacing.scss
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@
}
}

@include make-spacings();
@include make-spacings();
2 changes: 1 addition & 1 deletion _sass/common/classes/_split-line.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
@if $direction == left {
border-left-width: $width;
}
}
}
2 changes: 1 addition & 1 deletion _sass/common/classes/_text.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@
}
.text--dark {
@include text-dark();
}
}
2 changes: 1 addition & 1 deletion _sass/common/classes/_transform.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@mixin transform($value) {
-webkit-transform: $value;
transform: $value;
}
}
2 changes: 1 addition & 1 deletion _sass/common/classes/_transition.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@mixin transition($value) {
-webkit-transition: $value;
transition: $value;
}
}
2 changes: 1 addition & 1 deletion _sass/common/classes/_user-select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
-moz-user-select: $value;
-ms-user-select: $value;
user-select: $value;
}
}
2 changes: 1 addition & 1 deletion _sass/common/components/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -160,4 +160,4 @@
width: map-get($button, circle-diameter-xl);
height: map-get($button, circle-diameter-xl);
}
}
}
2 changes: 1 addition & 1 deletion _sass/common/components/_gallery.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@

.gallery-item__main {
display: block;
}
}
2 changes: 1 addition & 1 deletion _sass/common/components/_hero.scss
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@
margin: map-get($spacers, 2) 0;
}
}
}
}
2 changes: 1 addition & 1 deletion _sass/common/components/_image.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
}
.image--xs {
width: map-get($image, width-xs);
}
}
2 changes: 1 addition & 1 deletion _sass/common/components/_item.scss
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,4 @@ a > .item__header, a.item__header, .item__header > a {
}
list-style-type: none;
}
}
}
2 changes: 1 addition & 1 deletion _sass/common/components/_menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@

.menu--grow {
@include flex-grow(1);
}
}
2 changes: 1 addition & 1 deletion _sass/common/components/_modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@
}
.modal--overflow {
@include overflow(auto);
}
}
2 changes: 1 addition & 1 deletion _sass/common/components/_swiper.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@

.swiper__button--next {
right: 10px;
}
}
2 changes: 1 addition & 1 deletion _sass/common/components/_toc.scss
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,4 @@ ul.toc--navigator {
@include link-colors($text-color-l);
}
}
}
}
2 changes: 1 addition & 1 deletion _sass/components/_article-footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
img {
height: map-get($base, font-size) * 1.6;
}
}
}
2 changes: 1 addition & 1 deletion _sass/components/_article-header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@

.article__header--cover {
width: 100%;
}
}
2 changes: 1 addition & 1 deletion _sass/components/_article-list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
}
.article-list__group-header {
margin-top: map-get($spacers, 3);
}
}
2 changes: 1 addition & 1 deletion _sass/components/_author-profile.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@
}
.author-profile__links {
@include overflow(auto);
}
}
2 changes: 1 addition & 1 deletion _sass/components/_extensions.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@
.extensions--audio {
display: block;
max-width: 100% !important;
}
}
2 changes: 1 addition & 1 deletion _sass/components/_footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@
.author-links {
text-align: center;
}
}
}
2 changes: 1 addition & 1 deletion _sass/components/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,4 @@
&::after {
@include split-line(bottom, 4px, $main-color-1);
}
}
}
2 changes: 1 addition & 1 deletion _sass/components/_lightbox.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
@include box-shadow(2);
}
@include transition(map-get($clickable, transition));
}
}
2 changes: 1 addition & 1 deletion _sass/components/_main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@
width: 100%;
max-width: 100%;
}
}
}
2 changes: 1 addition & 1 deletion _sass/components/_search.scss
Original file line number Diff line number Diff line change
Expand Up @@ -183,4 +183,4 @@
::after {
box-sizing: initial;
}
}
}
2 changes: 1 addition & 1 deletion _sass/components/_tags.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
.tag-button-4 {
@include clickable($text-color-1, rgba($main-color-1, .9), default, default, $text-color-2,$main-color-2, $text-color-2,$main-color-2);
}
}
}
2 changes: 1 addition & 1 deletion _sass/custom.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/* start custom scss snippet */

/* end custom scss snippet */
/* end custom scss snippet */
2 changes: 1 addition & 1 deletion _sass/layout/_404.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
font-size: map-get($base, font-size-xl) * 1.2;
}
}
}
}
2 changes: 1 addition & 1 deletion _sass/layout/_article.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
padding-left: map-get($spacers, 2);
text-align: right;
}
}
}
2 changes: 1 addition & 1 deletion _sass/layout/_articles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
}
}
}
}
}
Loading

0 comments on commit 9172e97

Please sign in to comment.