summaryrefslogtreecommitdiff
path: root/ext/css
Commit message (Collapse)AuthorAge
* fixed eslint, changed header to only use 2 spaces, added missing headers to testAustin Siew2023-03-22
|
* Updated LICENSE to full license, added Yomitan 2023 to all license headersAustin Siew2023-03-21
|
* Fix unnecessary margin on search box in Firefox (#2255)toasted-nutbread2022-10-15
|
* Clipboard updates (#2254)toasted-nutbread2022-10-15
| | | | | | | | | | | | | | | | | | | * Rename * Rename vars * Refactor paste target * Prevent most CSS url() properties from loading * Add helper function to clear rich function * Add useRichText argument * Update condition for using readText * Fix indent * Update CSS
* Touch and pen input updates (#2172)toasted-nutbread2022-06-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove unnecessary return * Move touch start input filtering * Refactor * Add scanOnTouchPress * Add preventPenScrolling * Rename scanOnPenPress to scanOnPenMove * Rename scanOnPenRelease to scanOnPenReleaseHover * Simplify * Refactor _searchAtFromPen early exit * Merge _penPointerPressed and _penPointerReleased into a single variable * Add more options * Simplify pen pointer coordinates * Implement scanOnPenPress and scanOnPenRelease * Implement scanOnTouchRelease * Fix tests * Don't search on touch cancel * Cancel touch if the touch action is used for scrolling or other gestures * Fix incorrect scroll prevention options being used * Organize options * Fix typos
* Collapsible dictionary updates (#2170)toasted-nutbread2022-05-30
| | | | | | | | | | | * Add "force collapsed" and "force expanded" options * Simplify "any" check * Update style * Add help modal for collapsible dictionaries * Disable wrapping
* Add support for Anki API key (#2169)toasted-nutbread2022-05-30
| | | | | | | | | | | | | * Update material.css to support password fields * Support password * Add "apiKey" setting * Use apiKey * Update options if API key changes * Update tests
* Add support for guiEditNote to view notes (#2143)toasted-nutbread2022-05-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add AnkiConnect.guiEditNote * Update _onApiNoteView to first try guiEditNote * Add setting * Update noteView API * Use setting * Return which mode was used * Update DisplayGenerator * Handle errors in DisplayAnki * Update docs * Add isErrorUnsupportedAction function * Add an allowFallback option to noteView * Disambiguate * Simplify now that preferredMode isn't used * Update settings info * Implement test buttons * Update styles * Update status visibility * Wrap layout * Update description * Update date
* Fix the color of links in display footer notifications (#2151)toasted-nutbread2022-05-21
|
* Add new structured content features: lists and the HTML `lang` attribute (#2129)Stephen Kraus2022-05-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add support for structured content lists and `list-style-type` style A full list of supported style types is documented here: https://developer.mozilla.org/en-US/docs/Web/CSS/list-style-type There's nothing in this code preventing a term bank from assigning, for example, a `list-style-type` style to a `div` element, but it doesn't seem like browsers will complain about things like that. * Add support for `lang` attribute in structured content Support added for the following node types: "ruby", "rt", "rp", "table", "thead", "tbody", "tfoot", "tr", "td", "th", "span", "div", "ol", "ul", "li", "a" I couldn't get it to work for the alt-hover text on "img" tags. Tests are included in the file "test/data/dictionaries/valid-dictionary/term_bank_1.json" * Add styles for structured content lists * Add override rules for new structured-content list styles see: https://github.com/FooSoft/yomichan/pull/2129 Co-authored-by: stephenmk <stephenmk@users.noreply.github.com>
* Theme updates (#2105)toasted-nutbread2022-04-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Change siteColor to siteTheme * Fix potential null exception * Simplify * Update display theme assignment * Add a data-browser-theme attribute * Add "browser" option for theme * Create ThemeController * Add theme-controller.js to relevant pages * Use ThemeController * Simplify * Fix 'light' being used instead of 'default' * Update the settings values to more accurately reflect their usage * Change default site theme in display.js * Remove async * Restore async for consistency
* Update input action prevention settings (#2104)toasted-nutbread2022-04-02
| | | | | * Update styles for the input action prevention modal * Add information
* Settings advanced indicators (#2103)toasted-nutbread2022-04-02
| | | | | * Update the advanced toggle to have a custom color * Add indicators to advanced-only settings
* Settings page mobile layout updates (#2102)toasted-nutbread2022-04-02
| | | | | * Remove use of --settings-group-inner-vertical-margin * Update alignment
* Structured content links (#2089)toasted-nutbread2022-03-17
| | | | | | | | | | | | | | | | | * Update CSS to JSON converter to generalize the remove-property comment * Fix navigation not being updated when _clearContent is run * Add structured content schema for link tags * Add test links * Add external-link icon * Pass Display instance to DisplayContentManager * Update structured content generation * Update link styles
* Update copyright date (#2062)toasted-nutbread2022-02-02
| | | | | | | * Update eslint settings * Update 2021 files * Update other files
* Display menu button (#1992)toasted-nutbread2021-10-17
| | | | | * Implement new menu which includes a debug log option * Update wording
* Display button updates (#1991)toasted-nutbread2021-10-17
| | | | | * Update display buttons * Remove use of _addMultipleEventListeners
* Search CSS updates (#1979)toasted-nutbread2021-10-09
| | | | | * Update styles * Limit the height of the query parser
* Frequency dictionary sort (#1938)toasted-nutbread2021-09-26
| | | | | | | | | | | | | | | | | * Add sortDictionary/sortDictionaryOrder options * Update options * Add API.getTermFrequencies * Add settings * Implement frequency dictionary sorting * Update test * Update test data * Fix handling of undefined rank-based frequencies
* Display button updates (#1945)toasted-nutbread2021-09-10
| | | | | | | | | * Use span rather than div for button badges * Update action button icons * Rename class * Update current entry indicator
* Anki field templates suggestions (#1940)toasted-nutbread2021-09-08
| | | | | * Remove unused * Bold the suggested default field value
* Fix border radius on the outline-item style (#1901)toasted-nutbread2021-08-20
|
* Input styles updates (#1900)toasted-nutbread2021-08-20
| | | | | | | | | | | | | | | | | | | | | | | | | * Rename class * Update styles * Use input-group class * Update styles * Update input line height * Update border styles * Update styles * Update line height * Update styles * Update line height * Update line height * Update outline item style
* Add connection icon (#1898)toasted-nutbread2021-08-15
|
* Add accessibility icon (#1874)toasted-nutbread2021-08-07
|
* Rename CSS class names "pitch-accent" to "pronunciation" (#1850)toasted-nutbread2021-07-25
| | | | | | | | | | | | | * pitch-accents => pronunciations * Update dataset property names * pitch-accent-dictionary => pronunciation-dictionary * Update styles * Update template name * Update attributes
* Display pronunciation refactor (#1835)toasted-nutbread2021-07-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Simplify svg and container styles * Rename pitch-accent-details to pitch-accent-graph-container * Rename pitch-accent-graph* to pronunciation-graph* * Remove unused template * Omit quotes * Rename pitch-accent-character to pronunciation-mora * Simplify names * Replace pronunciation-mora-inner with pronunciation-character * Improve grouping of nasal characters * Simplify character replacement * Replace pseudo-elements with real elements * Use an element rather than a fragment * Rename functions * Add wrapper * Rename pitch-accent-characters to pronunciation-text-container * Update test data * Update downstep notation generation * Rename pitch-accent-position to pronunciation-downstep-notation-container * Space * Wrap pronunciations in a container node * Update preview * Embed pitch accent styles directly
* Pronunciation nasal improvement (#1834)toasted-nutbread2021-07-17
| | | | | | | | | * Organize * Add utility to get diacritic information about a character * Show mora without diacritic * Add a hidden handakuten for copy-paste purposes
* Display pronunciation separation (#1833)toasted-nutbread2021-07-17
| | | | | | | | | | | * Create PronunciationGenerator * Update DisplayGenerator * Update templates * Move pronunciation styles to a separate file * Simplify pitch-accents-preview.html
* Devoice and nasal pronunciation info (#1832)toasted-nutbread2021-07-15
| | | | | | | | | | | | | * Update schema to support information about nasal and devoiced mora * Expose nasalPositions and devoicePositions in dictionary entry data * Expose nasalPositions, devoicePositions in grouped pitch info * Update display generator * Update test dictionary data * Update test data
* Update Anki field marker menu (#1816)toasted-nutbread2021-07-09
| | | | | * Update anki field marker menu to have less vertical padding * Update positioning of field marker menu
* Update dictionary image link color (#1778)toasted-nutbread2021-06-28
|
* Update CSS rules for images (#1777)toasted-nutbread2021-06-28
|
* Structured content style json (#1771)toasted-nutbread2021-06-27
| | | | | | | | | | | | | * Install css * Remove unnecessary rule * Create CSS overrides file * Create script to generate CSS JSON file * Generate JSON * Add test
* Update structured content CSS styles (#1770)toasted-nutbread2021-06-27
|
* Move structured content CSS into a separate file (#1769)toasted-nutbread2021-06-27
|
* Structured content updates (#1753)toasted-nutbread2021-06-25
| | | | | | | | | | | * Update schema * Update content generation * Update styles * Update test data * Update style names
* Structured content updates (#1733)toasted-nutbread2021-06-06
| | | | | | | | | | | | | | | | | | | | | * Add support for imageRendering * Make crisp-edges appearance on Firefox more similar to Chrome * Refactor * Add background option * Move data-image-rendering attribute * Restructure * Organize * Add support for appearance * Update test dictionary * Update tests
* Primary audio fixes (#1719)toasted-nutbread2021-05-30
| | | | | | | | | * Fix case when subIndex is not assigned * Fix incorrect assignment of primary card audio * Improve opacity style * Improve styles for :focus-visible
* Improve multiple audio sources (#1718)toasted-nutbread2021-05-30
| | | | | | | | | | | | | * Add url/voice options to audio sources * Add help for TTS * Remove old settings * Update tests * Update use of audio source URL * Improve labels for sources with the same type
* Structured content image size units (#1692)toasted-nutbread2021-05-20
| | | | | * Add support for sizeUnits on image content * Update test data
* Add support for definitions with structured content (#1689)toasted-nutbread2021-05-19
| | | | | | | | | | | * Add structured content to schema * Add support for generating custom content * Update importer * Update test data * Add verticalAlign property
* Dictionary image display refactoring (#1687)toasted-nutbread2021-05-18
| | | | | | | | | | | | | | | * Generalize image definition generation * Enable optional aspect ratio * Move styles * Update styles * Add more options for collapsing images * Add image options for collapsing * Improve layout for images that are collapsed
* Sentence termination character mode (#1682)toasted-nutbread2021-05-16
| | | | | | | | | | | * Change enableTerminationCharacters to terminationCharacterMode * Update settings * Update sentence extraction * Update tests * Add tests
* Popup action search (#1678)toasted-nutbread2021-05-15
| | | | | | | | | * Set up search page in the action popup * Fix a style causing incorrect overflow * Fix error when trying to take a screenshot * Fix popup size on Firefox
* Improve overflow wrap (#1663)toasted-nutbread2021-05-10
|
* Improve internal page overflow (#1660)toasted-nutbread2021-05-10
| | | | | * Improve overflow of internal pages * Improve wrapping of the Origin: example text
* Fix secondary search dictionary options layout (#1654)toasted-nutbread2021-05-08
|
* Add "Move to" menu option for moving dictionary options to a specific ↵toasted-nutbread2021-05-02
| | | | | | | location (#1651) * Add "Move to" option * Fix IDs