Skip to content

Commit

Permalink
chore: remove unnecessary importants
Browse files Browse the repository at this point in the history
  • Loading branch information
Yizack committed Jun 29, 2024
1 parent 82cc1e0 commit ba306df
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 23 deletions.
4 changes: 1 addition & 3 deletions .config/nuxt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ export default defineNuxtConfig({
}
},
css: [
"~/assets/scss/app.scss",
"leaflet/dist/leaflet.css",
"@vuepic/vue-datepicker/dist/main.css"
"~/assets/scss/app.scss"
],
modules: [
"@nuxt/eslint",
Expand Down
6 changes: 3 additions & 3 deletions app/assets/scss/_datepicker.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/* stylelint-disable selector-class-pattern */

.dp__theme_dark {
--dp-primary-color: var(--bs-primary)!important;
--dp-primary-text-color: var(--bs-body-bg)!important;
--dp-primary-color: var(--bs-primary);
--dp-primary-text-color: var(--bs-body-bg);
}

.dp__theme_light {
--dp-primary-color: var(--bs-primary)!important;
--dp-primary-color: var(--bs-primary);
}

.dp__action_button {
Expand Down
34 changes: 17 additions & 17 deletions app/assets/scss/_leaflet.scss
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
.leaflet-control-container a {
text-decoration: none!important;
text-decoration: none;
}

.leaflet-control-layers {
border-radius: var(--bs-border-radius-lg)!important;
overflow: hidden!important;
border-radius: var(--bs-border-radius-lg);
overflow: hidden;
}

.leaflet-control-zoom.leaflet-bar.leaflet-control {
border-radius: var(--bs-border-radius-lg)!important;
overflow: hidden!important;
border-radius: var(--bs-border-radius-lg);
overflow: hidden;
}

.leaflet-control-layers-toggle {
background-color: var(--bs-secondary);
background-color: var(--bs-body-bg);
}

.leaflet-control-layers-selector {
Expand All @@ -40,7 +40,7 @@
}

.leaflet-control-layers-selector:checked {
background-color: var(--bs-primary)!important;
background-color: var(--bs-primary);
border-color: var(--bs-primary);
}

Expand All @@ -50,26 +50,26 @@

.leaflet-control-attribution {
background-color: var(--bs-body-bg)!important;
color: var(--bs-body-color)!important;
color: var(--bs-body-color);
}

.leaflet-control-attribution a {
color: var(--bs-link-color)!important;
color: var(--bs-link-color);
}

.leaflet-popup-content-wrapper, .leaflet-popup-tip {
background: var(--bs-body-bg)!important;
color: var(--bs-body-color)!important;
box-shadow: 0 3px 14px rgba(var(--bs-body-color-rgb), 0.2)!important;
background: var(--bs-body-bg);
color: var(--bs-body-color);
box-shadow: 0 3px 14px rgba(var(--bs-body-color-rgb), 0.2);
}

.leaflet-container a.leaflet-popup-close-button {
color: var(--bs-body-color)!important;
color: var(--bs-body-color);
}

.leaflet-control-layers-expanded {
color: var(--bd-body-bg)!important;
background: var(--bs-body-bg)!important;
color: var(--bd-body-bg);
background: var(--bs-body-bg);
}

@include color-mode(light) {
Expand All @@ -78,7 +78,7 @@
}

.leaflet-control-layers-toggle {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24'%3E%3Cg fill='%23000'%3E%3Cpath fill-rule='evenodd' d='M12 2c4.714 0 7.071 0 8.535 1.464c.504.504.835 1.114 1.052 1.889L5.353 21.587c-.775-.217-1.385-.548-1.889-1.052C2 19.072 2 16.714 2 12s0-7.071 1.464-8.536C4.93 2 7.286 2 12 2ZM5.5 8.757c0 1.785 1.117 3.868 2.86 4.613c.406.173.874.173 1.28 0c1.743-.745 2.86-2.828 2.86-4.613C12.5 6.958 10.933 5.5 9 5.5S5.5 6.958 5.5 8.757Z' clip-rule='evenodd'/%3E%3Cpath d='M10.5 9a1.5 1.5 0 1 1-3 0a1.5 1.5 0 0 1 3 0Z'/%3E%3Cpath d='M21.89 7.172C22 8.433 22 10.006 22 12c0 4.134 0 6.455-.987 7.951L15.06 14l6.828-6.828Zm-1.938 13.84l-5.951-5.951l-6.83 6.828c1.262.111 2.835.111 4.83.111c4.134 0 6.455 0 7.951-.988Z' opacity='.5'/%3E%3C/g%3E%3C/svg%3E")!important;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24'%3E%3Cg fill='%23000'%3E%3Cpath fill-rule='evenodd' d='M12 2c4.714 0 7.071 0 8.535 1.464c.504.504.835 1.114 1.052 1.889L5.353 21.587c-.775-.217-1.385-.548-1.889-1.052C2 19.072 2 16.714 2 12s0-7.071 1.464-8.536C4.93 2 7.286 2 12 2ZM5.5 8.757c0 1.785 1.117 3.868 2.86 4.613c.406.173.874.173 1.28 0c1.743-.745 2.86-2.828 2.86-4.613C12.5 6.958 10.933 5.5 9 5.5S5.5 6.958 5.5 8.757Z' clip-rule='evenodd'/%3E%3Cpath d='M10.5 9a1.5 1.5 0 1 1-3 0a1.5 1.5 0 0 1 3 0Z'/%3E%3Cpath d='M21.89 7.172C22 8.433 22 10.006 22 12c0 4.134 0 6.455-.987 7.951L15.06 14l6.828-6.828Zm-1.938 13.84l-5.951-5.951l-6.83 6.828c1.262.111 2.835.111 4.83.111c4.134 0 6.455 0 7.951-.988Z' opacity='.5'/%3E%3C/g%3E%3C/svg%3E");
}

}
Expand All @@ -95,6 +95,6 @@
}

