@igo2/core 16.0.0-rc.0 → 16.0.0-rc.1

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 (74) hide show
  1. package/esm2022/lib/analytics/shared/analytics.service.mjs +1 -1
  2. package/esm2022/lib/compression/compressedData.interface.mjs +1 -1
  3. package/esm2022/lib/compression/compression.service.mjs +1 -1
  4. package/esm2022/lib/config/config-deprecated.mjs +19 -0
  5. package/esm2022/lib/config/config.interface.mjs +1 -1
  6. package/esm2022/lib/config/config.service.mjs +30 -2
  7. package/esm2022/lib/config/version.mjs +3 -3
  8. package/esm2022/lib/core.module.mjs +1 -1
  9. package/esm2022/lib/gesture/gesture.provider.mjs +1 -1
  10. package/esm2022/lib/language/shared/language.loader.mjs +1 -1
  11. package/esm2022/lib/language/shared/language.provider.mjs +1 -1
  12. package/esm2022/lib/language/shared/language.service.mjs +1 -1
  13. package/esm2022/lib/media/media.service.mjs +1 -1
  14. package/esm2022/lib/message/message.module.mjs +1 -1
  15. package/esm2022/lib/message/shared/message.interface.mjs +1 -1
  16. package/esm2022/lib/message/shared/message.service.mjs +1 -1
  17. package/esm2022/lib/network/network.interfaces.mjs +1 -1
  18. package/esm2022/lib/network/network.service.mjs +1 -1
  19. package/esm2022/lib/regex/regex.interface.mjs +1 -1
  20. package/esm2022/lib/regex/regex.service.mjs +1 -1
  21. package/esm2022/lib/request/error.interceptor.mjs +1 -1
  22. package/esm2022/lib/request/logging.interceptor.mjs +2 -2
  23. package/esm2022/lib/route/route.service.mjs +1 -1
  24. package/esm2022/lib/storage/storage.mjs +1 -1
  25. package/esm2022/lib/storage/storage.service.mjs +1 -1
  26. package/esm2022/public_api.mjs +1 -1
  27. package/fesm2022/igo2-core.mjs +50 -4
  28. package/fesm2022/igo2-core.mjs.map +1 -1
  29. package/lib/config/config-deprecated.d.ts +5 -0
  30. package/lib/config/config.interface.d.ts +7 -0
  31. package/lib/config/config.service.d.ts +3 -0
  32. package/lib/message/message.theming.scss +26 -26
  33. package/locale/en.core.json +28 -28
  34. package/locale/en.json +1 -1
  35. package/locale/fr.core.json +28 -28
  36. package/locale/fr.json +1 -1
  37. package/package.json +2 -2
  38. package/packages.import.scss +4 -4
  39. package/style/all-style.scss +3 -3
  40. package/style/layout.scss +163 -163
  41. package/style/partial/core-utils.scss +5 -5
  42. package/style/partial/core.variables.scss +5 -5
  43. package/theming/material-theme-override.scss +39 -39
  44. package/theming/prebuilt-themes/blue-theme.css +5 -9
  45. package/theming/prebuilt-themes/blue-theme.scss +34 -34
  46. package/theming/prebuilt-themes/bluedark-theme.css +5 -9
  47. package/theming/prebuilt-themes/bluedark-theme.scss +67 -67
  48. package/theming/prebuilt-themes/bluedq-theme.css +5 -9
  49. package/theming/prebuilt-themes/bluedq-theme.scss +66 -66
  50. package/theming/prebuilt-themes/bluegrey-theme.css +5 -9
  51. package/theming/prebuilt-themes/bluegrey-theme.scss +25 -25
  52. package/theming/prebuilt-themes/dark-theme.css +5 -9
  53. package/theming/prebuilt-themes/dark-theme.scss +25 -25
  54. package/theming/prebuilt-themes/deeppurple-theme.css +5 -9
  55. package/theming/prebuilt-themes/deeppurple-theme.scss +25 -25
  56. package/theming/prebuilt-themes/indigo-theme.css +5 -9
  57. package/theming/prebuilt-themes/indigo-theme.scss +25 -25
  58. package/theming/prebuilt-themes/orange-theme.css +5 -9
  59. package/theming/prebuilt-themes/orange-theme.scss +25 -25
  60. package/theming/prebuilt-themes/qcca/base/_index.scss +4 -4
  61. package/theming/prebuilt-themes/qcca/base/breakpoints.scss +57 -57
  62. package/theming/prebuilt-themes/qcca/base/typography/_index.scss +2 -2
  63. package/theming/prebuilt-themes/qcca/base/typography/typography.utils.scss +18 -18
  64. package/theming/prebuilt-themes/qcca/components/_index.scss +10 -9
  65. package/theming/prebuilt-themes/qcca/components/_index.theme.scss +5 -5
  66. package/theming/prebuilt-themes/qcca/components/button.scss +24 -24
  67. package/theming/prebuilt-themes/qcca/components/dialog.scss +36 -36
  68. package/theming/prebuilt-themes/qcca/components/scrollbar.scss +15 -0
  69. package/theming/prebuilt-themes/qcca/components/search-bar.scss +41 -41
  70. package/theming/prebuilt-themes/qcca/components/search-bar.theme.scss +29 -29
  71. package/theming/prebuilt-themes/qcca-theme.css +19 -9
  72. package/theming/prebuilt-themes/teal-theme.css +5 -9
  73. package/theming/prebuilt-themes/teal-theme.scss +25 -25
  74. package/theming/typography.scss +28 -28
