@whitesev/pops 3.2.0 → 3.2.2

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 (126) hide show
  1. package/README.md +249 -249
  2. package/dist/index.amd.js +702 -667
  3. package/dist/index.amd.js.map +1 -1
  4. package/dist/index.amd.min.js +1 -1
  5. package/dist/index.amd.min.js.map +1 -1
  6. package/dist/index.cjs.js +702 -667
  7. package/dist/index.cjs.js.map +1 -1
  8. package/dist/index.cjs.min.js +1 -1
  9. package/dist/index.cjs.min.js.map +1 -1
  10. package/dist/index.esm.js +702 -667
  11. package/dist/index.esm.js.map +1 -1
  12. package/dist/index.esm.min.js +1 -1
  13. package/dist/index.esm.min.js.map +1 -1
  14. package/dist/index.iife.js +702 -667
  15. package/dist/index.iife.js.map +1 -1
  16. package/dist/index.iife.min.js +1 -1
  17. package/dist/index.iife.min.js.map +1 -1
  18. package/dist/index.system.js +702 -667
  19. package/dist/index.system.js.map +1 -1
  20. package/dist/index.system.min.js +1 -1
  21. package/dist/index.system.min.js.map +1 -1
  22. package/dist/index.umd.js +702 -667
  23. package/dist/index.umd.js.map +1 -1
  24. package/dist/index.umd.min.js +1 -1
  25. package/dist/index.umd.min.js.map +1 -1
  26. package/dist/types/src/components/folder/types/index.d.ts +43 -13
  27. package/dist/types/src/types/PopsDOMUtilsEventType.d.ts +313 -313
  28. package/dist/types/src/types/animation.d.ts +19 -19
  29. package/dist/types/src/types/button.d.ts +94 -94
  30. package/dist/types/src/types/components.d.ts +211 -211
  31. package/dist/types/src/types/event.d.ts +43 -43
  32. package/dist/types/src/types/global.d.ts +31 -31
  33. package/dist/types/src/types/icon.d.ts +32 -32
  34. package/dist/types/src/types/inst.d.ts +28 -28
  35. package/dist/types/src/types/main.d.ts +66 -66
  36. package/dist/types/src/types/mask.d.ts +52 -52
  37. package/dist/types/src/types/position.d.ts +60 -60
  38. package/package.json +27 -25
  39. package/src/Pops.ts +206 -206
  40. package/src/PopsAnimation.ts +32 -32
  41. package/src/PopsCSS.ts +54 -54
  42. package/src/PopsCore.ts +37 -37
  43. package/src/PopsIcon.ts +95 -95
  44. package/src/PopsInst.ts +21 -21
  45. package/src/components/alert/defaultConfig.ts +62 -62
  46. package/src/components/alert/index.ts +163 -163
  47. package/src/components/alert/types/index.ts +23 -23
  48. package/src/components/confirm/defaultConfig.ts +90 -90
  49. package/src/components/confirm/index.ts +165 -165
  50. package/src/components/confirm/types/index.ts +13 -17
  51. package/src/components/drawer/defaultConfig.ts +89 -89
  52. package/src/components/drawer/index.css +37 -37
  53. package/src/components/drawer/index.ts +245 -245
  54. package/src/components/drawer/types/index.ts +62 -61
  55. package/src/components/folder/defaultConfig.ts +151 -151
  56. package/src/components/folder/folderIcon.ts +28 -28
  57. package/src/components/folder/index.css +303 -303
  58. package/src/components/folder/index.ts +953 -932
  59. package/src/components/folder/types/index.ts +143 -110
  60. package/src/components/iframe/defaultConfig.ts +60 -60
  61. package/src/components/iframe/index.css +76 -76
  62. package/src/components/iframe/index.ts +331 -331
  63. package/src/components/iframe/types/index.ts +96 -96
  64. package/src/components/loading/defaultConfig.ts +29 -29
  65. package/src/components/loading/index.css +66 -66
  66. package/src/components/loading/index.ts +101 -101
  67. package/src/components/loading/types/index.ts +36 -34
  68. package/src/components/panel/css/components-select.css +84 -84
  69. package/src/components/panel/defaultConfig.ts +868 -868
  70. package/src/components/panel/handlerComponents.ts +3993 -3993
  71. package/src/components/panel/index.css +1403 -1401
  72. package/src/components/panel/index.ts +221 -221
  73. package/src/components/panel/types/components-button.ts +56 -56
  74. package/src/components/panel/types/components-common.ts +73 -73
  75. package/src/components/panel/types/components-container.ts +25 -25
  76. package/src/components/panel/types/components-deepMenu.ts +64 -64
  77. package/src/components/panel/types/components-input.ts +90 -90
  78. package/src/components/panel/types/components-own.ts +16 -16
  79. package/src/components/panel/types/components-select.ts +169 -169
  80. package/src/components/panel/types/components-selectMultiple.ts +105 -104
  81. package/src/components/panel/types/components-slider.ts +55 -55
  82. package/src/components/panel/types/components-switch.ts +33 -33
  83. package/src/components/panel/types/components-textarea.ts +45 -45
  84. package/src/components/panel/types/index.ts +244 -244
  85. package/src/components/prompt/defaultConfig.ts +94 -94
  86. package/src/components/prompt/index.css +34 -34
  87. package/src/components/prompt/index.ts +187 -215
  88. package/src/components/prompt/types/index.ts +57 -56
  89. package/src/components/rightClickMenu/defaultConfig.ts +103 -103
  90. package/src/components/rightClickMenu/index.css +115 -115
  91. package/src/components/rightClickMenu/index.ts +662 -662
  92. package/src/components/rightClickMenu/types/index.ts +145 -143
  93. package/src/components/searchSuggestion/defaultConfig.ts +63 -63
  94. package/src/components/searchSuggestion/index.ts +813 -813
  95. package/src/components/searchSuggestion/types/index.ts +244 -242
  96. package/src/components/tooltip/defaultConfig.ts +33 -33
  97. package/src/components/tooltip/index.css +199 -199
  98. package/src/components/tooltip/index.ts +617 -617
  99. package/src/components/tooltip/types/index.ts +123 -121
  100. package/src/config/CommonCSSClassName.ts +17 -17
  101. package/src/config/GlobalConfig.ts +63 -63
  102. package/src/css/animation.css +987 -987
  103. package/src/css/button.css +551 -551
  104. package/src/css/common.css +54 -54
  105. package/src/css/index.css +253 -253
  106. package/src/css/ninePalaceGridPosition.css +50 -50
  107. package/src/css/scrollbar.css +22 -22
  108. package/src/handler/PopsElementHandler.ts +303 -303
  109. package/src/handler/PopsHandler.ts +611 -611
  110. package/src/types/PopsDOMUtilsEventType.d.ts +313 -313
  111. package/src/types/animation.d.ts +19 -19
  112. package/src/types/button.d.ts +94 -94
  113. package/src/types/components.d.ts +211 -211
  114. package/src/types/event.d.ts +43 -43
  115. package/src/types/global.d.ts +31 -31
  116. package/src/types/icon.d.ts +32 -32
  117. package/src/types/inst.d.ts +28 -28
  118. package/src/types/main.d.ts +66 -66
  119. package/src/types/mask.d.ts +52 -52
  120. package/src/types/position.d.ts +60 -60
  121. package/src/utils/PopsDOMUtils.ts +2483 -2483
  122. package/src/utils/PopsDOMUtilsEventsConfig.ts +4 -4
  123. package/src/utils/PopsInstanceUtils.ts +714 -714
  124. package/src/utils/PopsMathUtils.ts +71 -71
  125. package/src/utils/PopsSafeUtils.ts +22 -22
  126. package/src/utils/PopsUtils.ts +421 -421
