refactor: fix eslint rules

This commit is contained in:
Herculino Trotta
2024-11-17 21:46:15 -03:00
parent 369b294ee5
commit 781bf6846b
5 changed files with 79 additions and 156 deletions

View File

@@ -1,6 +1,7 @@
@import 'bootstrap/scss/functions';
@use "sass:map";
@import "bootstrap/scss/functions";
@import "variables";
@import "_variables";
// Import all of Bootstrap's CSS
@import "bootstrap/scss/bootstrap";
@@ -9,24 +10,23 @@
font-weight: bold;
}
$theme-colors: map-merge($theme-colors, (
"primary": $primary
));
$theme-colors: map.merge(
$theme-colors,
(
"primary": $primary
)
);
@media all and (min-width: 992px) {
.navbar .nav-item .dropdown-menu {
display: none;
margin-top: 0;
}
.navbar .nav-item:hover .dropdown-menu {
display: block;
left: 0;
}
.navbar .nav-item .dropdown-menu {
margin-top: 0;
}
}
.table .col-auto {
@@ -35,66 +35,17 @@ $theme-colors: map-merge($theme-colors, (
}
.offcanvas-size-xl {
--#{$prefix}offcanvas-width: min(95vw, 700px) !important;
--#{$prefix}offcanvas-width: min(95vw, 700px) !important;
}
.offcanvas-size-xxl {
--#{$prefix}offcanvas-width: min(95vw, 90vw) !important;
--#{$prefix}offcanvas-width: min(95vw, 90vw) !important;
}
.offcanvas-size-md { /* add Responsivenes to default offcanvas */
--#{$prefix}offcanvas-width: min(95vw, 400px) !important;
--#{$prefix}offcanvas-width: min(95vw, 400px) !important;
}
.offcanvas-size-sm {
--#{$prefix}offcanvas-width: min(95vw, 250px) !important;
}
@media only screen and (max-width: 800px) {
/* Force table to not be like tables anymore */
.no-more-tables table,
.no-more-tables thead,
.no-more-tables tbody,
.no-more-tables th,
.no-more-tables td,
.no-more-tables tr {
display: block;
}
/* Hide table headers (but not display: none;, for accessibility) */
.no-more-tables thead tr {
position: absolute;
top: -9999px;
left: -9999px;
}
.no-more-tables tr { border: 1px solid #ccc; }
.no-more-tables td {
/* Behave like a "row" */
border: none;
border-bottom: 1px solid #eee;
position: relative;
padding-left: 50%;
white-space: normal;
text-align:left;
}
.no-more-tables td:before {
/* Now like a table header */
position: absolute;
/* Top/left values mimic padding */
top: 6px;
left: 6px;
width: 45%;
padding-right: 10px;
white-space: nowrap;
text-align:left;
font-weight: bold;
}
/*
Label the data
*/
.no-more-tables td:before {
content: attr(data-title);
}
--#{$prefix}offcanvas-width: min(95vw, 250px) !important;
}