@@ -2920,18 +2920,14 @@ igo-zoom-button > div.igo-zoom-button-container > button.mat-accent {
2920
2920
  background-color: black;
2921
2921
  }
2922
2922
 
2923
- igo-menu-button > #menu-button {
2924
- color: #095797;
2925
- }
2926
-
2927
- igo-menu-button > #menu-button.menu-button-reverse-color-close {
2923
+ igo-menu-button > button#menu-button {
2924
+ color: rgb(255, 255, 255);
2928
2925
  background-color: #095797;
2929
- color: white;
2930
2926
  }
2931
2927
 
2932
- igo-menu-button > #menu-button.menu-button-reverse-color {
2933
- background-color: #095797;
2934
- color: white;
2928
+ igo-menu-button > button#menu-button.menu-button-white-background {
2929
+ color: #095797;
2930
+ background-color: rgb(255, 255, 255);
2935
2931
  }
2936
2932
 
2937
2933
  .igo-map-tooltip-measure {
@@ -1,66 +1,66 @@
1
- @use 'sass:map';
2
- @use '@angular/material' as mat;
3
- @use '../../index' as igo;
4
-
5
- $dq-palette: (
6
- 50: #e1f5fd,
7
- 100: #b4e5fb,
8
- 200: #82d4f8,
9
- 300: #53c3f4,
10
- 400: #31b6f2,
11
- 500: #0d81df,
12
- 600: #149be1,
13
- 700: #1088cd,
14
- 800: #0f77b9,
15
- 900: #095797,
16
- A100: #6dc6ff,
17
- A200: #3ab2ff,
18
- A400: #079eff,
19
- A700: #0090ec,
20
- contrast: (
21
- 50: #000000,
22
- 100: #000000,
23
- 200: #000000,
24
- 300: #000000,
25
- 400: #000000,
26
- 500: #000000,
27
- 600: #ffffff,
28
- 700: #ffffff,
29
- 800: #ffffff,
30
- 900: #ffffff,
31
- A100: #000000,
32
- A200: #000000,
33
- A400: #ffffff,
34
- A700: #ffffff
35
- )
36
- );
37
-
38
- $primary: mat.define-palette($dq-palette, 900);
39
- $accent: mat.define-palette($dq-palette, 500);
40
- $warn: mat.define-palette(mat.$red-palette);
41
- $typography: igo.$igo-typography;
42
-
43
- $theme: mat.define-light-theme(
44
- (
45
- color: (
46
- primary: $primary,
47
- accent: $accent,
48
- warn: $warn
49
- ),
50
- typography: $typography,
51
- density: 0
52
- )
53
- );
54
-
55
- $theme: map.merge(
56
- $theme,
57
- (
58
- foreground: igo.theme-foreground(mat.define-palette(mat.$grey-palette, 900))
59
- )
60
- );
61
-
62
- @include mat.core();
63
- @include mat.typography-hierarchy($typography);
64
- @include mat.all-component-themes($theme);
65
-
66
- @include igo.all-component-themes($theme);
1
+ @use 'sass:map';
2
+ @use '@angular/material' as mat;
3
+ @use '../../index' as igo;
4
+
5
+ $dq-palette: (
6
+ 50: #e1f5fd,
7
+ 100: #b4e5fb,
8
+ 200: #82d4f8,
9
+ 300: #53c3f4,
10
+ 400: #31b6f2,
11
+ 500: #0d81df,
12
+ 600: #149be1,
13
+ 700: #1088cd,
14
+ 800: #0f77b9,
15
+ 900: #095797,
16
+ A100: #6dc6ff,
17
+ A200: #3ab2ff,
18
+ A400: #079eff,
19
+ A700: #0090ec,
20
+ contrast: (
21
+ 50: #000000,
22
+ 100: #000000,
23
+ 200: #000000,
24
+ 300: #000000,
25
+ 400: #000000,
26
+ 500: #000000,
27
+ 600: #ffffff,
28
+ 700: #ffffff,
29
+ 800: #ffffff,
30
+ 900: #ffffff,
31
+ A100: #000000,
32
+ A200: #000000,
33
+ A400: #ffffff,
34
+ A700: #ffffff
35
+ )
36
+ );
37
+
38
+ $primary: mat.define-palette($dq-palette, 900);
39
+ $accent: mat.define-palette($dq-palette, 500);
40
+ $warn: mat.define-palette(mat.$red-palette);
41
+ $typography: igo.$igo-typography;
42
+
43
+ $theme: mat.define-light-theme(
44
+ (
45
+ color: (
46
+ primary: $primary,
47
+ accent: $accent,
48
+ warn: $warn
49
+ ),
50
+ typography: $typography,
51
+ density: 0
52
+ )
53
+ );
54
+
55
+ $theme: map.merge(
56
+ $theme,
57
+ (
58
+ foreground: igo.theme-foreground(mat.define-palette(mat.$grey-palette, 900))
59
+ )
60
+ );
61
+
62
+ @include mat.core();
63
+ @include mat.typography-hierarchy($typography);
64
+ @include mat.all-component-themes($theme);
65
+
66
+ @include igo.all-component-themes($theme);
@@ -2920,18 +2920,14 @@ igo-zoom-button > div.igo-zoom-button-container > button.mat-accent {
2920
2920
  background-color: white;
2921
2921
  }
2922
2922
 
2923
- igo-menu-button > #menu-button {
2924
- color: #607d8b;
2925
- }
2926
-
2927
- igo-menu-button > #menu-button.menu-button-reverse-color-close {
2923
+ igo-menu-button > button#menu-button {
2924
+ color: rgb(255, 255, 255);
2928
2925
  background-color: #607d8b;
