@panomc/sdk 1.0.0-dev.6 → 1.0.0-dev.60

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 (85) hide show
  1. package/README.md +3 -3
  2. package/core/favicon/apple-touch-icon.png +0 -0
  3. package/core/favicon/favicon-96x96.png +0 -0
  4. package/core/favicon/favicon.ico +0 -0
  5. package/core/favicon/favicon.svg +1 -0
  6. package/core/favicon/site.webmanifest +21 -0
  7. package/core/favicon/web-app-manifest-192x192.png +0 -0
  8. package/core/favicon/web-app-manifest-512x512.png +0 -0
  9. package/core/favicon_old/android-icon-144x144.png +0 -0
  10. package/core/favicon_old/android-icon-192x192.png +0 -0
  11. package/core/favicon_old/android-icon-36x36.png +0 -0
  12. package/core/favicon_old/android-icon-48x48.png +0 -0
  13. package/core/favicon_old/android-icon-72x72.png +0 -0
  14. package/core/favicon_old/android-icon-96x96.png +0 -0
  15. package/core/favicon_old/apple-icon-114x114.png +0 -0
  16. package/core/favicon_old/apple-icon-120x120.png +0 -0
  17. package/core/favicon_old/apple-icon-144x144.png +0 -0
  18. package/core/favicon_old/apple-icon-152x152.png +0 -0
  19. package/core/favicon_old/apple-icon-180x180.png +0 -0
  20. package/core/favicon_old/apple-icon-57x57.png +0 -0
  21. package/core/favicon_old/apple-icon-60x60.png +0 -0
  22. package/core/favicon_old/apple-icon-72x72.png +0 -0
  23. package/core/favicon_old/apple-icon-76x76.png +0 -0
  24. package/core/favicon_old/apple-icon-precomposed.png +0 -0
  25. package/core/favicon_old/apple-icon.png +0 -0
  26. package/core/favicon_old/browserconfig.xml +11 -0
  27. package/core/favicon_old/favicon-16x16.png +0 -0
  28. package/core/favicon_old/favicon-32x32.png +0 -0
  29. package/core/favicon_old/favicon-96x96.png +0 -0
  30. package/core/favicon_old/favicon.ico +0 -0
  31. package/core/favicon_old/manifest.json +41 -0
  32. package/core/favicon_old/ms-icon-144x144.png +0 -0
  33. package/core/favicon_old/ms-icon-150x150.png +0 -0
  34. package/core/favicon_old/ms-icon-310x310.png +0 -0
  35. package/core/favicon_old/ms-icon-70x70.png +0 -0
  36. package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-300.eot +0 -0
  37. package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-300.svg +483 -0
  38. package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-300.ttf +0 -0
  39. package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-300.woff +0 -0
  40. package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-300.woff2 +0 -0
  41. package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-500.eot +0 -0
  42. package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-500.svg +486 -0
  43. package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-500.ttf +0 -0
  44. package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-500.woff +0 -0
  45. package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-500.woff2 +0 -0
  46. package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-700.eot +0 -0
  47. package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-700.svg +484 -0
  48. package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-700.ttf +0 -0
  49. package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-700.woff +0 -0
  50. package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-700.woff2 +0 -0
  51. package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-regular.eot +0 -0
  52. package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-regular.svg +486 -0
  53. package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-regular.ttf +0 -0
  54. package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-regular.woff +0 -0
  55. package/core/fonts/quicksand-v8-latin-ext_latin_vietnamese-regular.woff2 +0 -0
  56. package/core/js/NotificationManager.js +19 -0
  57. package/core/js/PluginAPI.js +29 -0
  58. package/core/js/PluginManager.js +789 -0
  59. package/core/js/RouteMatcher.js +134 -0
  60. package/core/js/api.util.js +270 -0
  61. package/core/js/tooltip.util.js +59 -0
  62. package/core/js/variables.js +75 -0
  63. package/core/js/version.util.js +100 -0
  64. package/core/scss/custom-bootstrap.scss +187 -0
  65. package/core/scss/fonts.scss +85 -0
  66. package/core/scss/main.scss +385 -0
  67. package/core/scss/themes.scss +97 -0
  68. package/package.json +30 -10
  69. package/src/api/plugin-context.js +3 -3
  70. package/src/api/plugin.js +6 -6
  71. package/src/components/{index.js → panel.js} +12 -8
  72. package/src/components/theme.js +13 -0
  73. package/src/index.js +3 -3
  74. package/src/internal/index.js +1 -1
  75. package/src/internal/pano-context.js +4 -4
  76. package/src/svelte.js +4 -3
  77. package/src/toasts/index.js +2 -2
  78. package/src/types.js +1 -1
  79. package/src/utils/api.js +2 -2
  80. package/src/utils/auth.js +8 -0
  81. package/src/utils/component.js +11 -9
  82. package/src/utils/language.js +2 -2
  83. package/src/utils/text.js +8 -0
  84. package/src/utils/tooltip.js +1 -1
  85. package/src/variables.js +1 -1
