Skip to content

Commit 54ad233

Browse files
committed
Fix scss linter errors and bugfix in snackbar
1 parent 87e8272 commit 54ad233

File tree

14 files changed

+34
-34
lines changed

14 files changed

+34
-34
lines changed

.csscomb.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"space-before-opening-brace": 1,
1919
"strip-spaces": true,
2020
"unitless-zero": true,
21-
"vendor-prefix-align": true,
21+
"vendor-prefix-align": false,
2222
"sort-order": [
2323
[
2424
"$variable",

.scss-lint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
scss_files: "./components/**/*.scss"
22

3+
exclude: "./node_modules"
4+
35
linters:
46
BangFormat:
57
enabled: true

components/animations/slide-left.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// scss-lint:disable SelectorFormat
12
@import "../base";
23

34
.enter, .leave {

components/animations/slide-right.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// scss-lint:disable SelectorFormat
12
@import "../base";
23

34
.enter, .leave {

components/commons.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,9 @@ body[data-flex] {
138138
}
139139

140140
[data-flex*="center"] {
141-
justify-content: center;
142141
align-content: center;
143142
align-items: center;
143+
justify-content: center;
144144
}
145145

146146
[data-flex-justify="start"] {

components/date_picker/style.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
.header {
99
padding: 1.6 * $unit 2 * $unit;
1010
color: $datepicker-primary-contrast-color;
11-
background-color: $datepicker-primary-color;
1211
cursor: pointer;
12+
background-color: $datepicker-primary-color;
1313
}
1414

1515
.year {

components/form/style.scss

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
.root {
2-
& > :last-child {
3-
margin-bottom: 0 !important;
4-
}
1+
.root > :last-child {
2+
margin-bottom: 0;
53
}

components/input/style.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
color: $input-text-highlight-color;
4545
}
4646
}
47-
&:focus, &.filled, &[type='date'], &[type='time']{
47+
&:focus, &.filled, &[type='date'], &[type='time'] {
4848
~ .label:not(.fixed) {
4949
top: $input-focus-label-top;
5050
font-size: $input-label-font-size;

components/overlay/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class Overlay extends React.Component {
3636
const overlayStyle = {};
3737

3838
if (this.props.active) {
39-
if (this.props.opacity > 0) className += ` ${style.active}`;
39+
className += ` ${style.active}`;
4040
overlayStyle.opacity = this.props.opacity;
4141
}
4242
if (this.props.className) className += ` ${className}`;

components/progress_bar/style.scss

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
height: $progress-height;
99
overflow: hidden;
1010
background: $color-divider;
11-
1211
&.indeterminate .value {
1312
transform-origin: center center;
1413
animation: linear-indeterminate-bar 1s linear infinite;
@@ -33,7 +32,7 @@
3332

3433
.buffer {
3534
background-image: linear-gradient(to right, $progress-secondary-color, $progress-secondary-color),
36-
linear-gradient(to right, $progress-main-color, $progress-main-color);
35+
linear-gradient(to right, $progress-main-color, $progress-main-color);
3736
}
3837

3938
.circular {
@@ -42,21 +41,19 @@
4241
width: $circle-wrapper-width * 1px;
4342
height: $circle-wrapper-width * 1px;
4443
transform: rotate(-90deg);
45-
4644
&.indeterminate {
4745
.circle {
4846
animation: circular-indeterminate-bar-rotate 2s linear infinite;
4947
}
50-
5148
.path {
5249
animation: circular-indeterminate-bar-dash 1.5s ease-in-out infinite;
50+
5351
stroke-dasharray: $scale-ratio * 1, $scale-ratio * 200;
5452
stroke-dashoffset: 0;
5553
}
56-
5754
&.multicolor .path {
5855
animation: circular-indeterminate-bar-dash 1.5s ease-in-out infinite,
59-
colors (1.5s * 4) ease-in-out infinite;
56+
colors (1.5s * 4) ease-in-out infinite;
6057
}
6158
}
6259
}
@@ -68,13 +65,14 @@
6865

6966
.path {
7067
transition: stroke-dasharray $animation-duration $animation-curve-default;
68+
fill: none;
69+
7170
stroke-dasharray: 0, $scale-ratio * 200;
7271
stroke-dashoffset: 0;
7372
stroke-linecap: round;
7473
stroke-miterlimit: 20;
7574
stroke-width: 4;
7675
stroke: $progress-main-color;
77-
fill: none;
7876
}
7977

8078
@keyframes linear-indeterminate-bar {

0 commit comments

Comments
 (0)