2929
- color: white;
2930
2926
  }
2931
2927
 
2932
- igo-menu-button > #menu-button.menu-button-reverse-color {
2933
- background-color: #607d8b;
2934
- color: white;
2928
+ igo-menu-button > button#menu-button.menu-button-white-background {
2929
+ color: #607d8b;
2930
+ background-color: rgb(255, 255, 255);
2935
2931
  }
2936
2932
 
2937
2933
  .igo-map-tooltip-measure {
@@ -1,25 +1,25 @@
1
- @use '@angular/material' as mat;
2
- @use '../../index' as igo;
3
-
4
- $primary: mat.define-palette(mat.$blue-grey-palette);
5
- $accent: mat.define-palette(mat.$pink-palette, A200, A100, A400);
6
- $warn: mat.define-palette(mat.$deep-orange-palette);
7
- $typography: igo.$igo-typography;
8
-
9
- $theme: mat.define-light-theme(
10
- (
11
- color: (
12
- primary: $primary,
13
- accent: $accent,
14
- warn: $warn
15
- ),
16
- typography: $typography,
17
- density: 0
18
- )
19
- );
20
-
21
- @include mat.core();
22
- @include mat.typography-hierarchy($typography);
23
- @include mat.all-component-themes($theme);
24
-
25
- @include igo.all-component-themes($theme);
1
+ @use '@angular/material' as mat;
2
+ @use '../../index' as igo;
3
+
4
+ $primary: mat.define-palette(mat.$blue-grey-palette);
5
+ $accent: mat.define-palette(mat.$pink-palette, A200, A100, A400);
6
+ $warn: mat.define-palette(mat.$deep-orange-palette);
7
+ $typography: igo.$igo-typography;
8
+
9
+ $theme: mat.define-light-theme(
10
+ (
11
+ color: (
12
+ primary: $primary,
13
+ accent: $accent,
14
+ warn: $warn
15
+ ),
16
+ typography: $typography,
17
+ density: 0
18
+ )
19
+ );
20
+
21
+ @include mat.core();
22
+ @include mat.typography-hierarchy($typography);
23
+ @include mat.all-component-themes($theme);
24
+
25
+ @include igo.all-component-themes($theme);
@@ -2927,18 +2927,14 @@ igo-zoom-button > div.igo-zoom-button-container > button.mat-accent {
2927
2927
  background-color: #ff4081;
2928
2928
  }
2929
2929
 
2930
- igo-menu-button > #menu-button {
2931
- color: #607d8b;
2932
- }
2933
-
2934
- igo-menu-button > #menu-button.menu-button-reverse-color-close {
2930
+ igo-menu-button > button#menu-button {
2931
+ color: rgb(255, 255, 255);
2935
2932
  background-color: #607d8b;