@@ -0,0 +1,187 @@
1
+ // Colors
2
+
3
+ $min-contrast-ratio: 2 !default;
4
+
5
+ $primary: #044389 !default;
6
+ $secondary: #ffc947 !default;
7
+ $danger: #ed5565 !default;
8
+ $success: #4ecdc4 !default;
9
+ $warning: #967adc !default;
10
+ $info: #1e96fc !default;
11
+ $dark: #0a1931 !default;
12
+ $gray: #ccd1d9 !default;
13
+ $light: #f5f7fa !default;
14
+ $white: #fff !default;
15
+ $black: #000 !default;
16
+ $purple: #6f42c1 !default;
17
+ $transparent: transparent !default;
18
+
19
+ $theme-colors: (
20
+ "transparent": $transparent,
21
+ "primary": $primary,
22
+ "secondary": $secondary,
23
+ "danger": $danger,
24
+ "success": $success,
25
+ "warning": $warning,
26
+ "info": $info,
27
+ "light": $light,
28
+ "dark": $dark,
29
+ "gray": $gray,
30
+ "purple": $purple,
31
+ "white": $white,
32
+ "black": $black,
33
+ ) !default;
34
+
35
+ // Color shades
36
+
37
+ $primaries: (
38
+ "primary-100": #c9d2ff,
39
+ "primary-200": #a4b3ff,
40
+ "primary-300": #7e94ff,
41
+ "primary-400": #5975ff,
42
+ "primary-500": $primary,
43
+ "primary-600": #314ac3,
44
+ "primary-700": #2136a1,
45
+ "primary-800": #14267f,
46
+ "primary-900": #0a185d,
47
+ ) !default;
48
+
49
+ $secondaries: (
50
+ "secondary-100": #dbffdd,
51
+ "secondary-200": #c0ffc4,
52
+ "secondary-300": #a2faa8,
53
+ "secondary-400": #89dd8f,
54
+ "secondary-500": $secondary,
55
+ "secondary-600": #5ca361,
56
+ "secondary-700": #48864c,
57
+ "secondary-800": #366939,
58
+ "secondary-900": #254b27,
59
+ ) !default;
60
+
61
+ // SETTINGS
62
+
63
+ $enable-shadows: true;
64
+ $enable-gradients: false;
65
+
66
+ // GLOBAL TOKENS
67
+
68
+ $border-width: 1.5px;
69
+ $border-width-sm: 2px;
70
+ $border-width-lg: 3px;
71
+ $border-width-xl: 4px;
72
+
73
+ $border-radius: 9.6px;
74
+ $border-radius-sm: 9.6px;
75
+ $border-radius-lg: 9.6px;
76
+
77
+ $box-shadow-inset: 0;
78
+ $box-shadow-sm: 0 1.5px 0 rgba($dark, 0.1
79
+ ) !default;
80
+ $box-shadow: 0 1.5px 0 rgba($dark, 0.1) !default;
81
+ $box-shadow-lg: 0 4px 0 rgba($dark, 0.1) !default;
82
+
83
+ // Fonts
84
+
85
+ $font-weight-base: 500 !default;
86
+ $font-weight-normal: 500 !default;
87
+ $font-weight-bold: 600 !default;
88
+ $font-weight-bolder: 700 !default;
89
+ $lead-font-weight: 400 !default;
90
+ $font-family-base: "Quicksand", sans-serif !default;
91
+
92
+ // Headings
93
+
94
+ // Buttons
95
+
96
+ $btn-active-bg-tint-amount: 0% !default;
97
+ $btn-box-shadow: $box-shadow-sm !default;
98
+ $btn-active-box-shadow: 0 !default;
99
+
100
+ .btn:not(.btn-link) {
101
+ border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
102
+ }
103
+
104
+ // Modals
105
+
106
+ $modal-backdrop-opacity: 0.35 !default;
107
+
108
+ // Alerts
109
+
110
+ $alert-padding-y: 1rem !default;
111
+ $alert-padding-x: 1.25rem !default;
112
+ $alert-margin-bottom: 1rem !default;
113
+ $alert-border-radius: $border-radius !default;
114
+ $alert-border-width: $border-width !default;
115
+ $alert-bg-scale: -92% !default;
116
+ $alert-border-scale: -80% !default;
117
+ $alert-color-scale: 30% !default;
118
+ $alert-dismissible-padding-r: 3rem !default;
119
+
120
+ // Focus Ring
121
+
122
+ $focus-ring-opacity: .8 !default;
123
+
124
+ // Lines
125
+
126
+ $link-decoration: none !default;
127
+ $link-hover-decoration: underline !default;
128
+
129
+ // Dropdowns
130
+
131
+ // Subtle & Emphasis Colors Utilities
132
+ @each $color, $value in $theme-colors {
133
+
134
+ // Emphasis Text
135
+ .text-#{$color}-emphasis {
136
+ color: shade-color($value, 20%) !important;
137
+ }
138
+
139
+ // Subtle Backgrounds
140
+ .bg-#{$color}-subtle {
141
+ background-color: rgba($value, 0.12) !important;
142
+ color: $value !important; // Some BS versions use emphasis color here, keeping it base color for Pano
143
+ border: 1px solid rgba($value, 0.2) !important;
144
+ }
145
+
146
+ // Alerts
147
+ .alert-#{$color} {
148
+ color: shade-color($value, 15%) !important;
149
+ border: $border-width solid rgba($value, 0.25) !important;
150
+ border-radius: $border-radius !important;
151
+
152
+ .alert-link {
153
+ color: shade-color($value, 30%) !important;
154
+ font-weight: $font-weight-bold;
155
+ }
156
+ }
157
+
158
+ // Aliases for 'subtile' if used by mistake
159
+ .bg-#{$color}-subtile {
160
+ @extend .bg-#{$color}-subtle;
161
+ }
162
+
163
+ // Badge Theming (Solid & High Contrast)
164
+ .badge {
165
+
166
+ &.text-bg-#{$color},
167
+ &.text-bg-#{$color}-subtle {
168
+ background-color: $value !important;
169
+ color: color-contrast($value) !important;
170
+ border: 1px solid rgba($black, 0.1) !important;
171
+ }
172
+ }
173
+ }
174
+
175
+ // Background Gradients
176
+ @if $enable-gradients {
177
+ .bg-gradient {
178
+ background-image: var(--bs-gradient) !important;
179
+ }
180
+ }
181
+
182
+ // Background Opacity
183
+ @each $opacity in 10, 25, 50, 75 {
184
+ .bg-opacity-#{$opacity} {
185
+ --bs-bg-opacity: #{$opacity * 0.01} !important;
186
+ }
187
+ }
@@ -0,0 +1,85 @@
1
+ // Fonts
2
+
3
+ /* quicksand-300 - latin-ext_latin_vietnamese */
4
+ @font-face {
5
+ font-family: 'Quicksand';
6
+ font-style: normal;
7
+ font-weight: 300;
8
+ src: url('#{$pano-asset-path}fonts/quicksand-v8-latin-ext_latin_vietnamese-300.eot');
9
+ /* IE9 Compat Modes */
10
+ src: local('Quicksand Light'),
11
+ local('Quicksand-Light'),
12
+ url('#{$pano-asset-path}fonts/quicksand-v8-latin-ext_latin_vietnamese-300.eot?#iefix') format('embedded-opentype'),
13
+ /* IE6-IE8 */
14
+ url('#{$pano-asset-path}fonts/quicksand-v8-latin-ext_latin_vietnamese-300.woff2') format('woff2'),
15
+ /* Super Modern Browsers */
16
+ url('#{$pano-asset-path}fonts/quicksand-v8-latin-ext_latin_vietnamese-300.woff') format('woff'),
17
+ /* Modern Browsers */
18
+ url('#{$pano-asset-path}fonts/quicksand-v8-latin-ext_latin_vietnamese-300.ttf') format('truetype'),
19
+ /* Safari, Android, iOS */
20
+ url('#{$pano-asset-path}fonts/quicksand-v8-latin-ext_latin_vietnamese-300.svg#Quicksand') format('svg');
21
+ /* Legacy iOS */
22
+ }
23
+
24
+ /* quicksand-regular - latin-ext_latin_vietnamese */
25
+ @font-face {
26
+ font-family: 'Quicksand';
27
+ font-style: normal;
28
+ font-weight: 400;
29
+ src: url('#{$pano-asset-path}fonts/quicksand-v8-latin-ext_latin_vietnamese-regular.eot');
30
+ /* IE9 Compat Modes */
31
+ src: local('Quicksand Regular'),
32
+ local('Quicksand-Regular'),
33
+ url('#{$pano-asset-path}fonts/quicksand-v8-latin-ext_latin_vietnamese-regular.eot?#iefix') format('embedded-opentype'),
34
+ /* IE6-IE8 */
35
+ url('#{$pano-asset-path}fonts/quicksand-v8-latin-ext_latin_vietnamese-regular.woff2') format('woff2'),
36
+ /* Super Modern Browsers */
37
+ url('#{$pano-asset-path}fonts/quicksand-v8-latin-ext_latin_vietnamese-regular.woff') format('woff'),
38
+ /* Modern Browsers */
39
+ url('#{$pano-asset-path}fonts/quicksand-v8-latin-ext_latin_vietnamese-regular.ttf') format('truetype'),
40
+ /* Safari, Android, iOS */
41
+ url('#{$pano-asset-path}fonts/quicksand-v8-latin-ext_latin_vietnamese-regular.svg#Quicksand') format('svg');
42
+ /* Legacy iOS */
43
+ }
44
+
45
+ /* quicksand-500 - latin-ext_latin_vietnamese */
46
+ @font-face {
47
+ font-family: 'Quicksand';
48
+ font-style: normal;
49
+ font-weight: 500;
50
+ src: url('#{$pano-asset-path}fonts/quicksand-v8-latin-ext_latin_vietnamese-500.eot');
51
+ /* IE9 Compat Modes */
52
+ src: local('Quicksand Medium'),
53
+ local('Quicksand-Medium'),
54
+ url('#{$pano-asset-path}fonts/quicksand-v8-latin-ext_latin_vietnamese-500.eot?#iefix') format('embedded-opentype'),
55
+ /* IE6-IE8 */
56
+ url('#{$pano-asset-path}fonts/quicksand-v8-latin-ext_latin_vietnamese-500.woff2') format('woff2'),
57
+ /* Super Modern Browsers */
58
+ url('#{$pano-asset-path}fonts/quicksand-v8-latin-ext_latin_vietnamese-500.woff') format('woff'),
59
+ /* Modern Browsers */
60
+ url('#{$pano-asset-path}fonts/quicksand-v8-latin-ext_latin_vietnamese-500.ttf') format('truetype'),
61
+ /* Safari, Android, iOS */
62
+ url('#{$pano-asset-path}fonts/quicksand-v8-latin-ext_latin_vietnamese-500.svg#Quicksand') format('svg');
63
+ /* Legacy iOS */
64
+ }
65
+
66
+ /* quicksand-700 - latin-ext_latin_vietnamese */
67
+ @font-face {
68
+ font-family: 'Quicksand';
69
+ font-style: normal;
70
+ font-weight: 700;
71
+ src: url('#{$pano-asset-path}fonts/quicksand-v8-latin-ext_latin_vietnamese-700.eot');
72
+ /* IE9 Compat Modes */
73
+ src: local('Quicksand Bold'),
74
+ local('Quicksand-Bold'),
75
+ url('#{$pano-asset-path}fonts/quicksand-v8-latin-ext_latin_vietnamese-700.eot?#iefix') format('embedded-opentype'),
76
+ /* IE6-IE8 */
77
+ url('#{$pano-asset-path}fonts/quicksand-v8-latin-ext_latin_vietnamese-700.woff2') format('woff2'),
78
+ /* Super Modern Browsers */
79
+ url('#{$pano-asset-path}fonts/quicksand-v8-latin-ext_latin_vietnamese-700.woff') format('woff'),
80
+ /* Modern Browsers */
81
+ url('#{$pano-asset-path}fonts/quicksand-v8-latin-ext_latin_vietnamese-700.ttf') format('truetype'),
82
+ /* Safari, Android, iOS */
83
+ url('#{$pano-asset-path}fonts/quicksand-v8-latin-ext_latin_vietnamese-700.svg#Quicksand') format('svg');
84
+ /* Legacy iOS */
85
+ }
@@ -0,0 +1,385 @@
1
+ $pano-asset-path: '/assets/' !default;
2
+ $fa-font-path: '#{$pano-asset-path}webfonts';
3
+
4
+ @import 'custom-bootstrap';
5
+ @import 'node_modules/bootstrap/scss/bootstrap';
6
+ @import 'fonts';
7
+
8
+ @import 'node_modules/bootstrap/scss/functions';
9
+ @import 'node_modules/bootstrap/scss/variables';
10
+ @import 'node_modules/bootstrap/scss/mixins';
11
+ @import 'node_modules/bootstrap/scss/utilities';
12
+ @import 'themes';
13
+
14
+ $all-colors: map-merge-multiple($primaries, $secondaries);
15
+
16
+ $utilities: map-merge($utilities, ("color": map-merge(map-get($utilities, "color"), (values: map-merge(map-get(map-get($utilities, "color"), "values"), ($all-colors)),
17
+ )),
18
+ "background-color": map-merge(map-get($utilities, "background-color"), (values: map-merge(map-get(map-get($utilities, "background-color"), "values"), ($all-colors)),
19
+ )),
20
+ "subtle-background-color": map-merge(map-get($utilities, "subtle-background-color"), (values: map-merge(map-get(map-get($utilities, "subtle-background-color"), "values"), ($all-colors)),
21
+ )),
22
+
23
+ ));
24
+
25
+ @import 'node_modules/bootstrap/scss/utilities/api';
26
+
27
+ // Common styles
28
+
29
+ // Sidebar & Offcanvas
30
+
31
+ #sidebar {
32
+ --bs-offcanvas-width: 256px;
33
+ }
34
+
35
+ /* mobile offcanvas width */
36
+
37
+ /* Desktop horizontal */
38
+ @media (min-width: 992px) {
39
+
40
+ /* Make Sidebar visible, sticky and fixed width */
41
+ .offcanvas-lg {
42
+ position: sticky;
43
+ transform: none !important;
44
+ visibility: visible !important;
45
+ z-index: auto !important;
46
+ /* prevent content override */
47
+ flex: 0 0 256px;
48
+ /* fix 256px */
49
+ max-width: 256px;
50
+ }
51
+
52
+ /* Panel #sidebar uses data-bs-backdrop="false" so no global backdrop hiding — cart offcanvas keeps dimmed backdrop */
53
+ }
54
+
55
+ @function svg-color($color) {
56
+ $hex: str-slice(ie-hex-str($color), 4);
57
+ @return "%23" + $hex;
58
+ }
59
+
60
+ @function svg-square($color, $border-color) {
61
+ @return url("data:image/svg+xml,%3Csvg width='128' height='128' viewBox='0 0 128 128' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0.5' y='0.5' width='127' height='127' rx='24' fill='#{svg-color($color)}' stroke='#{svg-color($border-color)}' stroke-width='1'/%3E%3C/svg%3E");
62
+ }
63
+
64
+ @function svg-wide($color, $border-color) {
65
+ @return url("data:image/svg+xml,%3Csvg width='256' height='128' viewBox='0 0 256 128' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0.5' y='0.5' width='255' height='127' rx='24' fill='#{svg-color($color)}' stroke='#{svg-color($border-color)}' stroke-width='1'/%3E%3C/svg%3E");
66
+ }
67
+
68
+ @function svg-tall($color, $border-color) {
69
+ @return url("data:image/svg+xml,%3Csvg width='128' height='256' viewBox='0 0 128 256' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0.5' y='0.5' width='127' height='255' rx='24' fill='#{svg-color($color)}' stroke='#{svg-color($border-color)}' stroke-width='1'/%3E%3C/svg%3E");
70
+ }
71
+
72
+ @function svg-l-top-left($color, $border-color) {
73
+ @return url("data:image/svg+xml,%3Csvg width='256' height='256' viewBox='0 0 256 256' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 24.5 0.5 H 231.5 A 24 24 0 0 1 255.5 24.5 V 103.5 A 24 24 0 0 1 231.5 127.5 H 127.5 V 231.5 A 24 24 0 0 1 103.5 255.5 H 24.5 A 24 24 0 0 1 0.5 231.5 V 24.5 A 24 24 0 0 1 24.5 0.5 Z' fill='#{svg-color($color)}' stroke='#{svg-color($border-color)}' stroke-width='1'/%3E%3C/svg%3E");
74
+ }
75
+
76
+ @function svg-l-top-right($color, $border-color) {
77
+ @return url("data:image/svg+xml,%3Csvg width='256' height='256' viewBox='0 0 256 256' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 24.5 0.5 H 231.5 A 24 24 0 0 1 255.5 24.5 V 231.5 A 24 24 0 0 1 231.5 255.5 H 151.5 A 24 24 0 0 1 127.5 231.5 V 127.5 H 24.5 A 24 24 0 0 1 0.5 103.5 V 24.5 A 24 24 0 0 1 24.5 0.5 Z' fill='#{svg-color($color)}' stroke='#{svg-color($border-color)}' stroke-width='1'/%3E%3C/svg%3E");
78
+ }
79
+
80
+ @mixin blocks-images($border-color) {
81
+ .blocks {
82
+ background-image: svg-square($danger, $border-color), svg-square($secondary, $border-color), svg-tall($success, $border-color);
83
+ }
84
+ .blocks-2 {
85
+ background-image: svg-square($primary, $border-color), svg-square($info, $border-color), svg-tall($warning, $border-color);
86
+ }
87
+ .blocks-3 {
88
+ background-image: svg-square($success, $border-color), svg-square($info, $border-color), svg-tall($primary, $border-color);
89
+ }
90
+ .blocks-3-top {
91
+ background-image: svg-square($success, $border-color), svg-square($info, $border-color), svg-tall($primary, $border-color);
92
+ }
93
+ .blocks-4 {
94
+ background-image: svg-square($warning, $border-color), svg-square($secondary, $border-color), svg-tall($danger, $border-color);
95
+ }
96
+ .blocks-cool {
97
+ background-image: svg-square($primary, $border-color), svg-square($info, $border-color), svg-tall($warning, $border-color);
98
+ }
99
+ .blocks-cool-top {
100
+ background-image: svg-square($primary, $border-color), svg-square($info, $border-color), svg-tall($warning, $border-color);
101
+ }
102
+ .blocks-sunset {
103
+ background-image: svg-square($danger, $border-color), svg-square($secondary, $border-color), svg-tall($warning, $border-color);
104
+ }
105
+ .blocks-sunset-top {
106
+ background-image: svg-square($danger, $border-color), svg-square($secondary, $border-color), svg-tall($warning, $border-color);
107
+ }
108
+ .blocks-sunset-l-top {
109
+ background-image:
110
+ svg-l-top-left($danger, $border-color),
111
+ svg-wide($secondary, $border-color),
112
+ svg-wide($warning, $border-color);
113
+ }
114
+ .blocks-duo-cool {
115
+ background-image: svg-square($primary, $border-color), svg-tall($warning, $border-color);
116
+ }
117
+ .blocks-duo-sunset {
118
+ background-image: svg-square($danger, $border-color), svg-tall($secondary, $border-color);
119
+ }
120
+ .blocks-duo-classic {
121
+ background-image: svg-square($danger, $border-color), svg-tall($success, $border-color);
122
+ }
123
+ .blocks-double-cool {
124
+ background-image:
125
+ svg-square($primary, $border-color), svg-square($info, $border-color), svg-tall($warning, $border-color),
126
+ svg-square($secondary, $border-color), svg-square($primary, $border-color), svg-tall($success, $border-color);
127
+ }
128
+ .blocks-double-sunset {
129
+ background-image:
130
+ svg-square($danger, $border-color), svg-square($secondary, $border-color), svg-tall($warning, $border-color),
131
+ svg-square($danger, $border-color), svg-square($secondary, $border-color), svg-tall($success, $border-color);
132
+ }
133
+ }
134
+
135
+ $blocks-border-light: #dee2e6;
136
+ $blocks-border-dark: #1e293b;
137
+
138
+ @include blocks-images($blocks-border-light);
139
+
140
+ .blocks {
141
+ background-position:
142
+ bottom right,
143
+ left 33px bottom,
144
+ bottom left;
145
+ background-repeat: no-repeat;
146
+ background-size:
147
+ 32px 32px,
148
+ 32px 32px,
149
+ 32px 64px;
150
+ }
151
+
152
+ .blocks-2 {
153
+ background-position:
154
+ top left,
155
+ right 33px top,
156
+ top right;
157
+ background-repeat: no-repeat;
158
+ background-size:
159
+ 32px 32px,
160
+ 32px 32px,
161
+ 32px 64px;
162
+ }
163
+
164
+ .blocks-3 {
165
+ background-position:
166
+ bottom left,
167
+ right 33px bottom,
168
+ bottom right;
169
+ background-repeat: no-repeat;
170
+ background-size:
171
+ 32px 32px,
172
+ 32px 32px,
173
+ 32px 64px;
174
+ }
175
+
176
+ .blocks-3-top {
177
+ background-position:
178
+ top left,
179
+ right 33px top,
180
+ top right;
181
+ background-repeat: no-repeat;
182
+ background-size:
183
+ 32px 32px,
184
+ 32px 32px,
185
+ 32px 64px;
186
+ }
187
+
188
+ .blocks-4 {
189
+ background-position:
190
+ top right,
191
+ left 33px top,
192
+ top left;
193
+ background-repeat: no-repeat;
194
+ background-size:
195
+ 32px 32px,
196
+ 32px 32px,
197
+ 32px 64px;
198
+ }
199
+
200
+ /* --- New Color Variations (Cool Theme) --- */
201
+ .blocks-cool {
202
+ background-position:
203
+ bottom right,
204
+ left 33px bottom,
205
+ bottom left;
206
+ background-repeat: no-repeat;
207
+ background-size:
208
+ 32px 32px,
209
+ 32px 32px,
210
+ 32px 64px;
211
+ }
212
+
213
+ .blocks-cool-top {
214
+ background-position:
215
+ top right,
216
+ left 33px top,
217
+ top left;
218
+ background-repeat: no-repeat;
219
+ background-size:
220
+ 32px 32px,
221
+ 32px 32px,
222
+ 32px 64px;
223
+ }
224
+
225
+ /* --- New Color Variations (Sunset / Warm Theme) --- */
226
+ .blocks-sunset {
227
+ background-position:
228
+ bottom right,
229
+ left 33px bottom,
230
+ bottom left;
231
+ background-repeat: no-repeat;
232
+ background-size:
233
+ 32px 32px,
234
+ 32px 32px,
235
+ 32px 64px;
236
+ }
237
+
238
+ .blocks-sunset-top {
239
+ background-position:
240
+ top right,
241
+ left 33px top,
242
+ top left;
243
+ background-repeat: no-repeat;
244
+ background-size:
245
+ 32px 32px,
246
+ 32px 32px,
247
+ 32px 64px;
248
+ }
249
+
250
+ .blocks-sunset-l-top {
251
+ background-position:
252
+ top left,
253
+ right top,
254
+ right 0 top 33px;
255
+ background-repeat: no-repeat;
256
+ background-size:
257
+ 64px 64px,
258
+ 64px 32px,
259
+ 64px 32px;
260
+ }
261
+
262
+ /* --- Minimal Varyasyonlar (Sadece 2 Grafik - Duo) --- */
263
+ .blocks-duo-cool {
264
+ background-position:
265
+ bottom right,
266
+ bottom left;
267
+ background-repeat: no-repeat;
268
+ background-size:
269
+ 32px 32px,
270
+ 32px 64px;
271
+ }
272
+
273
+ .blocks-duo-sunset {
274
+ background-position:
275
+ top right,
276
+ top left;
277
+ background-repeat: no-repeat;
278
+ background-size:
279
+ 32px 32px,
280
+ 32px 64px;
281
+ }
282
+
283
+ .blocks-duo-classic {
284
+ background-position:
285
+ bottom right,
286
+ bottom left;
287
+ background-repeat: no-repeat;
288
+ background-size:
289
+ 32px 32px,
290
+ 32px 64px;
291
+ }
292
+
293
+ /* --- Bidirectional Variations (Both Top and Bottom Corners - Double) --- */
294
+ .blocks-double-cool {
295
+ background-position:
296
+ top left, right 33px top, top right,
297
+ bottom right, left 33px bottom, bottom left;
298
+ background-repeat: no-repeat;
299
+ background-size:
300
+ 32px 32px, 32px 32px, 32px 64px,
301
+ 32px 32px, 32px 32px, 32px 64px;
302
+ }
303
+
304
+ .blocks-double-sunset {
305
+ background-position:
306
+ top left, right 33px top, top right,
307
+ bottom right, left 33px bottom, bottom left;
308
+ background-repeat: no-repeat;
309
+ background-size:
310
+ 32px 32px, 32px 32px, 32px 64px,
311
+ 32px 32px, 32px 32px, 32px 64px;
312
+ }
313
+
314
+ [data-bs-theme='dark'] {
315
+ @include blocks-images($blocks-border-dark);
316
+ }
317
+
318
+ /* Downscale background blocks decoration for mobile and tablet views preserving proportions */
319
+ @media (max-width: 991.98px) {
320
+ }
321
+
322
+ // Editor
323
+
324
+ .ProseMirror {
325
+ font-family: Arial, Helvetica, sans-serif;
326
+ display: block;
327
+ word-wrap: break-word !important;
328
+ height: 100%;
329
+ padding: 1rem;
330
+ outline: none;
331
+ border: none;
332
+ }
333
+
334
+ pre {
335
+ white-space: pre-wrap;
336
+ word-break: break-word;
337
+ }
338
+
339
+ .markdown-renderer img {
340
+ max-width: 100%;
341
+ }
342
+
343
+ .markdown-renderer blockquote {
344
+ border-left: 5px var(--pano-primary) solid;
345
+ padding-left: 8px;
346
+ }
347
+
348
+ .markdown-renderer strong {
349
+ font-weight: bolder;
350
+ }
351
+
352
+ .markdown-renderer code {
353
+ background-color: var(--pano-light);
354
+ }
355
+
356
+ // Scrollbar
357
+
358
+ ::-webkit-scrollbar {
359
+ width: 8px;
360
+ }
361
+
362
+ ::-webkit-scrollbar:horizontal {
363
+ height: 8px;
364
+ }
365
+
366
+ ::-webkit-scrollbar-track {
367
+ border-radius: 8px;
368
+ }
369
+
370
+ ::-webkit-scrollbar-thumb {
371
+ background: rgba($color: $light, $alpha: 0.1);
372
+ border-radius: 8px;
373
+ }
374
+
375
+ // Read Notification Effect
376
+
377
+ @keyframes readNotification {
378
+ 0% {
379
+ background-color: rgba($primary, 0.2);
380
+ }
381
+
382
+ 100% {
383
+ background-color: transparent;
384
+ }
385
+ }