.leaflet-control-layers-toggle {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24'%3E%3Cg fill='%23fff' %3E%3Cpath fill-rule='evenodd' d='M12 2c4.714 0 7.071 0 8.535 1.464c.504.504.835 1.114 1.052 1.889L5.353 21.587c-.775-.217-1.385-.548-1.889-1.052C2 19.072 2 16.714 2 12s0-7.071 1.464-8.536C4.93 2 7.286 2 12 2ZM5.5 8.757c0 1.785 1.117 3.868 2.86 4.613c.406.173.874.173 1.28 0c1.743-.745 2.86-2.828 2.86-4.613C12.5 6.958 10.933 5.5 9 5.5S5.5 6.958 5.5 8.757Z' clip-rule='evenodd'/%3E%3Cpath d='M10.5 9a1.5 1.5 0 1 1-3 0a1.5 1.5 0 0 1 3 0Z'/%3E%3Cpath d='M21.89 7.172C22 8.433 22 10.006 22 12c0 4.134 0 6.455-.987 7.951L15.06 14l6.828-6.828Zm-1.938 13.84l-5.951-5.951l-6.83 6.828c1.262.111 2.835.111 4.83.111c4.134 0 6.455 0 7.951-.988Z' opacity='.5'/%3E%3C/g%3E%3C/svg%3E")!important;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24'%3E%3Cg fill='%23fff' %3E%3Cpath fill-rule='evenodd' d='M12 2c4.714 0 7.071 0 8.535 1.464c.504.504.835 1.114 1.052 1.889L5.353 21.587c-.775-.217-1.385-.548-1.889-1.052C2 19.072 2 16.714 2 12s0-7.071 1.464-8.536C4.93 2 7.286 2 12 2ZM5.5 8.757c0 1.785 1.117 3.868 2.86 4.613c.406.173.874.173 1.28 0c1.743-.745 2.86-2.828 2.86-4.613C12.5 6.958 10.933 5.5 9 5.5S5.5 6.958 5.5 8.757Z' clip-rule='evenodd'/%3E%3Cpath d='M10.5 9a1.5 1.5 0 1 1-3 0a1.5 1.5 0 0 1 3 0Z'/%3E%3Cpath d='M21.89 7.172C22 8.433 22 10.006 22 12c0 4.134 0 6.455-.987 7.951L15.06 14l6.828-6.828Zm-1.938 13.84l-5.951-5.951l-6.83 6.828c1.262.111 2.835.111 4.83.111c4.134 0 6.455 0 7.951-.988Z' opacity='.5'/%3E%3C/g%3E%3C/svg%3E");
}
}
2 changes: 2 additions & 0 deletions app/assets/scss/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
@import "navbar";
@import "form";
@import "markers";
@import "leaflet/dist/leaflet.css";
@import "leaflet";
@import "map";
@import "@vuepic/vue-datepicker/dist/main.css";
@import "datepicker";

0 comments on commit ba306df

Please sign in to comment.