Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stylelint config #216

Merged
merged 2 commits into from Nov 14, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
165 changes: 1 addition & 164 deletions .stylelintrc
@@ -1,166 +1,3 @@
{
"extends": "stylelint-config-standard",
"rules": {
"at-rule-no-vendor-prefix": true,
"media-feature-name-no-vendor-prefix": true,
"property-no-vendor-prefix": true,
"selector-no-vendor-prefix": true,
"value-no-vendor-prefix": true,
"max-nesting-depth": 2,
"declaration-no-important": true,
"selector-no-id": true,
"declaration-block-no-duplicate-properties": true,
"no-unknown-animations": true,
"selector-no-type": true,
"no-descending-specificity": true,
"declaration-block-properties-order": [
"position",
"top",
"right",
"bottom",
"left",
"z-index",
"display",
"float",
"width",
"height",
"max-width",
"max-height",
"min-width",
"min-height",
"padding",
"padding-top",
"padding-right",
"padding-bottom",
"padding-left",
"margin",
"margin-top",
"margin-right",
"margin-bottom",
"margin-left",
"margin-collapse",
"margin-top-collapse",
"margin-right-collapse",
"margin-bottom-collapse",
"margin-left-collapse,",
"overflow",
"overflow-x",
"overflow-y,",
"clip",
"clear,",
"font",
"font-family",
"font-size",
"font-smoothing",
"osx-font-smoothing",
"font-style",
"font-weight",
"hyphens",
"src",
"line-height",
"letter-spacing",
"word-spacing,",
"color,",
"text-align",
"text-decoration",
"text-indent",
"text-overflow",
"text-rendering",
"text-size-adjust",
"text-shadow",
"text-transform,",
"word-break",
"word-wrap",
"white-space",
"vertical-align,",
"list-style",
"list-style-type",
"list-style-position",
"list-style-image,",
"pointer-events",
"cursor,",
"background",
"background-attachment",
"background-color",
"background-image",
"background-position",
"background-repeat",
"background-size,",
"border",
"border-collapse",
"border-top",
"border-right",
"border-bottom",
"border-left",
"border-color",
"border-image",
"border-top-color",
"border-right-color",
"border-bottom-color",
"border-left-color",
"border-spacing",
"border-style",
"border-top-style",
"border-right-style",
"border-bottom-style",
"border-left-style",
"border-width",
"border-top-width",
"border-right-width",
"border-bottom-width",
"border-left-width",
"border-radius",
"border-top-right-radius",
"border-bottom-right-radius",
"border-bottom-left-radius",
"border-top-left-radius",
"border-radius-topright",
"border-radius-bottomright",
"border-radius-bottomleft",
"border-radius-topleft,",
"content",
"quotes",
"outline",
"outline-offset",
"opacity",
"filter",
"visibility",
"size",
"zoom",
"transform",
"box-align",
"box-flex",
"box-orient",
"box-pack",
"box-shadow",
"box-sizing",
"table-layout",
"animation",
"animation-delay",
"animation-duration",
"animation-iteration-count",
"animation-name",
"animation-play-state",
"animation-timing-function",
"animation-fill-mode",
"transition",
"transition-delay",
"transition-duration",
"transition-property",
"transition-timing-function",
"background-clip",
"backface-visibility",
"will-change",
"resize",
"appearance",
"user-select",
"interpolation-mode",
"direction",
"marks",
"page",
"set-link-source",
"unicode-bidi",
"speak",
]
}
"extends": "stylelint-config-bitcrowd"
}
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -76,8 +76,8 @@
"rimraf": "^2.5.4",
"sc5-styleguide": "^1.2.0",
"specificity-graph": "^0.1.7",
"stylelint": "^7.4.2",
"stylelint-config-standard": "^13.0.2"
"stylelint": "^7.5.0",
"stylelint-config-bitcrowd": "^1.1.0"
},
"files": [
"scss"
Expand Down
2 changes: 1 addition & 1 deletion scss/bitstyles/components/_modal.scss
Expand Up @@ -51,12 +51,12 @@
bottom: 0;
left: 0;
z-index: 10;
cursor: pointer;
background: $bitstyles-modal-overlay-color;
transition: all $bitstyles-modal-transition-duration $bitstyles-modal-transition-easing;
-webkit-backface-visibility: hidden; // stylelint-disable-line property-no-vendor-prefix
backface-visibility: hidden;
will-change: $bitstyles-modal-will-change;
cursor: pointer;

[aria-hidden="true"] & {
@include modal-is-hidden;
Expand Down
2 changes: 1 addition & 1 deletion scss/bitstyles/layout/_grid.scss
Expand Up @@ -122,8 +122,8 @@
display: inline-block;
width: 100%;
padding-left: $bitstyles-grid-gutter;
box-sizing: border-box;
vertical-align: top;
box-sizing: border-box;
}

// Grid system - responsive
Expand Down
2 changes: 1 addition & 1 deletion scss/bitstyles/objects/_bordered-header.scss
Expand Up @@ -23,9 +23,9 @@
&::before,
&::after {
display: inline-block;
min-width: $bitstyles-bordered-header-line-min-width;
vertical-align: middle;
flex-grow: 1;
min-width: $bitstyles-bordered-header-line-min-width;
border-top: $bitstyles-bordered-header-border;
content: '';
}
Expand Down
4 changes: 2 additions & 2 deletions scss/bitstyles/objects/_button.scss
Expand Up @@ -51,10 +51,10 @@
}

&:disabled {
background: $bitstyles-button-background-color-disabled;
border-color: $bitstyles-button-border-color-disabled;
color: $bitstyles-button-color-disabled;
cursor: default;
background: $bitstyles-button-background-color-disabled;
border-color: $bitstyles-button-border-color-disabled;
}
}

Expand Down
4 changes: 2 additions & 2 deletions scss/bitstyles/objects/_input.scss
Expand Up @@ -31,19 +31,19 @@

.#{$bitstyles-namespace}o-input--text {
padding: $bitstyles-input-padding;
color: $bitstyles-input-color;
background-color: $bitstyles-input-background;
border: $bitstyles-input-border;
border-radius: $bitstyles-input-border-radius;
color: $bitstyles-input-color;

&::placeholder {
color: $bitstyles-input-placeholder-color;
}

&:disabled {
background: $bitstyles-input-background-color-disabled;
color: $bitstyles-input-color-disabled;
cursor: default;
background: $bitstyles-input-background-color-disabled;
}

&:active,
Expand Down
4 changes: 2 additions & 2 deletions scss/bitstyles/objects/_link.scss
Expand Up @@ -12,10 +12,10 @@

.#{$bitstyles-namespace}o-link {
padding: 0;
background: none;
color: $bitstyles-color-link;
border: 0;
cursor: pointer;
background: none;
border: 0;
-webkit-appearance: none; // stylelint-disable-line property-no-vendor-prefix

&:visited {
Expand Down