@hailin-zheng/editor-core 2.2.19 → 2.2.21

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.
package/editor.css CHANGED
@@ -1,5 +1,5 @@
1
1
  .svg-container {
2
- background: #f2f4f7;
2
+ background: #C0C6CF;
3
3
  overflow: hidden;
4
4
  flex: 1;
5
5
  height: 100%;
@@ -13,7 +13,7 @@
13
13
  pointer-events: none;
14
14
  }
15
15
 
16
- .drop-container {
16
+ .absolute-container {
17
17
  position: absolute;
18
18
  left: 0;
19
19
  top: 0;
@@ -46,140 +46,6 @@
46
46
  }
47
47
  }
48
48
 
49
- .magic-radio,
50
- .magic-checkbox {
51
- position: absolute;
52
- display: none;
53
- }
54
-
55
- .magic-radio[disabled],
56
- .magic-checkbox[disabled] {
57
- cursor: not-allowed;
58
- }
59
-
60
- .magic-radio + label,
61
- .magic-checkbox + label {
62
- position: relative;
63
- display: block;
64
- padding-left: 30px;
65
- cursor: pointer;
66
- vertical-align: middle;
67
- }
68
-
69
- .magic-radio + label:hover:before,
70
- .magic-checkbox + label:hover:before {
71
- animation-duration: 0.4s;
72
- animation-fill-mode: both;
73
- animation-name: hover-color;
74
- }
75
-
76
- .magic-radio + label:before,
77
- .magic-checkbox + label:before {
78
- position: absolute;
79
- top: 0;
80
- left: 0;
81
- display: inline-block;
82
- width: 20px;
83
- height: 20px;
84
- content: "";
85
- border: 1px solid #c0c0c0;
86
- }
87
-
88
- .magic-radio + label:after,
89
- .magic-checkbox + label:after {
90
- position: absolute;
91
- display: none;
92
- content: "";
93
- }
94
-
95
- .magic-radio[disabled] + label,
96
- .magic-checkbox[disabled] + label {
97
- cursor: not-allowed;
98
- color: #e4e4e4;
99
- }
100
-
101
- .magic-radio[disabled] + label:hover,
102
- .magic-radio[disabled] + label:before,
103
- .magic-radio[disabled] + label:after,
104
- .magic-checkbox[disabled] + label:hover,
105
- .magic-checkbox[disabled] + label:before,
106
- .magic-checkbox[disabled] + label:after {
107
- cursor: not-allowed;
108
- }
109
-
110
- .magic-radio[disabled] + label:hover:before,
111
- .magic-checkbox[disabled] + label:hover:before {
112
- border: 1px solid #e4e4e4;
113
- animation-name: none;
114
- }
115
-
116
- .magic-radio[disabled] + label:before,
117
- .magic-checkbox[disabled] + label:before {
118
- border-color: #e4e4e4;
119
- }
120
-
121
- .magic-radio:checked + label:before,
122
- .magic-checkbox:checked + label:before {
123
- animation-name: none;
124
- }
125
-
126
- .magic-radio:checked + label:after,
127
- .magic-checkbox:checked + label:after {
128
- display: block;
129
- }
130
-
131
- .magic-radio + label:before {
132
- border-radius: 50%;
133
- }
134
-
135
- .magic-radio + label:after {
136
- top: 7px;
137
- left: 7px;
138
- width: 8px;
139
- height: 8px;
140
- border-radius: 50%;
141
- background: #3e97eb;
142
- }
143
-
144
- .magic-radio:checked + label:before {
145
- border: 1px solid #3e97eb;
146
- }
147
-
148
- .magic-radio:checked[disabled] + label:before {
149
- border: 1px solid #c9e2f9;
150
- }
151
-
152
- .magic-radio:checked[disabled] + label:after {
153
- background: #c9e2f9;
154
- }
155
-
156
- .magic-checkbox + label:before {
157
- border-radius: 3px;
158
- }
159
-
160
- .magic-checkbox + label:after {
161
- top: 2px;
162
- left: 7px;
163
- box-sizing: border-box;
164
- width: 6px;
165
- height: 12px;
166
- transform: rotate(45deg);
167
- border-width: 2px;
168
- border-style: solid;
169
- border-color: #fff;
170
- border-top: 0;
171
- border-left: 0;
172
- }
173
-
174
- .magic-checkbox:checked + label:before {
175
- border: #3e97eb;
176
- background: #3e97eb;
177
- }
178
-
179
- .magic-checkbox:checked[disabled] + label:before {
180
- border: #c9e2f9;
181
- background: #c9e2f9;
182
- }
183
49
 