2936
- color: white;
2937
2933
  }
2938
2934
 
2939
- igo-menu-button > #menu-button.menu-button-reverse-color {
2940
- background-color: #607d8b;
2941
- color: white;
2935
+ igo-menu-button > button#menu-button.menu-button-white-background {
2936
+ color: #607d8b;
2937
+ background-color: rgb(255, 255, 255);
2942
2938
  }
2943
2939
 
2944
2940
  .igo-map-tooltip-measure {
@@ -1,25 +1,25 @@
1
- @use '@angular/material' as mat;
2
- @use '../../index' as igo;
3
-
4
- $primary: mat.define-palette(mat.$blue-grey-palette);
5
- $accent: mat.define-palette(mat.$pink-palette, A200, A100, A400);
6
- $warn: mat.define-palette(mat.$deep-orange-palette);
7
- $typography: igo.$igo-typography;
8
-
9
- $theme: mat.define-dark-theme(
10
- (
11
- color: (
12
- primary: $primary,
13
- accent: $accent,
14
- warn: $warn
15
- ),
16
- typography: $typography,
17
- density: 0
18
- )
19
- );
20
-
21
- @include mat.core();
22
- @include mat.typography-hierarchy($typography);
23
- @include mat.all-component-themes($theme);
24
-
25
- @include igo.all-component-themes($theme);
1
+ @use '@angular/material' as mat;
2
+ @use '../../index' as igo;
3
+
4
+ $primary: mat.define-palette(mat.$blue-grey-palette);
5
+ $accent: mat.define-palette(mat.$pink-palette, A200, A100, A400);
6
+ $warn: mat.define-palette(mat.$deep-orange-palette);
7
+ $typography: igo.$igo-typography;
8
+
9
+ $theme: mat.define-dark-theme(
10
+ (
11
+ color: (
12
+ primary: $primary,
13
+ accent: $accent,
14
+ warn: $warn
15
+ ),
16
+ typography: $typography,
17
+ density: 0
18
+ )
19
+ );
20
+
21
+ @include mat.core();
22
+ @include mat.typography-hierarchy($typography);
23
+ @include mat.all-component-themes($theme);
24
+
25
+ @include igo.all-component-themes($theme);
@@ -2920,18 +2920,14 @@ igo-zoom-button > div.igo-zoom-button-container > button.mat-accent {
2920
2920
  background-color: rgba(0, 0, 0, 0.87);
2921
2921
  }
2922
2922
 
2923
- igo-menu-button > #menu-button {
2924
- color: #673ab7;
2925
- }
2926
-
2927
- igo-menu-button > #menu-button.menu-button-reverse-color-close {
2923
+ igo-menu-button > button#menu-button {
2924
+ color: rgb(255, 255, 255);
2928
2925
  background-color: #673ab7;
