Damien Elmes
|
2ea5f5abde
|
Merge pull request #1134 from hgiesel/formatblock
Add block formatting options to Editor
|
2021-04-17 09:40:52 +10:00 |
|
Henrik Giesel
|
65442c5a84
|
Make clearer which parts of ButtonGroup css are theming related
|
2021-04-16 18:24:43 +02:00 |
|
Henrik Giesel
|
01870e68fa
|
Adjust ButtonDropdown for night mode
|
2021-04-16 17:14:47 +02:00 |
|
Henrik Giesel
|
a6f74a387a
|
Satisfy ./script/svelte-check
|
2021-04-16 03:10:39 +02:00 |
|
Henrik Giesel
|
a6b102fadd
|
Add license headers
|
2021-04-15 15:59:52 +02:00 |
|
Henrik Giesel
|
5c601db45f
|
Fix most of svelte-check issues for editor-toolbar
|
2021-04-15 13:09:51 +02:00 |
|
Henrik Giesel
|
f4afb3e823
|
Style light mode button bar with borders
- whereas night mode toolbar has no visible borders
|
2021-04-15 13:09:50 +02:00 |
|
Henrik Giesel
|
350ef044f2
|
Add theming support for DropdownItem and DropdownMenu
|
2021-04-15 13:09:50 +02:00 |
|
Henrik Giesel
|
a0de8bef55
|
Switch from core to base CSS for editor view
|
2021-04-15 13:09:50 +02:00 |
|
Henrik Giesel
|
639cfa57a3
|
Rely more heavily on bootstrap provided types for editor-toolbar
|
2021-04-15 13:09:50 +02:00 |
|
Henrik Giesel
|
7bf675d75e
|
Remove $$restProps and make explicit dropdown support in buttons
* Currently LabelButton, CommandIconButtton, and IconButton support dropdowns
|
2021-04-15 13:09:50 +02:00 |
|
Henrik Giesel
|
98dc8a56f2
|
Introduce ToolbarItem as a better base type instead of DynamicSvelteComponent
|
2021-04-15 13:09:50 +02:00 |
|
Henrik Giesel
|
fa00dbc01e
|
Make buttons and button groups easily toggleable through hidden web component
|
2021-04-15 13:09:50 +02:00 |
|
Henrik Giesel
|
8ba2b383eb
|
Remove props property in favor of $$restProps
|
2021-04-15 13:09:50 +02:00 |
|
Henrik Giesel
|
64fbbbfcd0
|
Get rid of types.d.ts in favor of DynamicSvelteComponent
|
2021-04-15 13:09:50 +02:00 |
|
Henrik Giesel
|
5520863278
|
Pass wraps more similiar to how size is passed via CSS variables
|
2021-04-15 13:09:50 +02:00 |
|
Henrik Giesel
|
9ff521126d
|
Make wraps a passable prop to EditorToolbar
Can be set to nowrap via document.getElementByID("editorToolbar").component.$set({ wraps: false })
|
2021-04-15 13:09:50 +02:00 |
|
Henrik Giesel
|
5d2d9396f9
|
Change overflow of button groups to overflow-y auto
Avoids erratic creation of scrollbars
|
2021-04-15 13:09:50 +02:00 |
|
Henrik Giesel
|
162f13fee1
|
Add ButtonDropdown for dropdowns like the MathJax dropdown on AnkiMobile
|
2021-04-15 13:09:49 +02:00 |
|
Henrik Giesel
|
bdcdcc7a56
|
Make Toolbar resizable through a single CSS variable --toolbar-size
|
2021-04-15 13:09:49 +02:00 |
|
Henrik Giesel
|
f033672045
|
Add SelectButton
|
2021-04-15 13:09:49 +02:00 |
|
Henrik Giesel
|
c61d5a501d
|
Make it so you can include DropdownMenus on all kinds of buttons
|
2021-04-15 13:09:49 +02:00 |
|
Henrik Giesel
|
934b426541
|
Move display:flex from outer div to ButtonGroup ul
|
2021-04-15 13:09:49 +02:00 |
|
Henrik Giesel
|
904aa3d45a
|
Move initialization logic from EditorToolbar to index.ts
|
2021-04-15 13:09:49 +02:00 |
|
Henrik Giesel
|
d976dd711c
|
Simplify General Toolbar structure
|
2021-04-15 13:09:49 +02:00 |
|
Henrik Giesel
|
14577c07ed
|
Display ButtonGroups inline-block
|
2021-04-15 13:09:49 +02:00 |
|
Henrik Giesel
|
50a2929e93
|
Add ButtonGroup for grouping of toolbar items
|
2021-04-15 13:09:49 +02:00 |
|