Skip to content

Commit

Permalink
Fix stylelint
Browse files Browse the repository at this point in the history
  • Loading branch information
HarelM committed Dec 26, 2023
1 parent e2889b5 commit 49108b6
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 41 deletions.
4 changes: 2 additions & 2 deletions src/styles/_components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,12 @@
text-decoration: none;

&:hover {
background-color: lighten($color-midgray, 12);
background-color: color.adjust($color-midgray, 12);
color: $color-white;
}

&:disabled {
background-color: darken($color-midgray, 5);
background-color: color.adjust($color-midgray, -5);
color: $color-midgray;
cursor: not-allowed;
}
Expand Down
6 changes: 3 additions & 3 deletions src/styles/_filtereditor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
}

.maputnik-filter-editor {
@extend .clearfix;
@extend .clearfix; /* stylelint-disable-line */
color: $color-lowgray;
}

Expand Down Expand Up @@ -62,7 +62,7 @@
}

.maputnik-delete-filter {
@extend .maputnik-icon-button;
@extend .maputnik-icon-button; /* stylelint-disable-line */
}

.maputnik-filter-editor-block-action {
Expand All @@ -79,7 +79,7 @@
}

.maputnik-radio-as-button {
@extend .maputnik-button;
@extend .maputnik-button; /* stylelint-disable-line */

border: solid 1px transparent;

Expand Down
14 changes: 7 additions & 7 deletions src/styles/_input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
padding-right: $margin-2;
border: none;
background-color: $color-gray;
color: lighten($color-lowgray, 12);
color: color.adjust($color-lowgray, 12);

&:invalid {
border: solid 1px #B71C1C;
Expand All @@ -19,7 +19,7 @@
}

.maputnik-string {
@extend .maputnik-input;
@extend .maputnik-input; /* stylelint-disable-line */

&--multi {
resize: vertical;
Expand All @@ -43,12 +43,12 @@
}

.maputnik-number {
@extend .maputnik-input;
@extend .maputnik-input; /* stylelint-disable-line */
}

//COLOR PICKER
.maputnik-color {
@extend .maputnik-input;
@extend .maputnik-input; /* stylelint-disable-line */

height: 26px;
}
Expand Down Expand Up @@ -95,7 +95,7 @@

// SELECT
.maputnik-select {
@extend .maputnik-input;
@extend .maputnik-input; /* stylelint-disable-line */

-moz-appearance: none;
-webkit-appearance: none;
Expand All @@ -117,7 +117,7 @@
}

.maputnik-button-selected {
background-color: lighten($color-midgray, 12);
background-color: color.adjust($color-midgray, 12);
color: white;
}

Expand All @@ -133,7 +133,7 @@
outline: none;

&-wrapper {
@extend .maputnik-input;
@extend .maputnik-input; /* stylelint-disable-line */

padding-left: 0;
padding-right: 0;
Expand Down
26 changes: 13 additions & 13 deletions src/styles/_layer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
font-weight: 400;
color: $color-lowgray;
font-size: $font-size-6;
border-bottom-color: lighten($color-black, 0.1);
border-bottom-color: color.adjust($color-black, 0.1);
user-select: none;
list-style: none;
z-index: 2000;
Expand Down Expand Up @@ -87,7 +87,7 @@
height: 15px;

svg {
fill: darken($color-lowgray, 20);
fill: color.adjust($color-lowgray, -20);

&:hover {
fill: $color-white;
Expand All @@ -101,13 +101,13 @@

.maputnik-layer-list-item:hover,
.maputnik-layer-list-item-selected {
background-color: lighten($color-black, 2);
background-color: color.adjust($color-black, 2);

.maputnik-layer-list-icon-action {
display: block;

svg {
fill: darken($color-lowgray, 0.5);
fill: color.adjust($color-lowgray, -0.5);
}
}
}
Expand Down Expand Up @@ -151,7 +151,7 @@
border: solid 1px transparent;
font-size: $font-size-6;
color: $color-lowgray;
background-color: lighten($color-black, 2);
background-color: color.adjust($color-black, 2);
user-select: none;
padding: $margin-2;

Expand Down Expand Up @@ -185,7 +185,7 @@
.maputnik-layer-editor-group {
font-weight: bold;
font-size: $font-size-5;
background-color: lighten($color-black, 2);
background-color: color.adjust($color-black, 2);
color: $color-white;
cursor: pointer;
user-select: none;
Expand Down Expand Up @@ -232,34 +232,34 @@
// PROPERTY
.maputnik-default-property {
.maputnik-input-block-label {
color: darken($color-lowgray, 20%);
color: color.adjust($color-lowgray, -20%);
}

.maputnik-string,
.maputnik-number,
.maputnik-color,
.maputnik-select,
.maputnik-checkbox-wrapper {
background-color: darken($color-gray, 2%);
color: darken($color-lowgray, 20%);
background-color: color.adjust($color-gray, -2%);
color: color.adjust($color-lowgray, -20%);
}

.maputnik-make-zoom-function svg {
opacity: 0.4;
}

.maputnik-multibutton .maputnik-button {
background-color: darken($color-midgray, 10%);
color: darken($color-lowgray, 20%);
background-color: color.adjust($color-midgray, -10%);
color: color.adjust($color-lowgray, -20%);

&:hover {
background-color: lighten($color-midgray, 12);
background-color: color.adjust($color-midgray, 12);
color: $color-white;
}
}

.maputnik-multibutton .maputnik-button-selected {
background-color: darken($color-midgray, 2%);
background-color: color.adjust($color-midgray, -2%);
color: $color-lowgray;
}
}
Expand Down
12 changes: 6 additions & 6 deletions src/styles/_modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@
}

.maputnik-modal-header-space {
@extend .maputnik-space;
@extend .maputnik-space; /* stylelint-disable-line */
}

//OPEN MODAL
.maputnik-upload-button {
@extend .maputnik-big-button;
@extend .maputnik-big-button; /* stylelint-disable-line */
}

.maputnik-style-gallery-container {
Expand Down Expand Up @@ -139,12 +139,12 @@
}

.maputnik-add-layer {
@extend .clearfix;
@extend .clearfix; /* stylelint-disable-line */
}

//ADD MODAL
.maputnik-add-layer-button {
@extend .maputnik-big-button;
@extend .maputnik-big-button; /* stylelint-disable-line */

margin-right: $margin-3;
float: right;
Expand Down Expand Up @@ -221,7 +221,7 @@
}

.maputnik-add-source {
@extend .clearfix;
@extend .clearfix; /* stylelint-disable-line */

.maputnik-input-block-label {
width: 30%;
Expand All @@ -233,7 +233,7 @@
}

.maputnik-add-source-button {
@extend .maputnik-big-button;
@extend .maputnik-big-button; /* stylelint-disable-line */

display: inline-block;
margin-top: 0;
Expand Down
6 changes: 3 additions & 3 deletions src/styles/_toolbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
}

&:hover .maputnik-toolbar-link-wrapper {
background-color: lighten($color-midgray, 12);
background-color: color.adjust($color-midgray, 12);
color: $color-white;
}
}
Expand All @@ -93,13 +93,13 @@
.maputnik-toolbar-action {
background: inherit;
border-width: 0;
@extend .maputnik-toolbar-link;
@extend .maputnik-toolbar-link; /* stylelint-disable-line */
}

.maputnik-toolbar-select {
background: inherit;
border-width: 0;
@extend .maputnik-toolbar-link;
@extend .maputnik-toolbar-link; /* stylelint-disable-line */

select {
margin-left: 6px;
Expand Down
8 changes: 4 additions & 4 deletions src/styles/_zoomproperty.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
vertical-align: middle;
padding: 0 $margin-2 0 0;

@extend .maputnik-icon-button;
@extend .maputnik-icon-button; /* stylelint-disable-line */
}

// ZOOM PROPERTY
.maputnik-zoom-spec-property {
@extend .clearfix;
@extend .clearfix; /* stylelint-disable-line */
}

.maputnik-zoom-spec-property-label {
Expand Down Expand Up @@ -49,7 +49,7 @@
padding-top: 0;
vertical-align: middle;

@extend .maputnik-icon-button;
@extend .maputnik-icon-button; /* stylelint-disable-line */
}

.maputnik-add-stop {
Expand All @@ -65,7 +65,7 @@
vertical-align: middle;
padding: 0 $margin-2 0 0;

@extend .maputnik-icon-button;
@extend .maputnik-icon-button; /* stylelint-disable-line */
}

.maputnik-data-spec-property {
Expand Down
3 changes: 0 additions & 3 deletions src/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@
height: 14px;
}

.maputnik-data-spec-property {
}

.maputnik-data-fieldset-inner {
background: $color-black;
border: solid 1px $color-midgray;
Expand Down

0 comments on commit 49108b6

Please sign in to comment.