capibara 1.3.67 → 1.3.69

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/PLAN_MIGRACION_VITE.md +9 -7
  2. package/cuarteles.html +1 -0
  3. package/dev/bootstrap.js +13 -0
  4. package/dist/index.js +568 -24941
  5. package/index.html +1 -0
  6. package/minimal.html +1 -0
  7. package/package.json +9 -25
  8. package/src/scss/abstracts/_functions.scss +7 -3
  9. package/src/scss/base/_scroll.scss +3 -0
  10. package/src/scss/components/_buttons.scss +3 -0
  11. package/src/scss/components/_floatbox.scss +3 -0
  12. package/src/scss/components/_input_nav.scss +9 -5
  13. package/src/scss/components/_light.scss +3 -0
  14. package/src/scss/components/_select.scss +3 -0
  15. package/src/scss/layout/_capibara.scss +3 -0
  16. package/src/scss/layout/_containerTl.scss +3 -0
  17. package/src/scss/layout/_contextMenu.scss +8 -1
  18. package/src/scss/layout/_corner.scss +22 -2
  19. package/src/scss/layout/_cornerFooter.scss +3 -0
  20. package/src/scss/layout/_detail_day.scss +4 -0
  21. package/src/scss/layout/_footer.scss +3 -0
  22. package/src/scss/layout/_header.scss +3 -0
  23. package/src/scss/layout/_headerTop.scss +3 -0
  24. package/src/scss/layout/_mobileFooter.scss +3 -0
  25. package/src/scss/layout/_nav.scss +3 -0
  26. package/src/scss/style.scss +35 -35
  27. package/src/scss/themes/_color_themes.scss +42 -40
  28. package/src/scss/themes/_themes.scss +2 -2
  29. package/src/util/tableElements.js +6 -3
  30. package/vite.config.js +39 -0
  31. package/babelrc.config.js +0 -14
  32. package/dist/cuarteles.html +0 -29
  33. package/dist/index.html +0 -27
  34. package/dist/index.js.map +0 -1
  35. package/dist/minimal.html +0 -19
  36. package/scripts/build.js +0 -41
  37. package/scripts/fixOpensslHash.js +0 -21
  38. package/webpack.config.js +0 -71
package/index.html CHANGED
@@ -19,6 +19,7 @@
19
19
  <body>
20
20
  <div id="timeline"></div>
21
21
  <!-- plugin initialization -->
22
+ <script type="module" src="/dev/bootstrap.js"></script>
22
23
  <script src="config.js"></script>
23
24
  <script src="data.js"></script>
24
25
  <script src="app.js"></script>
package/minimal.html CHANGED
@@ -11,6 +11,7 @@
11
11
  <body>
12
12
  <div id="timeline"></div>
13
13
  <!-- plugin initialization -->
14
+ <script type="module" src="/dev/bootstrap.js"></script>
14
15
  <script src="config_minimal.js"></script>
15
16
  <script src="data_minimal.js"></script>
16
17
  <script src="app_minimal.js"></script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "capibara",
3
- "version": "1.3.67",
3
+ "version": "1.3.69",
4
4
  "main": "dist/index.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -11,39 +11,23 @@
11
11
  "homepage": "https://bitbucket.org/irricrops/capibara#readme",
12
12
  "description": "Timeline irricrops capibara",
13
13
  "scripts": {
14
- "build": "NODE_ENV=production node --require ./scripts/fixOpensslHash.js scripts/build.js",
15
- "build-dev": "node --require ./scripts/fixOpensslHash.js scripts/build.js --watch",
16
- "start": "NODE_OPTIONS=--openssl-legacy-provider webpack-dev-server --host 0.0.0.0 --progress --color"
14
+ "dev": "vite",
15
+ "build": "vite build",
16
+ "preview": "vite preview"
17
17
  },
18
18
  "keywords": [],