2929
- color: white;
2930
2926
  }
2931
2927
 
2932
- igo-menu-button > #menu-button.menu-button-reverse-color {
2933
- background-color: #673ab7;
2934
- color: white;
2928
+ igo-menu-button > button#menu-button.menu-button-white-background {
2929
+ color: #673ab7;
2930
+ background-color: rgb(255, 255, 255);
2935
2931
  }
2936
2932
 
2937
2933
  .igo-map-tooltip-measure {
@@ -1,25 +1,25 @@
1
- @use '@angular/material' as mat;
2
- @use '../../index' as igo;
3
-
4
- $primary: mat.define-palette(mat.$deep-purple-palette);
5
- $accent: mat.define-palette(mat.$amber-palette, A200, A100, A400);
6
- $warn: mat.define-palette(mat.$red-palette);
7
- $typography: igo.$igo-typography;
8
-
9
- $theme: mat.define-light-theme(
10
- (
11
- color: (
12
- primary: $primary,
13
- accent: $accent,
14
- warn: $warn
15
- ),
16
- typography: $typography,
17
- density: 0
18
- )
19
- );
20
-
21
- @include mat.core();
22
- @include mat.typography-hierarchy($typography);
23
- @include mat.all-component-themes($theme);
24
-
25
- @include igo.all-component-themes($theme);
1
+ @use '@angular/material' as mat;
2
+ @use '../../index' as igo;
3
+
4
+ $primary: mat.define-palette(mat.$deep-purple-palette);
5
+ $accent: mat.define-palette(mat.$amber-palette, A200, A100, A400);
6
+ $warn: mat.define-palette(mat.$red-palette);
7
+ $typography: igo.$igo-typography;
8
+
9
+ $theme: mat.define-light-theme(
10
+ (
11
+ color: (
12
+ primary: $primary,
13
+ accent: $accent,
14
+ warn: $warn
15
+ ),
16
+ typography: $typography,
17
+ density: 0
18
+ )
19
+ );
20
+
21
+ @include mat.core();
22
+ @include mat.typography-hierarchy($typography);
23
+ @include mat.all-component-themes($theme);
24
+
25
+ @include igo.all-component-themes($theme);
@@ -2920,18 +2920,14 @@ igo-zoom-button > div.igo-zoom-button-container > button.mat-accent {
2920
2920
  background-color: white;
2921
2921
  }
2922
2922
 
2923
- igo-menu-button > #menu-button {
2924
- color: #3f51b5;
2925
- }
2926
-
2927
- igo-menu-button > #menu-button.menu-button-reverse-color-close {
2923
+ igo-menu-button > button#menu-button {
2924
+ color: rgb(255, 255, 255);
2928
2925
  background-color: #3f51b5;
2929
- color: white;
2930
2926
  }
2931
2927
 
2932
- igo-menu-button > #menu-button.menu-button-reverse-color {
2933
- background-color: #3f51b5;
2934
- color: white;
2928
+ igo-menu-button > button#menu-button.menu-button-white-background {
2929
+ color: #3f51b5;
2930
+ background-color: rgb(255, 255, 255);
2935
2931
  }
2936
2932
 
