Skip to content

Commit

Permalink
chore: documentation for CSS ::part(). Also typo in keybinding
Browse files Browse the repository at this point in the history
  • Loading branch information
arnog committed Oct 11, 2020
1 parent b5d390a commit f9066f0
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 5 deletions.
13 changes: 12 additions & 1 deletion dist/mathlive.js
Original file line number Diff line number Diff line change
Expand Up @@ -18517,7 +18517,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`,
{ key: 'ctrl+[Comma]', ifMode: 'math', command: 'addColumnAfter' },
{ key: 'cmd+[Comma]', ifMode: 'math', command: 'addColumnAfter' },
{ key: 'ctrl+shift+[Comma]', ifMode: 'math', command: 'addColumnAfter' },
{ key: 'cmd+shift[Comma]', ifMode: 'math', command: 'addColumnAfter' },
{ key: 'cmd+shift+[Comma]', ifMode: 'math', command: 'addColumnAfter' },
// Excel keybindings:
// shift+space: select entire row, ctrl+space: select an entire column
// ctrl+shift++ or ctrl+numpad+
Expand Down Expand Up @@ -33166,6 +33166,17 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`,
* | `--text-font-family` | The font stack used in text mode |
* | `--keyboard-zindex` | The z-index attribute of the virtual keyboard panel |
*
* ### CSS Parts
*
* The `virtual-keyboard-toggle` CSS part can be used to style the virtual
* keyboard toggle. To use it, define a CSS style with a `::part()` selector
* for example:
* ```css
* math-field::part(virtual-keyboard-toggle) {
* color: red;
* }
* ```
*
*
* ### Attributes
*
Expand Down
2 changes: 1 addition & 1 deletion dist/mathlive.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/mathlive.min.mjs

Large diffs are not rendered by default.

13 changes: 12 additions & 1 deletion dist/mathlive.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -18511,7 +18511,7 @@ const DEFAULT_KEYBINDINGS = [
{ key: 'ctrl+[Comma]', ifMode: 'math', command: 'addColumnAfter' },
{ key: 'cmd+[Comma]', ifMode: 'math', command: 'addColumnAfter' },
{ key: 'ctrl+shift+[Comma]', ifMode: 'math', command: 'addColumnAfter' },
{ key: 'cmd+shift[Comma]', ifMode: 'math', command: 'addColumnAfter' },
{ key: 'cmd+shift+[Comma]', ifMode: 'math', command: 'addColumnAfter' },
// Excel keybindings:
// shift+space: select entire row, ctrl+space: select an entire column
// ctrl+shift++ or ctrl+numpad+
Expand Down Expand Up @@ -33160,6 +33160,17 @@ const gDeferredState = new WeakMap();
* | `--text-font-family` | The font stack used in text mode |
* | `--keyboard-zindex` | The z-index attribute of the virtual keyboard panel |
*
* ### CSS Parts
*
* The `virtual-keyboard-toggle` CSS part can be used to style the virtual
* keyboard toggle. To use it, define a CSS style with a `::part()` selector
* for example:
* ```css
* math-field::part(virtual-keyboard-toggle) {
* color: red;
* }
* ```
*
*
* ### Attributes
*
Expand Down
11 changes: 11 additions & 0 deletions dist/public/mathfield-element.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,17 @@ declare global {
* | `--text-font-family` | The font stack used in text mode |
* | `--keyboard-zindex` | The z-index attribute of the virtual keyboard panel |
*
* ### CSS Parts
*
* The `virtual-keyboard-toggle` CSS part can be used to style the virtual
* keyboard toggle. To use it, define a CSS style with a `::part()` selector
* for example:
* ```css
* math-field::part(virtual-keyboard-toggle) {
* color: red;
* }
* ```
*
*
* ### Attributes
*
Expand Down
2 changes: 1 addition & 1 deletion src/editor/keybindings-definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export const DEFAULT_KEYBINDINGS: Keybinding[] = [
{ key: 'ctrl+[Comma]', ifMode: 'math', command: 'addColumnAfter' },
{ key: 'cmd+[Comma]', ifMode: 'math', command: 'addColumnAfter' },
{ key: 'ctrl+shift+[Comma]', ifMode: 'math', command: 'addColumnAfter' },
{ key: 'cmd+shift[Comma]', ifMode: 'math', command: 'addColumnAfter' },
{ key: 'cmd+shift+[Comma]', ifMode: 'math', command: 'addColumnAfter' },

// Excel keybindings:
// shift+space: select entire row, ctrl+space: select an entire column
Expand Down
11 changes: 11 additions & 0 deletions src/public/mathfield-element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,17 @@ const gDeferredState = new WeakMap<
* | `--text-font-family` | The font stack used in text mode |
* | `--keyboard-zindex` | The z-index attribute of the virtual keyboard panel |
*
* ### CSS Parts
*
* The `virtual-keyboard-toggle` CSS part can be used to style the virtual
* keyboard toggle. To use it, define a CSS style with a `::part()` selector
* for example:
* ```css
* math-field::part(virtual-keyboard-toggle) {
* color: red;
* }
* ```
*
*
* ### Attributes
*
Expand Down

0 comments on commit f9066f0

Please sign in to comment.