@plotdb/quill 1.0.0
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/LICENSE +31 -0
- package/README.md +3 -0
- package/assets/base.styl +309 -0
- package/assets/bubble/toolbar.styl +14 -0
- package/assets/bubble/tooltip.styl +49 -0
- package/assets/bubble.styl +45 -0
- package/assets/core.styl +215 -0
- package/assets/favicon.png +0 -0
- package/assets/icons/align-center.svg +5 -0
- package/assets/icons/align-justify.svg +5 -0
- package/assets/icons/align-left.svg +5 -0
- package/assets/icons/align-right.svg +5 -0
- package/assets/icons/attachment.svg +3 -0
- package/assets/icons/audio.svg +5 -0
- package/assets/icons/authorship.svg +5 -0
- package/assets/icons/background.svg +52 -0
- package/assets/icons/blockquote.svg +6 -0
- package/assets/icons/bold.svg +4 -0
- package/assets/icons/clean.svg +7 -0
- package/assets/icons/code.svg +5 -0
- package/assets/icons/color.svg +5 -0
- package/assets/icons/comment.svg +3 -0
- package/assets/icons/direction-ltr.svg +7 -0
- package/assets/icons/direction-rtl.svg +7 -0
- package/assets/icons/dropdown.svg +4 -0
- package/assets/icons/embed.svg +3 -0
- package/assets/icons/emoji.svg +6 -0
- package/assets/icons/float-center.svg +5 -0
- package/assets/icons/float-full.svg +5 -0
- package/assets/icons/float-left.svg +7 -0
- package/assets/icons/float-right.svg +7 -0
- package/assets/icons/font.svg +5 -0
- package/assets/icons/formula.svg +5 -0
- package/assets/icons/hashtag.svg +6 -0
- package/assets/icons/header-2.svg +3 -0
- package/assets/icons/header-3.svg +3 -0
- package/assets/icons/header-4.svg +3 -0
- package/assets/icons/header-5.svg +3 -0
- package/assets/icons/header-6.svg +3 -0
- package/assets/icons/header.svg +3 -0
- package/assets/icons/horizontal-rule.svg +4 -0
- package/assets/icons/image.svg +5 -0
- package/assets/icons/indent.svg +6 -0
- package/assets/icons/italic.svg +5 -0
- package/assets/icons/link.svg +5 -0
- package/assets/icons/list-bullet.svg +8 -0
- package/assets/icons/list-check.svg +8 -0
- package/assets/icons/list-ordered.svg +9 -0
- package/assets/icons/map.svg +5 -0
- package/assets/icons/mention.svg +4 -0
- package/assets/icons/more.svg +3 -0
- package/assets/icons/outdent.svg +6 -0
- package/assets/icons/redo.svg +4 -0
- package/assets/icons/size-decrease.svg +5 -0
- package/assets/icons/size-increase.svg +6 -0
- package/assets/icons/size.svg +6 -0
- package/assets/icons/spacing.svg +9 -0
- package/assets/icons/speech.svg +6 -0
- package/assets/icons/strike.svg +5 -0
- package/assets/icons/subscript.svg +4 -0
- package/assets/icons/superscript.svg +4 -0
- package/assets/icons/table-border-all.svg +5 -0
- package/assets/icons/table-border-bottom.svg +28 -0
- package/assets/icons/table-border-left.svg +28 -0
- package/assets/icons/table-border-none.svg +25 -0
- package/assets/icons/table-border-outside.svg +35 -0
- package/assets/icons/table-border-right.svg +28 -0
- package/assets/icons/table-border-top.svg +28 -0
- package/assets/icons/table-delete-cells.svg +13 -0
- package/assets/icons/table-delete-columns.svg +8 -0
- package/assets/icons/table-delete-rows.svg +9 -0
- package/assets/icons/table-insert-cells.svg +13 -0
- package/assets/icons/table-insert-columns.svg +8 -0
- package/assets/icons/table-insert-rows.svg +9 -0
- package/assets/icons/table-merge-cells.svg +4 -0
- package/assets/icons/table-unmerge-cells.svg +7 -0
- package/assets/icons/table.svg +11 -0
- package/assets/icons/underline.svg +4 -0
- package/assets/icons/undo.svg +4 -0
- package/assets/icons/video.svg +14 -0
- package/assets/snow/toolbar.styl +26 -0
- package/assets/snow/tooltip.styl +53 -0
- package/assets/snow.styl +18 -0
- package/blots/block.d.ts +34 -0
- package/blots/block.js +182 -0
- package/blots/block.js.map +1 -0
- package/blots/break.d.ts +8 -0
- package/blots/break.js +21 -0
- package/blots/break.js.map +1 -0
- package/blots/container.d.ts +4 -0
- package/blots/container.js +4 -0
- package/blots/container.js.map +1 -0
- package/blots/cursor.d.ts +26 -0
- package/blots/cursor.js +170 -0
- package/blots/cursor.js.map +1 -0
- package/blots/embed.d.ts +18 -0
- package/blots/embed.js +72 -0
- package/blots/embed.js.map +1 -0
- package/blots/inline.d.ts +12 -0
- package/blots/inline.js +48 -0
- package/blots/inline.js.map +1 -0
- package/blots/scroll.d.ts +49 -0
- package/blots/scroll.js +349 -0
- package/blots/scroll.js.map +1 -0
- package/blots/text.d.ts +5 -0
- package/blots/text.js +16 -0
- package/blots/text.js.map +1 -0
- package/core/composition.d.ts +12 -0
- package/core/composition.js +44 -0
- package/core/composition.js.map +1 -0
- package/core/editor.d.ts +28 -0
- package/core/editor.js +404 -0
- package/core/editor.js.map +1 -0
- package/core/emitter.d.ts +33 -0
- package/core/emitter.js +78 -0
- package/core/emitter.js.map +1 -0
- package/core/instances.d.ts +3 -0
- package/core/instances.js +2 -0
- package/core/instances.js.map +1 -0
- package/core/logger.d.ts +7 -0
- package/core/logger.js +24 -0
- package/core/logger.js.map +1 -0
- package/core/module.d.ts +8 -0
- package/core/module.js +10 -0
- package/core/module.js.map +1 -0
- package/core/quill.d.ts +218 -0
- package/core/quill.js +630 -0
- package/core/quill.js.map +1 -0
- package/core/selection.d.ts +74 -0
- package/core/selection.js +374 -0
- package/core/selection.js.map +1 -0
- package/core/theme.d.ts +32 -0
- package/core/theme.js +28 -0
- package/core/theme.js.map +1 -0
- package/core/utils/createRegistryWithFormats.d.ts +5 -0
- package/core/utils/createRegistryWithFormats.js +29 -0
- package/core/utils/createRegistryWithFormats.js.map +1 -0
- package/core/utils/scrollRectIntoView.d.ts +11 -0
- package/core/utils/scrollRectIntoView.js +110 -0
- package/core/utils/scrollRectIntoView.js.map +1 -0
- package/core.d.ts +7 -0
- package/core.js +37 -0
- package/core.js.map +1 -0
- package/dist/quill.bubble.css +10 -0
- package/dist/quill.bubble.css.map +1 -0
- package/dist/quill.core.css +10 -0
- package/dist/quill.core.css.map +1 -0
- package/dist/quill.core.js +3 -0
- package/dist/quill.core.js.LICENSE.txt +7 -0
- package/dist/quill.core.js.map +1 -0
- package/dist/quill.js +3 -0
- package/dist/quill.js.LICENSE.txt +7 -0
- package/dist/quill.js.map +1 -0
- package/dist/quill.snow.css +10 -0
- package/dist/quill.snow.css.map +1 -0
- package/formats/align.d.ts +5 -0
- package/formats/align.js +10 -0
- package/formats/align.js.map +1 -0
- package/formats/background.d.ts +5 -0
- package/formats/background.js +10 -0
- package/formats/background.js.map +1 -0
- package/formats/blockquote.d.ts +6 -0
- package/formats/blockquote.js +7 -0
- package/formats/blockquote.js.map +1 -0
- package/formats/bold.d.ts +11 -0
- package/formats/bold.js +19 -0
- package/formats/bold.js.map +1 -0
- package/formats/code.d.ts +15 -0
- package/formats/code.js +44 -0
- package/formats/code.js.map +1 -0
- package/formats/color.d.ts +7 -0
- package/formats/color.js +18 -0
- package/formats/color.js.map +1 -0
- package/formats/direction.d.ts +5 -0
- package/formats/direction.js +10 -0
- package/formats/direction.js.map +1 -0
- package/formats/font.d.ts +7 -0
- package/formats/font.js +14 -0
- package/formats/font.js.map +1 -0
- package/formats/formula.d.ts +10 -0
- package/formats/formula.js +34 -0
- package/formats/formula.js.map +1 -0
- package/formats/header.d.ts +7 -0
- package/formats/header.js +10 -0
- package/formats/header.js.map +1 -0
- package/formats/image.d.ts +13 -0
- package/formats/image.js +44 -0
- package/formats/image.js.map +1 -0
- package/formats/indent.d.ts +8 -0
- package/formats/indent.js +30 -0
- package/formats/indent.js.map +1 -0
- package/formats/italic.d.ts +6 -0
- package/formats/italic.js +7 -0
- package/formats/italic.js.map +1 -0
- package/formats/link.d.ts +13 -0
- package/formats/link.js +36 -0
- package/formats/link.js.map +1 -0
- package/formats/list.d.ts +13 -0
- package/formats/list.js +50 -0
- package/formats/list.js.map +1 -0
- package/formats/script.d.ts +8 -0
- package/formats/script.js +21 -0
- package/formats/script.js.map +1 -0
- package/formats/size.d.ts +4 -0
- package/formats/size.js +11 -0
- package/formats/size.js.map +1 -0
- package/formats/strike.d.ts +6 -0
- package/formats/strike.js +7 -0
- package/formats/strike.js.map +1 -0
- package/formats/table.d.ts +45 -0
- package/formats/table.js +176 -0
- package/formats/table.js.map +1 -0
- package/formats/underline.d.ts +6 -0
- package/formats/underline.js +7 -0
- package/formats/underline.js.map +1 -0
- package/formats/video.d.ts +14 -0
- package/formats/video.js +49 -0
- package/formats/video.js.map +1 -0
- package/modules/clipboard.d.ts +43 -0
- package/modules/clipboard.js +477 -0
- package/modules/clipboard.js.map +1 -0
- package/modules/history.d.ts +36 -0
- package/modules/history.js +178 -0
- package/modules/history.js.map +1 -0
- package/modules/input.d.ts +10 -0
- package/modules/input.js +83 -0
- package/modules/input.js.map +1 -0
- package/modules/keyboard.d.ts +58 -0
- package/modules/keyboard.js +713 -0
- package/modules/keyboard.js.map +1 -0
- package/modules/normalizeExternalHTML/index.d.ts +2 -0
- package/modules/normalizeExternalHTML/index.js +12 -0
- package/modules/normalizeExternalHTML/index.js.map +1 -0
- package/modules/normalizeExternalHTML/normalizers/googleDocs.d.ts +1 -0
- package/modules/normalizeExternalHTML/normalizers/googleDocs.js +24 -0
- package/modules/normalizeExternalHTML/normalizers/googleDocs.js.map +1 -0
- package/modules/normalizeExternalHTML/normalizers/msWord.d.ts +1 -0
- package/modules/normalizeExternalHTML/normalizers/msWord.js +87 -0
- package/modules/normalizeExternalHTML/normalizers/msWord.js.map +1 -0
- package/modules/syntax.d.ts +50 -0
- package/modules/syntax.js +332 -0
- package/modules/syntax.js.map +1 -0
- package/modules/table.d.ts +20 -0
- package/modules/table.js +125 -0
- package/modules/table.js.map +1 -0
- package/modules/tableEmbed.d.ts +27 -0
- package/modules/tableEmbed.js +209 -0
- package/modules/tableEmbed.js.map +1 -0
- package/modules/toolbar.d.ts +24 -0
- package/modules/toolbar.js +265 -0
- package/modules/toolbar.js.map +1 -0
- package/modules/uiNode.d.ts +19 -0
- package/modules/uiNode.js +95 -0
- package/modules/uiNode.js.map +1 -0
- package/modules/uploader.d.ts +15 -0
- package/modules/uploader.js +69 -0
- package/modules/uploader.js.map +1 -0
- package/package.json +102 -0
- package/quill.d.ts +5 -0
- package/quill.js +82 -0
- package/quill.js.map +1 -0
- package/themes/base.d.ts +35 -0
- package/themes/base.js +257 -0
- package/themes/base.js.map +1 -0
- package/themes/bubble.d.ts +18 -0
- package/themes/bubble.js +114 -0
- package/themes/bubble.js.map +1 -0
- package/themes/snow.d.ts +9 -0
- package/themes/snow.js +122 -0
- package/themes/snow.js.map +1 -0
- package/types.d.js +2 -0
- package/types.d.js.map +1 -0
- package/ui/color-picker.d.ts +7 -0
- package/ui/color-picker.js +30 -0
- package/ui/color-picker.js.map +1 -0
- package/ui/icon-picker.d.ts +7 -0
- package/ui/icon-picker.js +22 -0
- package/ui/icon-picker.js.map +1 -0
- package/ui/icons.d.ts +49 -0
- package/ui/icons.js +82 -0
- package/ui/icons.js.map +1 -0
- package/ui/picker.d.ts +16 -0
- package/ui/picker.js +171 -0
- package/ui/picker.js.map +1 -0
- package/ui/tooltip.d.ts +12 -0
- package/ui/tooltip.js +56 -0
- package/ui/tooltip.js.map +1 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
Copyright (c) 2017-2024, Slab
|
|
2
|
+
Copyright (c) 2014, Jason Chen
|
|
3
|
+
Copyright (c) 2013, salesforce.com
|
|
4
|
+
All rights reserved.
|
|
5
|
+
|
|
6
|
+
Redistribution and use in source and binary forms, with or without
|
|
7
|
+
modification, are permitted provided that the following conditions
|
|
8
|
+
are met:
|
|
9
|
+
|
|
10
|
+
1. Redistributions of source code must retain the above copyright
|
|
11
|
+
notice, this list of conditions and the following disclaimer.
|
|
12
|
+
|
|
13
|
+
2. Redistributions in binary form must reproduce the above copyright
|
|
14
|
+
notice, this list of conditions and the following disclaimer in the
|
|
15
|
+
documentation and/or other materials provided with the distribution.
|
|
16
|
+
|
|
17
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
18
|
+
contributors may be used to endorse or promote products derived from
|
|
19
|
+
this software without specific prior written permission.
|
|
20
|
+
|
|
21
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
|
22
|
+
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
|
23
|
+
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
|
|
24
|
+
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
25
|
+
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
26
|
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
27
|
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
28
|
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
29
|
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
30
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
31
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
package/README.md
ADDED
package/assets/base.styl
ADDED
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
// Styles shared between snow and bubble
|
|
2
|
+
|
|
3
|
+
controlHeight = 24px
|
|
4
|
+
inputPaddingWidth = 5px
|
|
5
|
+
inputPaddingHeight = 3px
|
|
6
|
+
|
|
7
|
+
colorItemMargin = 2px
|
|
8
|
+
colorItemSize = 16px
|
|
9
|
+
colorItemsPerRow = 7
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
.ql-{themeName}.ql-toolbar, .ql-{themeName} .ql-toolbar
|
|
13
|
+
&:after
|
|
14
|
+
clear: both
|
|
15
|
+
content: ''
|
|
16
|
+
display: table
|
|
17
|
+
|
|
18
|
+
button
|
|
19
|
+
background: none
|
|
20
|
+
border: none
|
|
21
|
+
cursor: pointer
|
|
22
|
+
display: inline-block
|
|
23
|
+
float: left
|
|
24
|
+
height: controlHeight
|
|
25
|
+
padding: inputPaddingHeight inputPaddingWidth
|
|
26
|
+
width: controlHeight + (inputPaddingWidth - inputPaddingHeight)*2
|
|
27
|
+
|
|
28
|
+
svg
|
|
29
|
+
float: left
|
|
30
|
+
height: 100%
|
|
31
|
+
|
|
32
|
+
&:active:hover
|
|
33
|
+
outline: none
|
|
34
|
+
|
|
35
|
+
input.ql-image[type=file]
|
|
36
|
+
display: none
|
|
37
|
+
|
|
38
|
+
button:hover, button:focus, button.ql-active,
|
|
39
|
+
.ql-picker-label:hover, .ql-picker-label.ql-active,
|
|
40
|
+
.ql-picker-item:hover, .ql-picker-item.ql-selected
|
|
41
|
+
color: activeColor
|
|
42
|
+
.ql-fill, .ql-stroke.ql-fill
|
|
43
|
+
fill: activeColor
|
|
44
|
+
.ql-stroke, .ql-stroke-miter
|
|
45
|
+
stroke: activeColor
|
|
46
|
+
|
|
47
|
+
// Fix for iOS not losing hover on touch
|
|
48
|
+
@media (pointer: coarse)
|
|
49
|
+
.ql-{themeName}.ql-toolbar, .ql-{themeName} .ql-toolbar
|
|
50
|
+
button:hover:not(.ql-active)
|
|
51
|
+
color: inactiveColor
|
|
52
|
+
.ql-fill, .ql-stroke.ql-fill
|
|
53
|
+
fill: inactiveColor
|
|
54
|
+
.ql-stroke, .ql-stroke-miter
|
|
55
|
+
stroke: inactiveColor
|
|
56
|
+
|
|
57
|
+
.ql-{themeName}
|
|
58
|
+
box-sizing: border-box
|
|
59
|
+
*
|
|
60
|
+
box-sizing: border-box
|
|
61
|
+
|
|
62
|
+
.ql-hidden
|
|
63
|
+
display: none
|
|
64
|
+
.ql-out-bottom, .ql-out-top
|
|
65
|
+
visibility: hidden
|
|
66
|
+
|
|
67
|
+
.ql-tooltip
|
|
68
|
+
position: absolute
|
|
69
|
+
transform: translateY(10px)
|
|
70
|
+
a
|
|
71
|
+
cursor: pointer
|
|
72
|
+
text-decoration: none
|
|
73
|
+
.ql-tooltip.ql-flip
|
|
74
|
+
transform: translateY(-10px)
|
|
75
|
+
|
|
76
|
+
.ql-formats
|
|
77
|
+
&:after
|
|
78
|
+
clear: both
|
|
79
|
+
content: ''
|
|
80
|
+
display: table
|
|
81
|
+
display: inline-block
|
|
82
|
+
vertical-align: middle
|
|
83
|
+
|
|
84
|
+
.ql-stroke
|
|
85
|
+
fill: none
|
|
86
|
+
stroke: inactiveColor
|
|
87
|
+
stroke-linecap: round
|
|
88
|
+
stroke-linejoin: round
|
|
89
|
+
stroke-width: 2
|
|
90
|
+
.ql-stroke-miter
|
|
91
|
+
fill: none
|
|
92
|
+
stroke: inactiveColor
|
|
93
|
+
stroke-miterlimit: 10
|
|
94
|
+
stroke-width: 2
|
|
95
|
+
|
|
96
|
+
.ql-fill, .ql-stroke.ql-fill
|
|
97
|
+
fill: inactiveColor
|
|
98
|
+
|
|
99
|
+
.ql-empty
|
|
100
|
+
fill: none
|
|
101
|
+
.ql-even
|
|
102
|
+
fill-rule: evenodd
|
|
103
|
+
.ql-thin, .ql-stroke.ql-thin
|
|
104
|
+
stroke-width: 1
|
|
105
|
+
.ql-transparent
|
|
106
|
+
opacity: 0.4
|
|
107
|
+
|
|
108
|
+
.ql-direction
|
|
109
|
+
svg:last-child
|
|
110
|
+
display: none
|
|
111
|
+
.ql-direction.ql-active
|
|
112
|
+
svg:last-child
|
|
113
|
+
display: inline
|
|
114
|
+
svg:first-child
|
|
115
|
+
display: none
|
|
116
|
+
|
|
117
|
+
.ql-editor
|
|
118
|
+
h1
|
|
119
|
+
font-size: 2em
|
|
120
|
+
h2
|
|
121
|
+
font-size: 1.5em
|
|
122
|
+
h3
|
|
123
|
+
font-size: 1.17em
|
|
124
|
+
h4
|
|
125
|
+
font-size: 1em
|
|
126
|
+
h5
|
|
127
|
+
font-size: 0.83em
|
|
128
|
+
h6
|
|
129
|
+
font-size: 0.67em
|
|
130
|
+
a
|
|
131
|
+
text-decoration: underline
|
|
132
|
+
blockquote
|
|
133
|
+
border-left: 4px solid #ccc
|
|
134
|
+
margin-bottom: 5px
|
|
135
|
+
margin-top: 5px
|
|
136
|
+
padding-left: 16px
|
|
137
|
+
code, .ql-code-block-container
|
|
138
|
+
background-color: #f0f0f0
|
|
139
|
+
border-radius: 3px
|
|
140
|
+
.ql-code-block-container
|
|
141
|
+
margin-bottom: 5px
|
|
142
|
+
margin-top: 5px
|
|
143
|
+
padding: 5px 10px
|
|
144
|
+
code
|
|
145
|
+
font-size: 85%
|
|
146
|
+
padding: 2px 4px
|
|
147
|
+
.ql-code-block-container
|
|
148
|
+
background-color: #23241f
|
|
149
|
+
color: #f8f8f2
|
|
150
|
+
overflow: visible
|
|
151
|
+
img
|
|
152
|
+
max-width: 100%
|
|
153
|
+
|
|
154
|
+
.ql-picker
|
|
155
|
+
color: inactiveColor
|
|
156
|
+
display: inline-block
|
|
157
|
+
float: left
|
|
158
|
+
font-size: 14px
|
|
159
|
+
font-weight: 500
|
|
160
|
+
height: controlHeight
|
|
161
|
+
position: relative
|
|
162
|
+
vertical-align: middle
|
|
163
|
+
.ql-picker-label
|
|
164
|
+
cursor: pointer
|
|
165
|
+
display: inline-block
|
|
166
|
+
height: 100%
|
|
167
|
+
padding-left: 8px
|
|
168
|
+
padding-right: 2px
|
|
169
|
+
position: relative
|
|
170
|
+
width: 100%
|
|
171
|
+
&::before
|
|
172
|
+
display: inline-block
|
|
173
|
+
line-height: 22px
|
|
174
|
+
.ql-picker-options
|
|
175
|
+
background-color: backgroundColor
|
|
176
|
+
display: none
|
|
177
|
+
min-width: 100%
|
|
178
|
+
padding: 4px 8px
|
|
179
|
+
position: absolute
|
|
180
|
+
white-space: nowrap
|
|
181
|
+
.ql-picker-item
|
|
182
|
+
cursor: pointer
|
|
183
|
+
display: block
|
|
184
|
+
padding-bottom: 5px
|
|
185
|
+
padding-top: 5px
|
|
186
|
+
.ql-picker.ql-expanded
|
|
187
|
+
.ql-picker-label
|
|
188
|
+
color: borderColor
|
|
189
|
+
z-index: 2
|
|
190
|
+
.ql-fill
|
|
191
|
+
fill: borderColor
|
|
192
|
+
.ql-stroke
|
|
193
|
+
stroke: borderColor
|
|
194
|
+
.ql-picker-options
|
|
195
|
+
display: block
|
|
196
|
+
margin-top: -1px
|
|
197
|
+
top: 100%
|
|
198
|
+
z-index: 1
|
|
199
|
+
|
|
200
|
+
.ql-color-picker, .ql-icon-picker
|
|
201
|
+
width: controlHeight + 4
|
|
202
|
+
.ql-picker-label
|
|
203
|
+
padding: 2px 4px
|
|
204
|
+
svg
|
|
205
|
+
right: 4px
|
|
206
|
+
.ql-icon-picker
|
|
207
|
+
.ql-picker-options
|
|
208
|
+
padding: 4px 0px
|
|
209
|
+
.ql-picker-item
|
|
210
|
+
height: controlHeight
|
|
211
|
+
width: controlHeight
|
|
212
|
+
padding: 2px 4px
|
|
213
|
+
.ql-color-picker
|
|
214
|
+
.ql-picker-options
|
|
215
|
+
padding: inputPaddingHeight inputPaddingWidth
|
|
216
|
+
width: (colorItemSize + 2*colorItemMargin) * colorItemsPerRow + 2*inputPaddingWidth + 2 // +2 for the border
|
|
217
|
+
.ql-picker-item
|
|
218
|
+
border: 1px solid transparent
|
|
219
|
+
float: left
|
|
220
|
+
height: colorItemSize
|
|
221
|
+
margin: colorItemMargin
|
|
222
|
+
padding: 0px
|
|
223
|
+
width: colorItemSize
|
|
224
|
+
|
|
225
|
+
.ql-picker:not(.ql-color-picker):not(.ql-icon-picker)
|
|
226
|
+
svg
|
|
227
|
+
position: absolute
|
|
228
|
+
margin-top: -9px
|
|
229
|
+
right: 0
|
|
230
|
+
top: 50%
|
|
231
|
+
width: 18px
|
|
232
|
+
|
|
233
|
+
.ql-picker.ql-header, .ql-picker.ql-font, .ql-picker.ql-size
|
|
234
|
+
.ql-picker-label[data-label]:not([data-label='']),
|
|
235
|
+
.ql-picker-item[data-label]:not([data-label=''])
|
|
236
|
+
&::before
|
|
237
|
+
content: attr(data-label)
|
|
238
|
+
|
|
239
|
+
.ql-picker.ql-header
|
|
240
|
+
width: 98px
|
|
241
|
+
.ql-picker-label::before,
|
|
242
|
+
.ql-picker-item::before
|
|
243
|
+
content: 'Normal'
|
|
244
|
+
for num in (1..6)
|
|
245
|
+
.ql-picker-label[data-value=\"{num}\"]::before,
|
|
246
|
+
.ql-picker-item[data-value=\"{num}\"]::before
|
|
247
|
+
content: 'Heading ' + num
|
|
248
|
+
.ql-picker-item[data-value="1"]::before
|
|
249
|
+
font-size: 2em
|
|
250
|
+
.ql-picker-item[data-value="2"]::before
|
|
251
|
+
font-size: 1.5em
|
|
252
|
+
.ql-picker-item[data-value="3"]::before
|
|
253
|
+
font-size: 1.17em
|
|
254
|
+
.ql-picker-item[data-value="4"]::before
|
|
255
|
+
font-size: 1em
|
|
256
|
+
.ql-picker-item[data-value="5"]::before
|
|
257
|
+
font-size: 0.83em
|
|
258
|
+
.ql-picker-item[data-value="6"]::before
|
|
259
|
+
font-size: 0.67em
|
|
260
|
+
|
|
261
|
+
.ql-picker.ql-font
|
|
262
|
+
width: 108px
|
|
263
|
+
.ql-picker-label::before,
|
|
264
|
+
.ql-picker-item::before
|
|
265
|
+
content: 'Sans Serif'
|
|
266
|
+
.ql-picker-label[data-value=serif]::before,
|
|
267
|
+
.ql-picker-item[data-value=serif]::before
|
|
268
|
+
content: 'Serif'
|
|
269
|
+
.ql-picker-label[data-value=monospace]::before,
|
|
270
|
+
.ql-picker-item[data-value=monospace]::before
|
|
271
|
+
content: 'Monospace'
|
|
272
|
+
.ql-picker-item[data-value=serif]::before
|
|
273
|
+
font-family: Georgia, Times New Roman, serif
|
|
274
|
+
.ql-picker-item[data-value=monospace]::before
|
|
275
|
+
font-family: Monaco, Courier New, monospace
|
|
276
|
+
|
|
277
|
+
.ql-picker.ql-size
|
|
278
|
+
width: 98px
|
|
279
|
+
.ql-picker-label::before,
|
|
280
|
+
.ql-picker-item::before
|
|
281
|
+
content: 'Normal'
|
|
282
|
+
.ql-picker-label[data-value=small]::before,
|
|
283
|
+
.ql-picker-item[data-value=small]::before
|
|
284
|
+
content: 'Small'
|
|
285
|
+
.ql-picker-label[data-value=large]::before,
|
|
286
|
+
.ql-picker-item[data-value=large]::before
|
|
287
|
+
content: 'Large'
|
|
288
|
+
.ql-picker-label[data-value=huge]::before,
|
|
289
|
+
.ql-picker-item[data-value=huge]::before
|
|
290
|
+
content: 'Huge'
|
|
291
|
+
.ql-picker-item[data-value=small]::before
|
|
292
|
+
font-size: 10px
|
|
293
|
+
.ql-picker-item[data-value=large]::before
|
|
294
|
+
font-size: 18px
|
|
295
|
+
.ql-picker-item[data-value=huge]::before
|
|
296
|
+
font-size: 32px
|
|
297
|
+
|
|
298
|
+
.ql-color-picker.ql-background
|
|
299
|
+
.ql-picker-item
|
|
300
|
+
background-color: #fff
|
|
301
|
+
.ql-color-picker.ql-color
|
|
302
|
+
.ql-picker-item
|
|
303
|
+
background-color: #000
|
|
304
|
+
|
|
305
|
+
.ql-code-block-container
|
|
306
|
+
position: relative
|
|
307
|
+
.ql-ui
|
|
308
|
+
right: 5px
|
|
309
|
+
top: 5px
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
arrowWidth = 6px
|
|
2
|
+
|
|
3
|
+
.ql-bubble
|
|
4
|
+
.ql-toolbar
|
|
5
|
+
.ql-formats
|
|
6
|
+
margin: 8px 12px 8px 0px
|
|
7
|
+
.ql-formats:first-child
|
|
8
|
+
margin-left: 12px
|
|
9
|
+
|
|
10
|
+
.ql-color-picker
|
|
11
|
+
svg
|
|
12
|
+
margin: 1px
|
|
13
|
+
.ql-picker-item.ql-selected, .ql-picker-item:hover
|
|
14
|
+
border-color: activeColor
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
arrowWidth = 6px
|
|
2
|
+
|
|
3
|
+
.ql-bubble
|
|
4
|
+
.ql-tooltip
|
|
5
|
+
background-color: backgroundColor
|
|
6
|
+
border-radius: 25px
|
|
7
|
+
color: textColor
|
|
8
|
+
.ql-tooltip-arrow
|
|
9
|
+
border-left: arrowWidth solid transparent
|
|
10
|
+
border-right: arrowWidth solid transparent
|
|
11
|
+
content: " "
|
|
12
|
+
display: block
|
|
13
|
+
left: 50%
|
|
14
|
+
margin-left: -1 * arrowWidth
|
|
15
|
+
position: absolute
|
|
16
|
+
.ql-tooltip:not(.ql-flip) .ql-tooltip-arrow
|
|
17
|
+
border-bottom: arrowWidth solid backgroundColor
|
|
18
|
+
top: -1 * arrowWidth
|
|
19
|
+
.ql-tooltip.ql-flip .ql-tooltip-arrow
|
|
20
|
+
border-top: arrowWidth solid backgroundColor
|
|
21
|
+
bottom: -1 * arrowWidth
|
|
22
|
+
|
|
23
|
+
.ql-tooltip.ql-editing
|
|
24
|
+
.ql-tooltip-editor
|
|
25
|
+
display: block
|
|
26
|
+
.ql-formats
|
|
27
|
+
visibility: hidden
|
|
28
|
+
|
|
29
|
+
.ql-tooltip-editor
|
|
30
|
+
display: none
|
|
31
|
+
input[type=text]
|
|
32
|
+
background: transparent
|
|
33
|
+
border: none
|
|
34
|
+
color: textColor
|
|
35
|
+
font-size: 13px
|
|
36
|
+
height: 100%
|
|
37
|
+
outline: none
|
|
38
|
+
padding: 10px 20px
|
|
39
|
+
position: absolute
|
|
40
|
+
width: 100%
|
|
41
|
+
a
|
|
42
|
+
&:before
|
|
43
|
+
color: inactiveColor
|
|
44
|
+
content: "\00D7"
|
|
45
|
+
font-size: 16px
|
|
46
|
+
font-weight: bold
|
|
47
|
+
top: 10px
|
|
48
|
+
position: absolute
|
|
49
|
+
right: 20px
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
themeName = 'bubble'
|
|
2
|
+
activeColor = #fff
|
|
3
|
+
borderColor = #777
|
|
4
|
+
backgroundColor = #444
|
|
5
|
+
inactiveColor = #ccc
|
|
6
|
+
shadowColor = #ddd
|
|
7
|
+
textColor = #fff
|
|
8
|
+
|
|
9
|
+
@import './core'
|
|
10
|
+
@import './base'
|
|
11
|
+
@import './bubble/*'
|
|
12
|
+
|
|
13
|
+
.ql-container.ql-bubble:not(.ql-disabled)
|
|
14
|
+
a:not(.ql-close)
|
|
15
|
+
position: relative
|
|
16
|
+
white-space: nowrap
|
|
17
|
+
a:not(.ql-close)::before
|
|
18
|
+
background-color: #444
|
|
19
|
+
border-radius: 15px
|
|
20
|
+
top: -5px
|
|
21
|
+
font-size: 12px
|
|
22
|
+
color: #fff
|
|
23
|
+
content: attr(href)
|
|
24
|
+
font-weight: normal
|
|
25
|
+
overflow: hidden
|
|
26
|
+
padding: 5px 15px
|
|
27
|
+
text-decoration: none
|
|
28
|
+
z-index: 1
|
|
29
|
+
a:not(.ql-close)::after
|
|
30
|
+
border-top: 6px solid #444
|
|
31
|
+
border-left: 6px solid transparent
|
|
32
|
+
border-right: 6px solid transparent
|
|
33
|
+
top: 0
|
|
34
|
+
content: " "
|
|
35
|
+
height: 0
|
|
36
|
+
width: 0
|
|
37
|
+
a:not(.ql-close)::before, a:not(.ql-close)::after
|
|
38
|
+
left: 0
|
|
39
|
+
margin-left: 50%
|
|
40
|
+
position: absolute
|
|
41
|
+
transform: translate(-50%, -100%)
|
|
42
|
+
transition: visibility 0s ease 200ms
|
|
43
|
+
visibility: hidden
|
|
44
|
+
a:not(.ql-close):hover::before, a:not(.ql-close):hover::after
|
|
45
|
+
visibility: visible
|
package/assets/core.styl
ADDED
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
// Styles necessary for Quill
|
|
2
|
+
|
|
3
|
+
LIST_STYLE = decimal lower-alpha lower-roman
|
|
4
|
+
LIST_STYLE_WIDTH = 1.2em
|
|
5
|
+
LIST_STYLE_MARGIN = 0.3em
|
|
6
|
+
LIST_STYLE_OUTER_WIDTH = LIST_STYLE_MARGIN + LIST_STYLE_WIDTH
|
|
7
|
+
MAX_INDENT = 9
|
|
8
|
+
|
|
9
|
+
resets(arr)
|
|
10
|
+
unquote('list-' + join(' list-', arr))
|
|
11
|
+
|
|
12
|
+
.ql-container
|
|
13
|
+
box-sizing: border-box
|
|
14
|
+
font-family: Helvetica, Arial, sans-serif
|
|
15
|
+
font-size: 13px
|
|
16
|
+
height: 100%
|
|
17
|
+
margin: 0px
|
|
18
|
+
position: relative
|
|
19
|
+
|
|
20
|
+
.ql-container.ql-disabled
|
|
21
|
+
.ql-tooltip
|
|
22
|
+
visibility: hidden
|
|
23
|
+
|
|
24
|
+
.ql-container:not(.ql-disabled)
|
|
25
|
+
li[data-list=checked],
|
|
26
|
+
li[data-list=unchecked]
|
|
27
|
+
> .ql-ui
|
|
28
|
+
cursor: pointer
|
|
29
|
+
|
|
30
|
+
.ql-clipboard
|
|
31
|
+
left: -100000px
|
|
32
|
+
height: 1px
|
|
33
|
+
overflow-y: hidden
|
|
34
|
+
position: absolute
|
|
35
|
+
top: 50%
|
|
36
|
+
p
|
|
37
|
+
margin: 0
|
|
38
|
+
padding: 0
|
|
39
|
+
|
|
40
|
+
.ql-editor
|
|
41
|
+
box-sizing: border-box
|
|
42
|
+
counter-reset: resets(0..MAX_INDENT)
|
|
43
|
+
line-height: 1.42
|
|
44
|
+
height: 100%
|
|
45
|
+
outline: none
|
|
46
|
+
overflow-y: auto
|
|
47
|
+
padding: 12px 15px
|
|
48
|
+
tab-size: 4
|
|
49
|
+
-moz-tab-size: 4
|
|
50
|
+
text-align: left
|
|
51
|
+
white-space: pre-wrap
|
|
52
|
+
word-wrap: break-word
|
|
53
|
+
> *
|
|
54
|
+
cursor: text
|
|
55
|
+
|
|
56
|
+
p, ol, pre, blockquote, h1, h2, h3, h4, h5, h6
|
|
57
|
+
margin: 0
|
|
58
|
+
padding: 0
|
|
59
|
+
p, h1, h2, h3, h4, h5, h6
|
|
60
|
+
@supports (counter-set: none)
|
|
61
|
+
counter-set: resets(0..MAX_INDENT)
|
|
62
|
+
@supports not (counter-set: none)
|
|
63
|
+
counter-reset: resets(0..MAX_INDENT)
|
|
64
|
+
table
|
|
65
|
+
border-collapse: collapse
|
|
66
|
+
td
|
|
67
|
+
border: 1px solid #000
|
|
68
|
+
padding: 2px 5px
|
|
69
|
+
ol
|
|
70
|
+
padding-left: 1.5em
|
|
71
|
+
li
|
|
72
|
+
list-style-type: none
|
|
73
|
+
padding-left: LIST_STYLE_OUTER_WIDTH
|
|
74
|
+
position: relative
|
|
75
|
+
|
|
76
|
+
> .ql-ui:before
|
|
77
|
+
display: inline-block
|
|
78
|
+
margin-left: -1*LIST_STYLE_OUTER_WIDTH
|
|
79
|
+
margin-right: LIST_STYLE_MARGIN
|
|
80
|
+
text-align: right
|
|
81
|
+
white-space: nowrap
|
|
82
|
+
width: LIST_STYLE_WIDTH
|
|
83
|
+
|
|
84
|
+
li[data-list=checked],
|
|
85
|
+
li[data-list=unchecked]
|
|
86
|
+
> .ql-ui
|
|
87
|
+
color: #777
|
|
88
|
+
|
|
89
|
+
li[data-list=bullet] > .ql-ui:before
|
|
90
|
+
content: '\2022'
|
|
91
|
+
li[data-list=checked] > .ql-ui:before
|
|
92
|
+
content: '\2611'
|
|
93
|
+
li[data-list=unchecked] > .ql-ui:before
|
|
94
|
+
content: '\2610'
|
|
95
|
+
|
|
96
|
+
li[data-list]
|
|
97
|
+
@supports (counter-set: none)
|
|
98
|
+
counter-set: resets(1..MAX_INDENT)
|
|
99
|
+
@supports not (counter-set: none)
|
|
100
|
+
counter-reset: resets(1..MAX_INDENT)
|
|
101
|
+
|
|
102
|
+
li[data-list=ordered]
|
|
103
|
+
counter-increment: list-0
|
|
104
|
+
> .ql-ui:before
|
|
105
|
+
content: unquote('counter(list-0, ' + LIST_STYLE[0] + ')') '. '
|
|
106
|
+
for num in (1..MAX_INDENT)
|
|
107
|
+
li[data-list=ordered].ql-indent-{num}
|
|
108
|
+
counter-increment: unquote('list-' + num)
|
|
109
|
+
> .ql-ui:before
|
|
110
|
+
content: unquote('counter(list-' + num + ', ' + LIST_STYLE[num%3] + ')') '. '
|
|
111
|
+
if (num < MAX_INDENT)
|
|
112
|
+
li[data-list].ql-indent-{num}
|
|
113
|
+
@supports (counter-set: none)
|
|
114
|
+
counter-set: resets((num+1)..MAX_INDENT)
|
|
115
|
+
@supports not (counter-set: none)
|
|
116
|
+
counter-reset: resets((num+1)..MAX_INDENT)
|
|
117
|
+
|
|
118
|
+
for num in (1..MAX_INDENT)
|
|
119
|
+
.ql-indent-{num}:not(.ql-direction-rtl)
|
|
120
|
+
padding-left: (3*num)em
|
|
121
|
+
li.ql-indent-{num}:not(.ql-direction-rtl)
|
|
122
|
+
padding-left: (3*num + LIST_STYLE_OUTER_WIDTH)em
|
|
123
|
+
.ql-indent-{num}.ql-direction-rtl.ql-align-right
|
|
124
|
+
padding-right: (3*num)em
|
|
125
|
+
li.ql-indent-{num}.ql-direction-rtl.ql-align-right
|
|
126
|
+
padding-right: (3*num + LIST_STYLE_OUTER_WIDTH)em
|
|
127
|
+
|
|
128
|
+
li.ql-direction-rtl
|
|
129
|
+
padding-right: LIST_STYLE_OUTER_WIDTH
|
|
130
|
+
> .ql-ui:before
|
|
131
|
+
margin-left: LIST_STYLE_MARGIN
|
|
132
|
+
margin-right: -1*LIST_STYLE_OUTER_WIDTH
|
|
133
|
+
text-align: left
|
|
134
|
+
|
|
135
|
+
table
|
|
136
|
+
table-layout: fixed
|
|
137
|
+
width: 100%
|
|
138
|
+
td
|
|
139
|
+
outline: none
|
|
140
|
+
|
|
141
|
+
.ql-code-block-container
|
|
142
|
+
font-family: monospace
|
|
143
|
+
|
|
144
|
+
.ql-video
|
|
145
|
+
display: block
|
|
146
|
+
max-width: 100%
|
|
147
|
+
.ql-video.ql-align-center
|
|
148
|
+
margin: 0 auto
|
|
149
|
+
.ql-video.ql-align-right
|
|
150
|
+
margin: 0 0 0 auto
|
|
151
|
+
|
|
152
|
+
.ql-bg-black
|
|
153
|
+
background-color: rgb(0,0,0)
|
|
154
|
+
.ql-bg-red
|
|
155
|
+
background-color: rgb(230,0,0)
|
|
156
|
+
.ql-bg-orange
|
|
157
|
+
background-color: rgb(255,153,0)
|
|
158
|
+
.ql-bg-yellow
|
|
159
|
+
background-color: rgb(255,255,0)
|
|
160
|
+
.ql-bg-green
|
|
161
|
+
background-color: rgb(0,138,0)
|
|
162
|
+
.ql-bg-blue
|
|
163
|
+
background-color: rgb(0,102,204)
|
|
164
|
+
.ql-bg-purple
|
|
165
|
+
background-color: rgb(153,51,255)
|
|
166
|
+
|
|
167
|
+
.ql-color-white
|
|
168
|
+
color: rgb(255,255,255)
|
|
169
|
+
.ql-color-red
|
|
170
|
+
color: rgb(230,0,0)
|
|
171
|
+
.ql-color-orange
|
|
172
|
+
color: rgb(255,153,0)
|
|
173
|
+
.ql-color-yellow
|
|
174
|
+
color: rgb(255,255,0)
|
|
175
|
+
.ql-color-green
|
|
176
|
+
color: rgb(0,138,0)
|
|
177
|
+
.ql-color-blue
|
|
178
|
+
color: rgb(0,102,204)
|
|
179
|
+
.ql-color-purple
|
|
180
|
+
color: rgb(153,51,255)
|
|
181
|
+
|
|
182
|
+
.ql-font-serif
|
|
183
|
+
font-family: Georgia, Times New Roman, serif
|
|
184
|
+
.ql-font-monospace
|
|
185
|
+
font-family: Monaco, Courier New, monospace
|
|
186
|
+
|
|
187
|
+
.ql-size-small
|
|
188
|
+
font-size: 0.75em
|
|
189
|
+
.ql-size-large
|
|
190
|
+
font-size: 1.5em
|
|
191
|
+
.ql-size-huge
|
|
192
|
+
font-size: 2.5em
|
|
193
|
+
|
|
194
|
+
.ql-direction-rtl
|
|
195
|
+
direction: rtl
|
|
196
|
+
text-align: inherit
|
|
197
|
+
|
|
198
|
+
.ql-align-center
|
|
199
|
+
text-align: center
|
|
200
|
+
.ql-align-justify
|
|
201
|
+
text-align: justify
|
|
202
|
+
.ql-align-right
|
|
203
|
+
text-align: right
|
|
204
|
+
|
|
205
|
+
.ql-ui
|
|
206
|
+
position: absolute
|
|
207
|
+
|
|
208
|
+
.ql-editor.ql-blank::before
|
|
209
|
+
color: rgba(0,0,0,0.6)
|
|
210
|
+
content: attr(data-placeholder)
|
|
211
|
+
font-style: italic
|
|
212
|
+
left: 15px
|
|
213
|
+
pointer-events: none
|
|
214
|
+
position: absolute
|
|
215
|
+
right: 15px
|
|
Binary file
|