2937
2933
  .igo-map-tooltip-measure {
@@ -1,25 +1,25 @@
1
- @use '@angular/material' as mat;
2
- @use '../../index' as igo;
3
-
4
- $primary: mat.define-palette(mat.$indigo-palette);
5
- $accent: mat.define-palette(mat.$pink-palette, A200, A100, A400);
6
- $warn: mat.define-palette(mat.$red-palette);
7
- $typography: igo.$igo-typography;
8
-
9
- $theme: mat.define-light-theme(
10
- (
11
- color: (
12
- primary: $primary,
13
- accent: $accent,
14
- warn: $warn
15
- ),
16
- typography: $typography,
17
- density: 0
18
- )
19
- );
20
-
21
- @include mat.core();
22
- @include mat.typography-hierarchy($typography);
23
- @include mat.all-component-themes($theme);
24
-
25
- @include igo.all-component-themes($theme);
1
+ @use '@angular/material' as mat;
2
+ @use '../../index' as igo;
3
+
4
+ $primary: mat.define-palette(mat.$indigo-palette);
5
+ $accent: mat.define-palette(mat.$pink-palette, A200, A100, A400);
6
+ $warn: mat.define-palette(mat.$red-palette);
7
+ $typography: igo.$igo-typography;
8
+
9
+ $theme: mat.define-light-theme(
10
+ (
11
+ color: (
12
+ primary: $primary,
13
+ accent: $accent,
14
+ warn: $warn
15
+ ),
16
+ typography: $typography,
17
+ density: 0
18
+ )
19
+ );
20
+
21
+ @include mat.core();
22
+ @include mat.typography-hierarchy($typography);
23
+ @include mat.all-component-themes($theme);
24
+
25
+ @include igo.all-component-themes($theme);
@@ -2920,18 +2920,14 @@ igo-zoom-button > div.igo-zoom-button-container > button.mat-accent {
2920
2920
  background-color: white;
2921
2921
  }
2922
2922
 
2923
- igo-menu-button > #menu-button {
2924
- color: #ef6c00;
2925
- }
2926
-
2927
- igo-menu-button > #menu-button.menu-button-reverse-color-close {
2923
+ igo-menu-button > button#menu-button {
2924
+ color: rgb(255, 255, 255);
2928
2925
  background-color: #ef6c00;
2929
- color: white;
2930
2926
  }
2931
2927
 
2932
- igo-menu-button > #menu-button.menu-button-reverse-color {
2933
- background-color: #ef6c00;
2934
- color: white;
2928
+ igo-menu-button > button#menu-button.menu-button-white-background {
2929
+ color: #ef6c00;
2930
+ background-color: rgb(255, 255, 255);
2935
2931
  }
2936
2932
 