19
19
  "devDependencies": {
20
- "@babel/core": "^7.14.0",
21
- "@babel/plugin-proposal-class-properties": "^7.12.1",
22
- "@babel/plugin-proposal-decorators": "^7.12.1",
23
- "@babel/plugin-proposal-export-default-from": "^7.12.1",
24
- "@babel/plugin-proposal-object-rest-spread": "^7.12.1",
25
- "@babel/plugin-transform-arrow-functions": "^7.12.1",
26
- "@babel/plugin-transform-async-to-generator": "^7.12.1",
27
- "@babel/plugin-transform-runtime": "^7.12.1",
28
- "@babel/preset-env": "^7.14.0",
29
20
  "autoprefixer": "^9.8.6",
30
- "babel-loader": "^8.2.2",
31
- "config": "^3.3.3",
32
- "css-loader": "^3.6.0",
33
21
  "cssnano": "^4.1.10",
34
- "html-webpack-plugin": "^3.2.0",
35
22
  "iconify": "^1.3.0",
36
23
  "mdi": "^2.2.43",
37
- "postcss-loader": "^3.0.0",
38
24
  "prettier": "3.0.0",
39
- "sass": "^1.44.0",
40
- "sass-loader": "^8.0.2",
41
- "style-loader": "^1.3.0",
42
- "webpack": "^4.46.0",
43
- "webpack-cli": "^3.3.12",
44
- "webpack-dev-server": "^3.11.2"
25
+ "sass": "^1.99.0",
26
+ "vite": "^6.4.3",
27
+ "vite-plugin-css-injected-by-js": "^4.0.1"
45
28
  },
46
29
  "dependencies": {
47
- "22": "^0.0.0"
30
+ "22": "^0.0.0",
31
+ "lodash": "^4.18.1"
48
32
  }
49
33
  }
@@ -1,9 +1,11 @@
1
1
  @use "sass:math";
2
+ @use "sass:map";
3
+ @use "sass:color";
2
4
 
