Skip to content

Commit

Permalink
style lint update
Browse files Browse the repository at this point in the history
  • Loading branch information
zlq4863947 committed Jan 23, 2019
1 parent f29ed19 commit 710bc85
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 88 deletions.
14 changes: 2 additions & 12 deletions .stylelintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"./tools/stylelint/no-nested-mixin/index.js"
],
"rules": {
"bitbank/selector-no-deep": true,
"bitbank/selector-no-deep": false,
"bitbank/no-nested-mixin": true,
"bitbank/selector-nested-pattern-scoped": [".*[^&]$", {
"message": "The & operator is not allowed at the end of theme selectors.",
Expand All @@ -16,26 +16,20 @@
"color-hex-case": "lower",
"color-no-invalid-hex": true,
"declaration-colon-space-after": "always",
"indentation": 2,
"length-zero-no-unit": true,
"max-line-length": 140,
"max-empty-lines": 1,
"max-nesting-depth": [1, { "ignoreAtRules": ["media"] }],
"no-eol-whitespace": true,
"no-missing-end-of-source-newline": true,
"number-leading-zero": "always",
"number-no-trailing-zeros": true,
"rule-empty-line-before": [ "always", {
"except": ["first-nested"],
"ignore": ["after-comment"]
} ],

"string-no-newline": true,
"string-quotes": "single",

"unit-case": "lower",
"unit-no-unknown": true,
"unit-whitelist": ["px", "%", "deg", "ms", "em", "vh", "vw", "vmin"],
"unit-whitelist": ["px", "%", "deg", "ms", "em", "vh", "vw", "vmin", "rem", "s"],

"value-list-comma-space-after": "always-single-line",
"value-list-comma-space-before": "never",
Expand All @@ -54,10 +48,6 @@
"declaration-block-semicolon-space-after": "always-single-line",
"declaration-block-semicolon-newline-before": "never-multi-line",
"declaration-block-semicolon-newline-after": "always-multi-line",
"declaration-property-value-blacklist": [
{ "/.*/": ["initial"] },
{ "message": "The `initial` value is not supported in IE."}
],

"block-closing-brace-newline-after": "always",
"block-closing-brace-newline-before": "always-multi-line",
Expand Down
74 changes: 0 additions & 74 deletions .stylelintrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion src/app/@theme/components/header/header.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
}
}
@include media-breakpoint-down(xs) {
.right /deep/ {
.right /deep/ {
display: none;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/@theme/styles/themes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
$nb-enabled-themes: (default, cosmic, corporate);

$nb-themes: nb-register-theme((
// app wise variables for each theme
// app wise variables for each theme
sidebar-header-gap: 2rem,
sidebar-header-height: initial,
layout-content-width: 1400px,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.flex-centered {
margin: auto;
}

nb-card-body {
display: flex;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
nb-card.inline-form-card nb-card-body {
padding-bottom: 0;
}

nb-tabset {
display: flex;
flex-direction: column;
Expand Down

0 comments on commit 710bc85

Please sign in to comment.