Skip to content

Commit

Permalink
Merge pull request #15 from vianetz/fix_stylelint
Browse files Browse the repository at this point in the history
Applied stylelint rules
  • Loading branch information
ma4nn authored Sep 23, 2023
2 parents 51d06aa + 028c589 commit dd306d5
Show file tree
Hide file tree
Showing 39 changed files with 225 additions and 74 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ node_modules/
yarn.lock
package-lock.json
.*
__snapshots__/__diff__/
__snapshots__/__updated__/
tests/snapshots/__diff__/
tests/snapshots/__updated__/
!.csscomb.json
!.gitignore
!.gitattributes
!.hound.yml
!.scss-lint.yml
!.stylelintignore
!.stylelintrc.json
1 change: 1 addition & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/_normalize.scss
5 changes: 4 additions & 1 deletion .stylelintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@
"declaration-empty-line-before": null,
"no-descending-specificity": null,
"number-max-precision": 8,
"scss/at-mixin-argumentless-call-parentheses": "always",
"scss/operator-no-unspaced": null,
"scss/dollar-variable-empty-line-before": null,
"selector-pseudo-element-colon-notation": "double",
"selector-class-pattern": "[\\-\\_a-z0-9]"
"selector-class-pattern": "[\\-\\_a-z0-9]",
"selector-not-notation": "simple",
"value-keyword-case": ["lower", {"camelCaseSvgKeywords": true} ]
}
}
6 changes: 2 additions & 4 deletions dist/spectre-exp.css
Original file line number Diff line number Diff line change
Expand Up @@ -585,13 +585,10 @@
background: rgba(48, 55, 66, .1);
border-color: transparent;
border-radius: 0;
bottom: 0;
display: none;
height: 100%;
left: 0;
inset: 0;
position: fixed;
right: 0;
top: 0;
width: 100%;
}
.off-canvas .off-canvas-sidebar:target,
Expand Down Expand Up @@ -801,6 +798,7 @@
}
.slider::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
background: #5755d9;
border: 0;
border-radius: 50%;
Expand Down
2 changes: 1 addition & 1 deletion dist/spectre-exp.min.css

Large diffs are not rendered by default.