3
5
  @function mapGet($map, $list...) {
4
6
  @each $key in $list {
5
7
  @if $map {
6
- $map: map-get($map, $key);
8
+ $map: map.get($map, $key);
7
9
  }
8
10
  }
9
11
  @if $map {
@@ -18,7 +20,7 @@
18
20
  // si devuelve null, el atributo no sera agregado por sass al compilar
19
21
  @function setTransparent($color, $opacity) {
20
22
  @if $color {
21
- @return transparentize($color, $opacity);
23
+ @return color.adjust($color, $alpha: -$opacity);
22
24
  }
23
25
  @return null;
24
26
  }
@@ -32,7 +34,9 @@
32
34
  $colorFont: $white;
33
35
  $sum: round(
34
36
  math.div(
35
- ((red($color) * 299) + (green($color) * 587) + (blue($color)) * 114),
37
+ ((color.channel($color, "red", $space: rgb) * 299) +
38
+ (color.channel($color, "green", $space: rgb) * 587) +
39
+ (color.channel($color, "blue", $space: rgb)) * 114),
36
40
  1000
37
41
  )
38
42
  );
@@ -1,3 +1,6 @@
1
+ @use "themes/themes" as *;
2
+ @use "abstracts/functions" as *;
3
+
1
4
  .capibara {
2
5
  scrollbar-width: auto; //firefox
3
6
 
@@ -1,3 +1,6 @@
1
+ @use "themes/themes" as *;
2
+ @use "abstracts/functions" as *;
3
+
1
4
  .capibara {
2
5
  button {
3
6
  outline: none;
@@ -1,3 +1,6 @@
1
+ @use "themes/themes" as *;
2
+ @use "abstracts/functions" as *;
3
+
1
4
  .capibara {
2
5
  .float-box-container {
3
6
  overflow: visible;
@@ -1,3 +1,7 @@
1
+ @use "sass:color";
2
+ @use "themes/themes" as *;
3
+ @use "abstracts/functions" as *;
4
+
1
5
  .capibara {
2
6
  .hour-input {
3
7
  border: 1px solid grey;
@@ -438,7 +442,7 @@
438
442
  }
439
443
 
440
444
  input.nav-input {
441
- border: 2px solid transparentize(grey, 0.3);
445
+ border: 2px solid color.adjust(grey, $alpha: -0.3);
442
446
  border-radius: 6px;
443
447
  //width: 70%;
444
448
  width: 100%;
@@ -454,7 +458,7 @@
454
458
  &:focus,
455
459
  &:active {
456
460
  border: 2px solid grey;
457
- box-shadow: 0px 4px 6px transparentize(grey, 0.8);
461
+ box-shadow: 0px 4px 6px color.adjust(grey, $alpha: -0.8);
458
462
  }
459
463
  &.small {
460
464
  font-size: 1.3em;
@@ -462,7 +466,7 @@
462
466
  }
463
467
 
464
468
  .nav-input-file {
465
- border: 2px solid transparentize(grey, 0.3);
469
+ border: 2px solid color.adjust(grey, $alpha: -0.3);
466
470
  border-radius: 6px;
467
471
  width: 70%;
468
472
  min-width: 130px;
@@ -475,7 +479,7 @@
475
479
  &:focus,
476
480
  &:active {
477
481
  border: 2px solid grey;
478
- box-shadow: 0px 4px 6px transparentize(grey, 0.8);
482
+ box-shadow: 0px 4px 6px color.adjust(grey, $alpha: -0.8);
479
483
  }
480
484
  label {
481
485
  flex: 1 1 auto;
@@ -510,7 +514,7 @@
510
514
  box-sizing: border-box;
511
515
  &:focus,
512
516
  &:active {
513
- box-shadow: 0px 4px 6px transparentize(#ffa000, 0.8);
517
+ box-shadow: 0px 4px 6px color.adjust(#ffa000, $alpha: -0.8);
514
518
  }
515
519
  }
516
520
  }
@@ -1,3 +1,6 @@
1
+ @use "themes/themes" as *;
2
+ @use "abstracts/functions" as *;
3
+
1
4
  .capibara {
2
5
  .light {
3
6
  //semaforo
@@ -1,3 +1,6 @@
1
+ @use "themes/themes" as *;
2
+ @use "abstracts/functions" as *;
3
+
1
4
  .capibara {
2
5
  .tab-select-container {
3
6
  position: relative;
@@ -1,3 +1,6 @@
1
+ @use "themes/themes" as *;
2
+ @use "abstracts/functions" as *;
3
+
1
4
  .capibara {
2
5
  position: relative;
3
6
  font-family: "Roboto", sans-serif;
@@ -1,3 +1,6 @@
1
+ @use "themes/themes" as *;
2
+ @use "abstracts/functions" as *;
3
+
1
4
  .capibara {
2
5
  .container-tl {
3
6
  width: 100%;
@@ -1,3 +1,6 @@
1
+ @use "themes/themes" as *;
2
+ @use "abstracts/functions" as *;
3
+
1
4
  .capibara {
2
5
  .cap-context-menu-container {
3
6
  position: absolute;
@@ -128,7 +131,11 @@
128
131
  background: mapGet($theme, detailDay, background);
129
132
  }
130
133
  .cap-context-menu_item.is-section-label {
131
- color: rgba(mapGet($theme, color), if($nameTheme == "", 0.85, 0.6));
134
+ $section-label-alpha: 0.6;
135
+ @if $nameTheme == "" {
136
+ $section-label-alpha: 0.85;
137
+ }
138
+ color: rgba(mapGet($theme, color), $section-label-alpha);
132
139
  }
133
140
  .cap-context-menu_item.is-divider {
134
141
  border-bottom-color: rgba(mapGet($theme, color), 0.2);
@@ -1,3 +1,6 @@
1
+ @use "themes/themes" as *;
2
+ @use "abstracts/functions" as *;
3
+
1
4
  .capibara {
2
5
  .corner {
3
6
  position: absolute;
@@ -63,8 +66,25 @@
63
66
  // columna siguiente (Riego Nominal, etc).
64
67
  width: calc(var(--nav-width) - 16px);
65
68
  box-sizing: border-box;
66
- display: inline-flex;
67
- align-items: center;
69
+ display: flex;
70
+ flex-direction: column;
71
+ align-items: flex-start;
72
+ }
73
+
74
+ .corner-group-select-label {
75
+ display: block;
76
+ font-size: 10px;
77
+ font-weight: 600;
78
+ text-transform: uppercase;
79
+ letter-spacing: 0.03em;
80
+ opacity: 0.7;
81
+ line-height: 1;
82
+ margin-bottom: 3px;
83
+ }
84
+
85
+ .corner-group-select-wrap {
86
+ position: relative;
87
+ width: 100%;
68
88
 
69
89
  &::after {
70
90
  content: "";
@@ -1,3 +1,6 @@
1
+ @use "themes/themes" as *;
2
+ @use "abstracts/functions" as *;
3
+
1
4
  .capibara {
2
5
  .corner-footer {
3
6
  position: sticky;
@@ -1,3 +1,7 @@
1
+ @use "themes/themes" as *;
2
+ @use "abstracts/functions" as *;
3
+ @use "abstracts/colors" as *;
4
+
1
5
  .capibara {
2
6
  .detail-day {
3
7
  min-height: 50px;
@@ -1,3 +1,6 @@
1
+ @use "themes/themes" as *;
2
+ @use "abstracts/functions" as *;
3
+
1
4
  .capibara .container-tl {
2
5
  footer {
3
6
  width: fit-content;
@@ -1,3 +1,6 @@
1
+ @use "themes/themes" as *;
2
+ @use "abstracts/functions" as *;
3
+
1
4
  .capibara {
2
5
  .container-tl {
3
6
  header {
@@ -1,3 +1,6 @@
1
+ @use "themes/themes" as *;
2
+ @use "abstracts/functions" as *;
3
+
1
4
  .capibara {
2
5
  .header-top {
3
6
  position: relative;
@@ -1,3 +1,6 @@
1
+ @use "themes/themes" as *;
2
+ @use "abstracts/functions" as *;
3
+
1
4
  .capibara {
2
5
 
3
6
  // Layout flex para que el footer empuje el contenido (redimensiona la planilla)
@@ -1,3 +1,6 @@
1
+ @use "themes/themes" as *;
2
+ @use "abstracts/functions" as *;
3
+
1
4
  .capibara {
2
5
  nav.right {
3
6
  position: absolute;
@@ -1,42 +1,42 @@
1
- @import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;0,900;1,300;1,400;1,500;1,700;1,900&display=swap");
2
-
3
1
  //metodology
4
2
  //https://github.com/suitcss/suit/blob/master/doc/README.md
5
3
 
6
- @import "abstracts/variables";
7
- @import "abstracts/colors";
8
- @import "abstracts/animations";
4
+ @use "abstracts/variables" as *;
5
+ @use "abstracts/colors" as *;
6
+ @use "abstracts/animations" as *;
9
7
 
10
- @import "themes/themes";
11
- @import "themes/color_themes";
8
+ @use "themes/themes" as *;
9
+ @use "themes/color_themes" as *;
12
10
 
13
- @import "base/reset";
14
- @import "base/utils";
15
- @import "base/utils_mobile";
16
- @import "base/scroll";
11
+ @use "base/reset" as *;
12
+ @use "base/utils" as *;
13
+ @use "base/utils_mobile" as *;
14
+ @use "base/scroll" as *;
17
15
 
18
- @import "layout/capibara";
19
- @import "layout/containerTl";
20
- @import "layout/todayLine";
21
- @import "layout/corner";
22
- @import "layout/headerTop";
23
- @import "layout/cornerFooter";
24
- @import "layout/nav";
25
- @import "layout/header";
26
- @import "layout/plotContainer";
27
- @import "layout/footer";
28
- @import "layout/mobileFooter";
29
- @import "layout/table";
30
- @import "layout/selectContainer";
31
- @import "layout/detail_day";
32
- @import "layout/contextMenu";
16
+ @use "layout/capibara" as *;
17
+ @use "layout/containerTl" as *;
18
+ @use "layout/todayLine" as *;
19
+ @use "layout/corner" as *;
20
+ @use "layout/headerTop" as *;
21
+ @use "layout/cornerFooter" as *;
22
+ @use "layout/nav" as *;
23
+ @use "layout/header" as *;
24
+ @use "layout/plotContainer" as *;
25
+ @use "layout/footer" as *;
26
+ @use "layout/mobileFooter" as *;
27
+ @use "layout/table" as *;
28
+ @use "layout/selectContainer" as *;
29
+ @use "layout/detail_day" as *;
30
+ @use "layout/contextMenu" as *;
33
31
 
34
- @import "components/input_nav";
35
- @import "components/buttons";
36
- @import "components/tooltip";
37
- @import "components/floatbox";
38
- @import "components/loading";
39
- @import "components/icons";
40
- @import "components/light";
41
- @import "components/select";
42
- @import "shame";
32
+ @use "components/input_nav" as *;
33
+ @use "components/buttons" as *;
34
+ @use "components/tooltip" as *;
35
+ @use "components/floatbox" as *;
36
+ @use "components/loading" as *;
37
+ @use "components/icons" as *;
38
+ @use "components/light" as *;
39
+ @use "components/select" as *;
40
+ @use "shame" as *;
41
+
42
+ @import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;0,900;1,300;1,400;1,500;1,700;1,900&display=swap");
@@ -1,4 +1,6 @@
1
- @import "abstracts/functions";
1
+ @use "sass:color";
2
+ @use "abstracts/functions" as *;
3
+ @use "abstracts/colors" as *;
2
4
 
3
5
  .capibara {
4
6
  @each $colorName, $color in $dd_colors {
@@ -6,32 +8,32 @@
6
8
 
7
9
  //no dark
8
10
  &.#{$colorName}:not(.dark-theme) {
9
- scrollbar-color: desaturate($color, 20) transparent;
11
+ scrollbar-color: color.adjust($color, $saturation: -20%) transparent;
10
12
 
11
13
  ::-webkit-scrollbar-thumb {
12
- background: desaturate($color, 20);
14
+ background: color.adjust($color, $saturation: -20%);
13
15
  }
14
16
 
15
17
  .header-top {
16
- background: lighten(desaturate($color, 50), 40);
18
+ background: color.adjust(color.adjust($color, $saturation: -50%), $lightness: 40%);
17
19
  }
18
20
 
19
21
  .corner {
20
- background: lighten(desaturate($color, 50), 40);
21
- border-color: lighten($color, 20);
22
+ background: color.adjust(color.adjust($color, $saturation: -50%), $lightness: 40%);
23
+ border-color: color.adjust($color, $lightness: 20%);
22
24
  }
23
25
 
24
26
  .container-tl {
25
27
  header {
26
- background: lighten(desaturate($color, 50), 40);
27
- border-bottom-color: lighten($color, 20);
28
+ background: color.adjust(color.adjust($color, $saturation: -50%), $lightness: 40%);
29
+ border-bottom-color: color.adjust($color, $lightness: 20%);
28
30
  .mes {
29
31
  &.mes-reduced {
30
32
  &:after {
31
33
  background: linear-gradient(
32
34
  90deg,
33
35
  rgba(0, 0, 0, 0) 0%,
34
- lighten(desaturate($color, 50), 40) 100%
36
+ color.adjust(color.adjust($color, $saturation: -50%), $lightness: 40%) 100%
35
37
  ) !important;
36
38
  }
37
39
  }
@@ -40,24 +42,24 @@
40
42
  }
41
43
 
42
44
  nav.right {
43
- border-color: lighten($color, 20);
45
+ border-color: color.adjust($color, $lightness: 20%);
44
46
  }
45
47
  }
46
48
 
47
49
  //only dark
48
50
  &.#{$colorName}.dark-theme {
49
51
  .header-top {
50
- border-color: darken($color, 20);
52
+ border-color: color.adjust($color, $lightness: -20%);
51
53
  }
52
54
  nav.right {
53
- border-color: darken($color, 20);
55
+ border-color: color.adjust($color, $lightness: -20%);
54
56
  }
55
57
  .corner {
56
- border-bottom-color: darken($color, 20);
58
+ border-bottom-color: color.adjust($color, $lightness: -20%);
57
59
  }
58
60
  .container-tl {
59
61
  header {
60
- border-bottom-color: darken($color, 20);
62
+ border-bottom-color: color.adjust($color, $lightness: -20%);
61
63
  }
62
64
  }
63
65
  }
@@ -66,11 +68,11 @@
66
68
  &.#{$colorName},
67
69
  &.#{$colorName}.dark-theme {
68
70
  ::selection {
69
- background-color: transparentize($color, 0.8) !important;
71
+ background-color: color.adjust($color, $alpha: -0.8) !important;
70
72
  }
71
73
 
72
74
  .progress-bar {
73
- background-color: transparentize($color, 0.8) !important;
75
+ background-color: color.adjust($color, $alpha: -0.8) !important;
74
76
  &::before,
75
77
  &::after {
76
78
  background-color: $color !important;
@@ -78,12 +80,12 @@
78
80
  }
79
81
 
80
82
  select.tabs-select {
81
- background-color: transparentize($color, 0.3) !important;
83
+ background-color: color.adjust($color, $alpha: -0.3) !important;
82
84
  border-color: $color !important;
83
85
  }
84
86
 
85
87
  .time {
86
- border-color: transparentize($color, 0.4);
88
+ border-color: color.adjust($color, $alpha: -0.4);
87
89
  .symbol {
88
90
  color: $color;
89
91
  }
@@ -91,31 +93,31 @@
91
93
  &:focus,
92
94
  &:active {
93
95
  border-color: $color;
94
- box-shadow: 0px 4px 6px transparentize($color, 0.8);
96
+ box-shadow: 0px 4px 6px color.adjust($color, $alpha: -0.8);
95
97
  }
96
98
  }
97
99
  }
98
100
  .input-box {
99
- border-color: transparentize($color, 0.4);
101
+ border-color: color.adjust($color, $alpha: -0.4);
100
102
  }
101
103
 
102
104
  .input-section {
103
105
  select.input-select {
104
- border-color: transparentize($color, 0.4);
106
+ border-color: color.adjust($color, $alpha: -0.4);
105
107
  &:focus,
106
108
  &:active {
107
109
  border-color: $color;
108
- box-shadow: 0px 4px 6px transparentize($color, 0.8);
110
+ box-shadow: 0px 4px 6px color.adjust($color, $alpha: -0.8);
109
111
  }
110
112
  }
111
113
 
112
114
  input.nav-input,
113
115
  .nav-input-file {
114
- border-color: transparentize($color, 0.4);
116
+ border-color: color.adjust($color, $alpha: -0.4);
115
117
  &:focus,
116
118
  &:active {
117
119
  border-color: $color;
118
- box-shadow: 0px 4px 6px transparentize($color, 0.8);
120
+ box-shadow: 0px 4px 6px color.adjust($color, $alpha: -0.8);
119
121
  }
120
122
  }
121
123
  &.msj-input-container {
@@ -123,7 +125,7 @@
123
125
  border: 2px solid $color;
124
126
  &:focus,
125
127
  &:active {
126
- box-shadow: 0px 4px 6px transparentize($color, 0.8);
128
+ box-shadow: 0px 4px 6px color.adjust($color, $alpha: -0.8);
127
129
  }
128
130
  }
129
131
  }
@@ -131,21 +133,21 @@
131
133
 
132
134
  .cap-btn-raised {
133
135
  border-color: $color;
134
- background: transparentize($color, 0.2);
136
+ background: color.adjust($color, $alpha: -0.2);
135
137
  }
136
138
 
137
139
  .cap-btn-outline {
138
140
  border-color: $color;
139
141
  color: $color;
140
142
  &.selected {
141
- background: transparentize($color, 0.2);
143
+ background: color.adjust($color, $alpha: -0.2);
142
144
  }
143
145
  }
144
146
 
145
147
  .select-container {
146
148
  .selected-day {
147
- background: transparentize($color, 0.7);
148
- box-shadow: inset 0px 0px 10px transparentize($color, 0.5);
149
+ background: color.adjust($color, $alpha: -0.7);
150
+ box-shadow: inset 0px 0px 10px color.adjust($color, $alpha: -0.5);
149
151
  }
150
152
  }
151
153
  }
@@ -156,33 +158,33 @@
156
158
  background: $color !important;
157
159
  }
158
160
  .#{$colorName}-d--background {
159
- background: darken($color, 15%) !important;
161
+ background: color.adjust($color, $lightness: -15%) !important;
160
162
  }
161
163
  .#{$colorName}-l--background {
162
- background: lighten($color, 15%) !important;
164
+ background: color.adjust($color, $lightness: 15%) !important;
163
165
  }
164
166
 
165
167
  .#{$colorName}--text {
166
168
  color: $color !important;
167
169
  }
168
170
  .#{$colorName}-d--text {
169
- color: darken($color, 15%) !important;
171
+ color: color.adjust($color, $lightness: -15%) !important;
170
172
  }
171
173
  .#{$colorName}-l--text {
172
- color: lighten($color, 15%) !important;
174
+ color: color.adjust($color, $lightness: 15%) !important;
173
175
  }
174
176
 
175
177
  .detail-day {
176
178
  .list-detail {
177
179
  .item-detail {
178
180
  &.#{$colorName} {
179
- background: transparentize($color, 0.8);
181
+ background: color.adjust($color, $alpha: -0.8);
180
182
  border: 1px solid $color;
181
183
  .left-icon {
182
184
  background: $color;
183
185
  &.outlined {
184
186
  border: 1px solid $color;
185
- box-shadow: inset 0px 0px 0px 1px transparentize($color, 0.3);
187
+ box-shadow: inset 0px 0px 0px 1px color.adjust($color, $alpha: -0.3);
186
188
  }
187
189
  }
188
190
  .name {
@@ -221,16 +223,16 @@
221
223
  //border-color: transparentize($color, 0.4);
222
224
  //color: $color;
223
225
  &.active {
224
- background: transparentize($color, 0.3);
225
- border-color: transparentize($color, 0.3);
226
+ background: color.adjust($color, $alpha: -0.3);
227
+ border-color: color.adjust($color, $alpha: -0.3);
226
228
  color: white;
227
229
  &:hover {
228
- background: transparentize($color, 0.2);
230
+ background: color.adjust($color, $alpha: -0.2);
229
231
  }
230
232
  }
231
233
  &:hover {
232
- background: transparentize($color, 0.8);
233
- border-color: transparentize($color, 0.1);
234
+ background: color.adjust($color, $alpha: -0.8);
235
+ border-color: color.adjust($color, $alpha: -0.1);
234
236
  }
235
237
  }
236
238
  }
@@ -1,5 +1,5 @@
1
- @import "abstracts/functions";
2
- @import "abstracts/colors";
1
+ @use "abstracts/functions" as *;
2
+ @use "abstracts/colors" as *;
3
3
 
4
4
  $themes: (
5
5
  "": (