184
50
  /* 样式化 radio box 的外观 */
185
51
  .editor-list-radiobox {
@@ -373,7 +239,7 @@
373
239
  color: #fff;
374
240
  }
375
241
 
376
- .editor-calendar-body-day-item--selected {
242
+ .editor-calendar-item--selected {
377
243
  outline: #2b88d8 1px solid;
378
244
  font-weight: bold;
379
245
  }
@@ -584,15 +450,7 @@
584
450
  /*.scale-container > *{*/
585
451
  /* transform-origin: center top;*/
586
452
  /*}*/
587
- .doc-rule {
588
- position: absolute;
589
- font-size: 0;
590
- background: white;
591
- box-shadow: rgba(158, 161, 165, 0.4) 0px 2px 12px 0px;
592
- cursor: default;
593
- left: 0;
594
- top: 0;
595
- }
453
+
596
454
 
597
455
  .editor-calendar-footer-left {
598
456
  display: flex;
@@ -696,3 +554,86 @@
696
554
  .editor-suggestions > li:last-child {
697
555
  border-bottom: none; /* 去掉最后一个列表项的底部边框线 */
698
556
  }
557
+ .doc-rule {
558
+ position: absolute;
559
+ font-size: 0;
560
+ background: white;
561
+ box-shadow: rgba(158, 161, 165, 0.4) 0px 2px 12px 0px;
562
+ cursor: default;
563
+ left: 0;
564
+ top: 0;
565
+ }
566
+ .rule-thumb-container{
567
+ position: absolute;
568
+ cursor: pointer;
569
+ }
570
+ .rule-thumb-top{
571
+ top:0;
572
+ }
573
+ .rule-thumb-left{
574
+ top: calc(100% - 10px);
575
+ }
576
+
577
+ .rule-wrapper{
578
+ position: absolute;
579
+ transform-origin: 0px 0px;
580
+ top: 0;
581
+ }
582
+
583
+ .editor-search-box {
584
+ position: absolute;
585
+ top: 0;
586
+ left: 0;
587
+ display: flex;
588
+ align-items: center;
589
+ background-color: #f3f3f3;
590
+ padding: 2px;
591
+ color: #333;
592
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
593
+ }
594
+
595
+ .editor-search-box .search-input {
596
+ flex-grow: 1;
597
+ padding: 2px;
598
+ margin-right: 4px;
599
+ border: 1px solid #ccc;
600
+ border-radius: 4px;
601
+ color: #333;
602
+ background-color: white;
603
+ font-size: 14px;
604
+ }
605
+
606
+ .editor-search-box .icon-button {
607
+ background-color: transparent;
608
+ border: none;
609
+ color: #666;
610
+ cursor: pointer;
611
+ display: flex;
612
+ align-items: center;
613
+ justify-content: center;
614
+ padding: 2px;
615
+ }
616
+
617
+ .editor-search-box .icon-button:hover {
618
+ background-color: #e0e0e0;
619
+ color: #333;
620
+ }
621
+
622
+ .editor-search-box .search-count {
623
+ margin: 0 8px;
624
+ color: #666;
625
+ font-size: 14px;
626
+ }
627
+
628
+ .editor-search-box .material-icons {
629
+ font-size: 16px;
630
+ }
631
+
632
+ .editor-search-box input:focus,
633
+ button:focus {
634
+ outline: none;
635
+ }
636
+
637
+ .editor-search-box input::placeholder {
638
+ color: #aaa;
639
+ }