15 changes: 3 additions & 12 deletions dist/spectre.css
Original file line number Diff line number Diff line change
Expand Up @@ -1476,12 +1476,9 @@ code {
.video-responsive object,
.video-responsive embed {
border: 0;
bottom: 0;
height: 100%;
left: 0;
inset: 0;
position: absolute;
right: 0;
top: 0;
width: 100%;
}

Expand Down Expand Up @@ -2463,18 +2460,15 @@ summary.accordion-header::-webkit-details-marker {

.modal {
align-items: center;
bottom: 0;
display: none;
-ms-flex-align: center;
-ms-flex-pack: center;
inset: 0;
justify-content: center;
left: 0;
opacity: 0;
overflow: hidden;
padding: .4rem;
position: fixed;
right: 0;
top: 0;
}
.modal:target,
.modal.active {
Expand All @@ -2486,13 +2480,10 @@ summary.accordion-header::-webkit-details-marker {
.modal:target .modal-overlay,
.modal.active .modal-overlay {
background: rgba(247, 248, 249, .75);
bottom: 0;
cursor: default;
display: block;
left: 0;
inset: 0;
position: absolute;
right: 0;
top: 0;
}
.modal:target .modal-container,
.modal.active .modal-container {
Expand Down
2 changes: 1 addition & 1 deletion dist/spectre.min.css

Large diffs are not rendered by default.

6 changes: 2 additions & 4 deletions docs/dist/spectre-exp.css
Original file line number Diff line number Diff line change
Expand Up @@ -585,13 +585,10 @@
background: rgba(48, 55, 66, .1);
border-color: transparent;
border-radius: 0;
bottom: 0;
display: none;
height: 100%;
left: 0;
inset: 0;
position: fixed;
right: 0;
top: 0;
width: 100%;
}
.off-canvas .off-canvas-sidebar:target,
Expand Down Expand Up @@ -801,6 +798,7 @@
}
.slider::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
background: #5755d9;
border: 0;
border-radius: 50%;
Expand Down
2 changes: 1 addition & 1 deletion docs/dist/spectre-exp.min.css

Large diffs are not rendered by default.

21 changes: 5 additions & 16 deletions docs/dist/spectre-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -1477,12 +1477,9 @@ code {
.video-responsive object,
.video-responsive embed {
border: 0;
bottom: 0;
height: 100%;
left: 0;
inset: 0;
position: absolute;
right: 0;
top: 0;
width: 100%;
}

Expand Down Expand Up @@ -2464,18 +2461,15 @@ summary.accordion-header::-webkit-details-marker {

.modal {
align-items: center;
bottom: 0;
display: none;
-ms-flex-align: center;
-ms-flex-pack: center;
inset: 0;
justify-content: center;
left: 0;
opacity: 0;
overflow: hidden;
padding: .4rem;
position: fixed;
right: 0;
top: 0;
}
.modal:target,
.modal.active {
Expand All @@ -2487,13 +2481,10 @@ summary.accordion-header::-webkit-details-marker {
.modal:target .modal-overlay,
.modal.active .modal-overlay {
background: rgba(247, 248, 249, .75);
bottom: 0;
cursor: default;
display: block;
left: 0;
inset: 0;
position: absolute;
right: 0;
top: 0;
}
.modal:target .modal-container,
.modal.active .modal-container {
Expand Down Expand Up @@ -4166,13 +4157,10 @@ a.text-error:visited {
background: rgba(48, 55, 66, .1);
border-color: transparent;
border-radius: 0;
bottom: 0;
display: none;
height: 100%;
left: 0;
inset: 0;
position: fixed;
right: 0;
top: 0;
width: 100%;
}
.off-canvas .off-canvas-sidebar:target,
Expand Down Expand Up @@ -4382,6 +4370,7 @@ a.text-error:visited {
}
.slider::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
background: #5755d9;
border: 0;
border-radius: 50%;
Expand Down
2 changes: 1 addition & 1 deletion docs/dist/spectre-rtl.min.css

Large diffs are not rendered by default.

15 changes: 3 additions & 12 deletions docs/dist/spectre.css
Original file line number Diff line number Diff line change
Expand Up @@ -1476,12 +1476,9 @@ code {
.video-responsive object,
.video-responsive embed {
border: 0;
bottom: 0;
height: 100%;
left: 0;
inset: 0;
position: absolute;
right: 0;
top: 0;
width: 100%;
}

Expand Down Expand Up @@ -2463,18 +2460,15 @@ summary.accordion-header::-webkit-details-marker {

.modal {
align-items: center;
bottom: 0;
display: none;
-ms-flex-align: center;
-ms-flex-pack: center;
inset: 0;
justify-content: center;
left: 0;
opacity: 0;
overflow: hidden;
padding: .4rem;
position: fixed;
right: 0;
top: 0;
}
.modal:target,
.modal.active {
Expand All @@ -2486,13 +2480,10 @@ summary.accordion-header::-webkit-details-marker {
.modal:target .modal-overlay,
.modal.active .modal-overlay {
background: rgba(247, 248, 249, .75);
bottom: 0;
cursor: default;
display: block;
left: 0;
inset: 0;
position: absolute;
right: 0;
top: 0;
}
.modal:target .modal-container,
.modal.active .modal-container {
Expand Down
2 changes: 1 addition & 1 deletion docs/dist/spectre.min.css

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/_animations.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
0% {
transform: rotate(0deg);
}

100% {
transform: rotate(360deg);
}
Expand All @@ -15,6 +16,7 @@
opacity: 0;
transform: translateY(-(variables.$unit-8));
}

100% {
opacity: 1;
transform: translateY(0);
Expand Down
3 changes: 3 additions & 0 deletions src/_avatars.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,15 @@
&.avatar-xs {
@include avatar.avatar-base(variables.$unit-4);
}

&.avatar-sm {
@include avatar.avatar-base(variables.$unit-6);
}

&.avatar-lg {
@include avatar.avatar-base(variables.$unit-12);
}

&.avatar-xl {
@include avatar.avatar-base(variables.$unit-16);
}
Expand Down
2 changes: 2 additions & 0 deletions src/_badges.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
transform: translate(-.05rem, -.5rem);
}
}

&[data-badge] {
&::after {
font-size: variables.$font-size-sm;
Expand All @@ -29,6 +30,7 @@
white-space: nowrap;
}
}

&:not([data-badge]),
&[data-badge=""] {
&::after {
Expand Down
2 changes: 2 additions & 0 deletions src/_bars.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
border-bottom-left-radius: variables.$border-radius;
border-top-left-radius: variables.$border-radius;
}

&:last-child {
border-bottom-right-radius: variables.$border-radius;
border-top-right-radius: variables.$border-radius;
Expand All @@ -48,6 +49,7 @@
left: 0;
padding: 0;
position: absolute;

&:not(:last-child):first-child {
background: variables.$bg-color-dark;
z-index: variables.$zindex-0;
Expand Down
Loading

0 comments on commit dd306d5

Please sign in to comment.