2937
2933
  .igo-map-tooltip-measure {
@@ -1,25 +1,25 @@
1
- @use '@angular/material' as mat;
2
- @use '../../index' as igo;
3
-
4
- $primary: mat.define-palette(mat.$orange-palette, 800);
5
- $accent: mat.define-palette(mat.$light-blue-palette, 600, 100, 800);
6
- $warn: mat.define-palette(mat.$red-palette, 600);
7
- $typography: igo.$igo-typography;
8
-
9
- $theme: mat.define-light-theme(
10
- (
11
- color: (
12
- primary: $primary,
13
- accent: $accent,
14
- warn: $warn
15
- ),
16
- typography: $typography,
17
- density: 0
18
- )
19
- );
20
-
21
- @include mat.core();
22
- @include mat.typography-hierarchy($typography);
23
- @include mat.all-component-themes($theme);
24
-
25
- @include igo.all-component-themes($theme);
1
+ @use '@angular/material' as mat;
2
+ @use '../../index' as igo;
3
+
4
+ $primary: mat.define-palette(mat.$orange-palette, 800);
5
+ $accent: mat.define-palette(mat.$light-blue-palette, 600, 100, 800);
6
+ $warn: mat.define-palette(mat.$red-palette, 600);
7
+ $typography: igo.$igo-typography;
8
+
9
+ $theme: mat.define-light-theme(
10
+ (
11
+ color: (
12
+ primary: $primary,
13
+ accent: $accent,
14
+ warn: $warn
15
+ ),
16
+ typography: $typography,
17
+ density: 0
18
+ )
19
+ );
20
+
21
+ @include mat.core();
22
+ @include mat.typography-hierarchy($typography);
23
+ @include mat.all-component-themes($theme);
24
+
25
+ @include igo.all-component-themes($theme);
@@ -1,4 +1,4 @@
1
- @forward './breakpoints';
2
- @forward './colors' as colors-*;
3
- @forward './palette';
4
- @forward './typography';
1
+ @forward './breakpoints';
2
+ @forward './colors' as colors-*;
3
+ @forward './palette';
4
+ @forward './typography';
@@ -1,57 +1,57 @@
1
- @use 'sass:map';
2
-
3
- // There is no standard for breakpoints for the Quebec.ca theme
4
- // This is the Material breakpoint design by devices
5
- $device-breakpoints: (
6
- mobile: (
7
- max: 599px
8
- ),
9
- tablet: (
10
- min: 600px,
11
- max: 1239px
12
- ),
13
- laptop: (
14
- min: 1240px,
15
- max: 1439px
16
- ),
17
- desktop: (
18
- min: 1440px
19
- )
20
- );
21
-
22
- // Source: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_breakpoints.scss
23
- @function breakpoint-min($name, $breakpoints: $device-breakpoints) {
24
- $min: map.get($breakpoints, $name, min);
25
- @return if($min != 0, $min, null);
26
- }
27
-
28
- @function breakpoint-max($name, $breakpoints: $device-breakpoints) {
29
- $max: map.get($breakpoints, $name, max);
30
- @return if($max and $max > 0, $max, null);
31
- }
32
-
33
- // Media of at least the minimum breakpoint width. No query for the smallest breakpoint.
34
- // Makes the @content apply to the given breakpoint and wider.
35
- @mixin media-breakpoint-up($name, $breakpoints: $device-breakpoints) {
36
- $min: breakpoint-min($name, $breakpoints);
37
- @if $min {
38
- @media (min-width: $min) {
39
- @content;
40
- }
41
- } @else {
42
- @content;
43
- }
44
- }
45
-
46
- // Media of at most the maximum breakpoint width. No query for the largest breakpoint.
47
- // Makes the @content apply to the given breakpoint and narrower.
48
- @mixin media-breakpoint-down($name, $breakpoints: $device-breakpoints) {
49
- $max: breakpoint-max($name, $breakpoints);
50
- @if $max {
51
- @media (max-width: $max) {
52
- @content;
53
- }
54
- } @else {
55
- @content;
56
- }
57
- }
1
+ @use 'sass:map';
2
+
3
+ // There is no standard for breakpoints for the Quebec.ca theme
4
+ // This is the Material breakpoint design by devices
5
+ $device-breakpoints: (
6
+ mobile: (
7
+ max: 599px
8
+ ),
9
+ tablet: (
10
+ min: 600px,
11
+ max: 1239px
12
+ ),
13
+ laptop: (
14
+ min: 1240px,
15
+ max: 1439px
16
+ ),
17
+ desktop: (
18
+ min: 1440px
19
+ )
20
+ );
21
+
22
+ // Source: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_breakpoints.scss
23
+ @function breakpoint-min($name, $breakpoints: $device-breakpoints) {
24
+ $min: map.get($breakpoints, $name, min);
25
+ @return if($min != 0, $min, null);
26
+ }
27
+
28
+ @function breakpoint-max($name, $breakpoints: $device-breakpoints) {
29
+ $max: map.get($breakpoints, $name, max);
30
+ @return if($max and $max > 0, $max, null);
31
+ }
32
+
33
+ // Media of at least the minimum breakpoint width. No query for the smallest breakpoint.
34
+ // Makes the @content apply to the given breakpoint and wider.
35
+ @mixin media-breakpoint-up($name, $breakpoints: $device-breakpoints) {
36
+ $min: breakpoint-min($name, $breakpoints);
37
+ @if $min {
38
+ @media (min-width: $min) {
39
+ @content;
40
+ }
41
+ } @else {
42
+ @content;
43
+ }
44
+ }
45
+
46
+ // Media of at most the maximum breakpoint width. No query for the largest breakpoint.
47
+ // Makes the @content apply to the given breakpoint and narrower.
48
+ @mixin media-breakpoint-down($name, $breakpoints: $device-breakpoints) {
49
+ $max: breakpoint-max($name, $breakpoints);
50
+ @if $max {
51
+ @media (max-width: $max) {
52
+ @content;
53
+ }
54
+ } @else {
55
+ @content;
56
+ }
57
+ }
@@ -1,2 +1,2 @@
1
- @forward './typography' as typo-*;
2
- @forward './typography.utils';
1
+ @forward './typography' as typo-*;
2
+ @forward './typography.utils';