@@ -1,56 +1,57 @@
1
- import type {
2
- PopsTitleConfig,
3
- PopsDragConfig,
4
- PopsGeneralConfig,
5
- PopsMoreButtonConfig,
6
- } from "../../../types/components";
7
-
8
- /**
9
- * pops.prompt
10
- */
11
- export interface PopsPromptConfig
12
- extends PopsTitleConfig,
13
- PopsDragConfig,
14
- PopsMoreButtonConfig<{
15
- text: string;
16
- }>,
17
- PopsGeneralConfig {
18
- /**
19
- * 内容配置
20
- */
21
- content: {
22
- /**
23
- * 内容文字
24
- */
25
- text: string;
26
- /**
27
- * 是否是密码
28
- */
29
- password?: boolean;
30
- /**
31
- * 是否支持多行输入
32
- * @default false
33
- */
34
- row?: boolean;
35
- /**
36
- * 是否自动获取焦点
37
- * @default true
38
- */
39
- focus?: boolean;
40
- /**
41
- * 是否自动选择输入框的所有文字
42
- * @default false
43
- */
44
- select?: boolean;
45
- /**
46
- * 输入框内的提示文字
47
- * @default ""
48
- */
49
- placeholder?: string;
50
- /**
51
- * (可选)文字的自定义CSS
52
- * @default ""
53
- */
54
- style?: string;
55
- };
56
- }
1
+ import type {
2
+ PopsTitleConfig,
3
+ PopsDragConfig,
4
+ PopsGeneralConfig,
5
+ PopsMoreButtonConfig,
6
+ } from "../../../types/components";
7
+
8
+ /**
9
+ * pops.prompt
10
+ */
11
+ export interface PopsPromptConfig
12
+ extends
13
+ PopsTitleConfig,
14
+ PopsDragConfig,
15
+ PopsMoreButtonConfig<{
16
+ text: string;
17
+ }>,
18
+ PopsGeneralConfig {
19
+ /**
20
+ * 内容配置
21
+ */
22
+ content: {
23
+ /**
24
+ * 内容文字
25
+ */
26
+ text: string;
27
+ /**
28
+ * 是否是密码
29
+ */
30
+ password?: boolean;
31
+ /**
32
+ * 是否支持多行输入
33
+ * @default false
34
+ */
35
+ row?: boolean;
36
+ /**
37
+ * 是否自动获取焦点
38
+ * @default true
39
+ */
40
+ focus?: boolean;
41
+ /**
42
+ * 是否自动选择输入框的所有文字
43
+ * @default false
44
+ */
45
+ select?: boolean;
46
+ /**
47
+ * 输入框内的提示文字
48
+ * @default ""
49
+ */
50
+ placeholder?: string;
51
+ /**
52
+ * (可选)文字的自定义CSS
53
+ * @default ""
54
+ */
55
+ style?: string;
56
+ };
57
+ }
@@ -1,103 +1,103 @@
1
- import { PopsIcon } from "../../PopsIcon";
2
- import type { PopsRightClickMenuConfig } from "./types";
3
-
4
- export const PopsRightClickMenuDefaultConfig = (): DeepRequired<PopsRightClickMenuConfig> => {
5
- return {
6
- $target: document.documentElement,
7
- targetSelector: null,
8
- position: "fixed",
9
- data: [
10
- {
11
- icon: PopsIcon.getIcon("search")!,
12
- iconIsLoading: false,
13
- text: "搜索",
14
- item: [],
15
- callback(clickEvent, contextMenuEvent, $li) {
16
- console.log("点击:" + this.text, [clickEvent, contextMenuEvent, $li]);
17
- },
18
- },
19
- {
20
- icon: PopsIcon.getIcon("documentCopy")!,
21
- iconIsLoading: false,
22
- text: "复制",
23
- item: [],
24
- callback(clickEvent, contextMenuEvent, $li) {
25
- console.log("点击:" + this.text, [clickEvent, contextMenuEvent, $li]);
26
- },
27
- },
28
- {
29
- icon: PopsIcon.getIcon("delete")!,
30
- text: "删除",
31
- iconIsLoading: false,
32
- item: [],
33
- callback(clickEvent, contextMenuEvent, $li) {
34
- console.log("点击:" + this.text, [clickEvent, contextMenuEvent, $li]);
35
- },
36
- },
37
- {
38
- icon: PopsIcon.getIcon("loading")!,
39
- iconIsLoading: true,
40
- text: "加载",
41
- item: [],
42
- callback(clickEvent, contextMenuEvent, $li) {
43
- console.log("点击:" + this.text, [clickEvent, contextMenuEvent, $li]);
44
- return false;
45
- },
46
- },
47
- {
48
- icon: PopsIcon.getIcon("elemePlus")!,
49
- iconIsLoading: true,
50
- text: "饿了么",
51
- callback(clickEvent, contextMenuEvent, $li) {
52
- console.log("点击:" + this.text, [clickEvent, contextMenuEvent, $li]);
53
- return false;
54
- },
55
- item: [
56
- {
57
- icon: "",
58
- iconIsLoading: false,
59
- text: "处理文件",
60
- item: [],
61
- callback(clickEvent, contextMenuEvent, $li) {
62
- console.log("点击:" + this.text, [clickEvent, contextMenuEvent, $li]);
63
- },
64
- },
65
- {
66
- icon: "",
67
- iconIsLoading: false,
68
- text: "其它处理",
69
- callback(clickEvent, contextMenuEvent, $li) {
70
- console.log("点击:" + this.text, [clickEvent, contextMenuEvent, $li]);
71
- return false;
72
- },
73
- item: [
74
- {
75
- icon: PopsIcon.getIcon("view")!,
76
- iconIsLoading: false,
77
- text: "查看",
78
- item: [],
79
- callback(clickEvent, contextMenuEvent, $li) {
80
- console.log("点击:" + this.text, [clickEvent, contextMenuEvent, $li]);
81
- },
82
- },
83
- ],
84
- },
85
- ],
86
- },
87
- ],
88
- chileMenuLeftOrRightDistance: 0,
89
- childMenuTopOrBottomDistance: 0,
90
- useShadowRoot: true,
91
- className: "",
92
- isAnimation: false,
93
- useScaleAnimation: true,
94
- only: false,
95
- zIndex: 10000,
96
- preventDefault: true,
97
- style: null,
98
- beforeAppendToPageCallBack() {},
99
- limitPositionXInView: true,
100
- limitPositionYInView: true,
101
- beforeShowCallBack() {},
102
- };
103
- };
1
+ import { PopsIcon } from "../../PopsIcon";
2
+ import type { PopsRightClickMenuConfig } from "./types";
3
+
4
+ export const PopsRightClickMenuDefaultConfig = (): DeepRequired<PopsRightClickMenuConfig> => {
5
+ return {
6
+ $target: document.documentElement,
7
+ targetSelector: null,
8
+ position: "fixed",
9
+ data: [
10
+ {
11
+ icon: PopsIcon.getIcon("search")!,
12
+ iconIsLoading: false,
13
+ text: "搜索",
14
+ item: [],
15
+ callback(clickEvent, contextMenuEvent, $li) {
16
+ console.log("点击:" + this.text, [clickEvent, contextMenuEvent, $li]);
17
+ },
18
+ },
19
+ {
20
+ icon: PopsIcon.getIcon("documentCopy")!,
21
+ iconIsLoading: false,
22
+ text: "复制",
23
+ item: [],
24
+ callback(clickEvent, contextMenuEvent, $li) {
25
+ console.log("点击:" + this.text, [clickEvent, contextMenuEvent, $li]);
26
+ },
27
+ },
28
+ {
29
+ icon: PopsIcon.getIcon("delete")!,
30
+ text: "删除",
31
+ iconIsLoading: false,
32
+ item: [],
33
+ callback(clickEvent, contextMenuEvent, $li) {
34
+ console.log("点击:" + this.text, [clickEvent, contextMenuEvent, $li]);
35
+ },
36
+ },
37
+ {
38
+ icon: PopsIcon.getIcon("loading")!,
39
+ iconIsLoading: true,
40
+ text: "加载",
41
+ item: [],
42
+ callback(clickEvent, contextMenuEvent, $li) {
43
+ console.log("点击:" + this.text, [clickEvent, contextMenuEvent, $li]);
44
+ return false;
45
+ },
46
+ },
47
+ {
48
+ icon: PopsIcon.getIcon("elemePlus")!,
49
+ iconIsLoading: true,
50
+ text: "饿了么",
51
+ callback(clickEvent, contextMenuEvent, $li) {
52
+ console.log("点击:" + this.text, [clickEvent, contextMenuEvent, $li]);
53
+ return false;
54
+ },
55
+ item: [
56
+ {
57
+ icon: "",
58
+ iconIsLoading: false,
59
+ text: "处理文件",
60
+ item: [],
61
+ callback(clickEvent, contextMenuEvent, $li) {
62
+ console.log("点击:" + this.text, [clickEvent, contextMenuEvent, $li]);
63
+ },
64
+ },
65
+ {
66
+ icon: "",
67
+ iconIsLoading: false,
68
+ text: "其它处理",
69
+ callback(clickEvent, contextMenuEvent, $li) {
70
+ console.log("点击:" + this.text, [clickEvent, contextMenuEvent, $li]);
71
+ return false;
72
+ },
73
+ item: [
74
+ {
75
+ icon: PopsIcon.getIcon("view")!,
76
+ iconIsLoading: false,
77
+ text: "查看",
78
+ item: [],
79
+ callback(clickEvent, contextMenuEvent, $li) {
80
+ console.log("点击:" + this.text, [clickEvent, contextMenuEvent, $li]);
81
+ },
82
+ },
83
+ ],
84
+ },
85
+ ],
86
+ },
87
+ ],
88
+ chileMenuLeftOrRightDistance: 0,
89
+ childMenuTopOrBottomDistance: 0,
90
+ useShadowRoot: true,
91
+ className: "",
92
+ isAnimation: false,
93
+ useScaleAnimation: true,
94
+ only: false,
95
+ zIndex: 10000,
96
+ preventDefault: true,
97
+ style: null,
98
+ beforeAppendToPageCallBack() {},
99
+ limitPositionXInView: true,
100
+ limitPositionYInView: true,
101
+ beforeShowCallBack() {},
102
+ };
103
+ };
@@ -1,115 +1,115 @@
1
- .pops-rightClickMenu {
2
- --pops-right-context-color: #000000;
3
- --pops-right-context-bg-color: rgb(255, 255, 255, 0.733);
4
- --pops-right-context-backdrop-filter: blur(10px);
5
- --pops-right-context-z-index: 10000;
6
- --pops-right-context-bd-radius: 6px;
7
- --pops-right-context-menu-shadow-color: rgb(114, 114, 114, 0.251);
8
- --pops-right-context-menu-row-bd-radius: 6px;
9
- --pops-right-context-menu-row-visited-color: rgb(0, 0, 0, 0.067);
10
- --pops-right-context-menu-row-hover-color: rgb(0, 0, 0, 0.067);
11
- }
12
- .pops-rightClickMenu * {
13
- -webkit-box-sizing: border-box;
14
- box-sizing: border-box;
15
- margin: 0;
16
- padding: 0;
17
- -webkit-tap-highlight-color: transparent;
18
- scrollbar-width: thin;
19
- }
20
- .pops-rightClickMenu {
21
- position: fixed;
22
- z-index: var(--pops-right-context-z-index);
23
- text-align: center;
24
- border-radius: var(--pops-right-context-bd-radius);
25
- font-size: 16px;
26
- font-weight: 500;
27
- color: var(--pops-right-context-color);
28
- background: var(--pops-right-context-bg-color);
29
- box-shadow: 0 0.25rem 0.5rem 0.125rem var(--pops-right-context-menu-shadow-color);
30
- -webkit-backdrop-filter: var(--pops-right-context-backdrop-filter);
31
- backdrop-filter: var(--pops-right-context-backdrop-filter);
32
- }
33
- .pops-rightClickMenu[data-position="absolute"] {
34
- position: absolute;
35
- }
36
- /* scale动画 */
37
- .pops-rightClickMenu-anim-scale {
38
- transition:
39
- opacity 150ms cubic-bezier(0.2, 0, 0.2, 1),
40
- transform 150ms cubic-bezier(0.2, 0, 0.2, 1);
41
- transform: scale(0.85);
42
- }
43
- .pops-rightClickMenu-anim-scale-open {
44
- transform: scale(1);
45
- }
46
- .pops-rightClickMenu-anim-scale-not-open {
47
- opacity: 0;
48
- }
49
- /* 展开动画 */
50
- .pops-rightClickMenu-anim-grid {
51
- display: grid;
52
- transition: 0.3s;
53
- grid-template-rows: 0fr;
54
- }
55
- .pops-rightClickMenu-anim-show {
56
- grid-template-rows: 1fr;
57
- }
58
- .pops-rightClickMenu-is-visited {
59
- background: var(--pops-right-context-menu-row-visited-color);
60
- }
61
- i.pops-rightClickMenu-icon {
62
- height: 1em;
63
- width: 1em;
64
- line-height: normal;
65
- align-content: center;
66
- display: inline-flex;
67
- justify-content: center;
68
- align-items: center;
69
- position: relative;
70
- fill: currentColor;
71
- color: inherit;
72
- font-size: inherit;
73
- margin-right: 6px;
74
- }
75
- i.pops-rightClickMenu-icon[is-loading="true"] {
76
- animation: rotating 2s linear infinite;
77
- }
78
- .pops-rightClickMenu li:hover {
79
- background: var(--pops-right-context-menu-row-hover-color);
80
- cursor: pointer;
81
- }
82
- .pops-rightClickMenu ul {
83
- margin: 0;
84
- padding: 0;
85
- display: flex;
86
- flex-direction: column;
87
- align-items: flex-start;
88
- justify-content: center;
89
- overflow: hidden;
90
- }
91
- .pops-rightClickMenu ul li {
92
- padding: 5px 10px;
93
- margin: 5px 5px;
94
- border-radius: var(--pops-right-context-menu-row-bd-radius);
95
- display: flex;
96
- width: -moz-available;
97
- width: -webkit-fill-available;
98
- text-align: left;
99
- align-items: center;
100
- -webkit-user-select: none;
101
- -moz-user-select: none;
102
- -ms-user-select: none;
103
- user-select: none;
104
- }
105
-
106
- @media (prefers-color-scheme: dark) {
107
- /*.pops-rightClickMenu {
108
- --pops-right-context-menu-shadow-color: #3c3c3c;
109
- }*/
110
- }
111
- @media (hover: hover) {
112
- .pops-rightClickMenu ul li:active {
113
- transform: scale(0.98);
114
- }
115
- }
1
+ .pops-rightClickMenu {
2
+ --pops-right-context-color: #000000;
3
+ --pops-right-context-bg-color: rgb(255, 255, 255, 0.733);
4
+ --pops-right-context-backdrop-filter: blur(10px);
5
+ --pops-right-context-z-index: 10000;
6
+ --pops-right-context-bd-radius: 6px;
7
+ --pops-right-context-menu-shadow-color: rgb(114, 114, 114, 0.251);
8
+ --pops-right-context-menu-row-bd-radius: 6px;
9
+ --pops-right-context-menu-row-visited-color: rgb(0, 0, 0, 0.067);
10
+ --pops-right-context-menu-row-hover-color: rgb(0, 0, 0, 0.067);
11
+ }
12
+ .pops-rightClickMenu * {
13
+ -webkit-box-sizing: border-box;
14
+ box-sizing: border-box;
15
+ margin: 0;
16
+ padding: 0;
17
+ -webkit-tap-highlight-color: transparent;
18
+ scrollbar-width: thin;
19
+ }
20
+ .pops-rightClickMenu {
21
+ position: fixed;
22
+ z-index: var(--pops-right-context-z-index);
23
+ text-align: center;
24
+ border-radius: var(--pops-right-context-bd-radius);
25
+ font-size: 16px;
26
+ font-weight: 500;
27
+ color: var(--pops-right-context-color);
28
+ background: var(--pops-right-context-bg-color);
29
+ box-shadow: 0 0.25rem 0.5rem 0.125rem var(--pops-right-context-menu-shadow-color);
30
+ -webkit-backdrop-filter: var(--pops-right-context-backdrop-filter);
31
+ backdrop-filter: var(--pops-right-context-backdrop-filter);
32
+ }
33
+ .pops-rightClickMenu[data-position="absolute"] {
34
+ position: absolute;
35
+ }
36
+ /* scale动画 */
37
+ .pops-rightClickMenu-anim-scale {
38
+ transition:
39
+ opacity 150ms cubic-bezier(0.2, 0, 0.2, 1),
40
+ transform 150ms cubic-bezier(0.2, 0, 0.2, 1);
41
+ transform: scale(0.85);
42
+ }
43
+ .pops-rightClickMenu-anim-scale-open {
44
+ transform: scale(1);
45
+ }
46
+ .pops-rightClickMenu-anim-scale-not-open {
47
+ opacity: 0;
48
+ }
49
+ /* 展开动画 */
50
+ .pops-rightClickMenu-anim-grid {
51
+ display: grid;
52
+ transition: 0.3s;
53
+ grid-template-rows: 0fr;
54
+ }
55
+ .pops-rightClickMenu-anim-show {
56
+ grid-template-rows: 1fr;
57
+ }
58
+ .pops-rightClickMenu-is-visited {
59
+ background: var(--pops-right-context-menu-row-visited-color);
60
+ }
61
+ i.pops-rightClickMenu-icon {
62
+ height: 1em;
63
+ width: 1em;
64
+ line-height: normal;
65
+ align-content: center;
66
+ display: inline-flex;
67
+ justify-content: center;
68
+ align-items: center;
69
+ position: relative;
70
+ fill: currentColor;
71
+ color: inherit;
72
+ font-size: inherit;
73
+ margin-right: 6px;
74
+ }
75
+ i.pops-rightClickMenu-icon[is-loading="true"] {
76
+ animation: rotating 2s linear infinite;
77
+ }
78
+ .pops-rightClickMenu li:hover {
79
+ background: var(--pops-right-context-menu-row-hover-color);
80
+ cursor: pointer;
81
+ }
82
+ .pops-rightClickMenu ul {
83
+ margin: 0;
84
+ padding: 0;
85
+ display: flex;
86
+ flex-direction: column;
87
+ align-items: flex-start;
88
+ justify-content: center;
89
+ overflow: hidden;
90
+ }
91
+ .pops-rightClickMenu ul li {
92
+ padding: 5px 10px;
93
+ margin: 5px 5px;
94
+ border-radius: var(--pops-right-context-menu-row-bd-radius);
95
+ display: flex;
96
+ width: -moz-available;
97
+ width: -webkit-fill-available;
98
+ text-align: left;
99
+ align-items: center;
100
+ -webkit-user-select: none;
101
+ -moz-user-select: none;
102
+ -ms-user-select: none;
103
+ user-select: none;
104
+ }
105
+
106
+ @media (prefers-color-scheme: dark) {
107
+ /*.pops-rightClickMenu {
108
+ --pops-right-context-menu-shadow-color: #3c3c3c;
109
+ }*/
110
+ }
111
+ @media (hover: hover) {
112
+ .pops-rightClickMenu ul li:active {
113
+ transform: scale(0.98);
114
+ }
115
+ }