Skip to content
Snippets Groups Projects
  1. Jul 22, 2019
  2. Jul 19, 2019
  3. Jul 17, 2019
  4. Jul 13, 2019
  5. Jul 12, 2019
  6. Jul 08, 2019
  7. Jun 29, 2019
  8. Jun 12, 2019
    • FarawayVision's avatar
      Extended Formatting: <hr> element support and data-character attributes · dc0009e2
      FarawayVision authored
      A `data-character` attribute is now added to the wrapper spans used for class specifiers.
      This allows for CSS rules of the form:
      
      ```css
      .my-dialogue-class[data-character="my-character"] {
          /* Styling... */
      }
      ```
      
      This should help prevent issues due to using a shared CSS class namespace for all characters.
      
      Unescaping of the <hr> (horizontal rule) element is now performed.
      <hr> elements can be used as a divider between logically separate elements of dialogue,
      such as when separating dialogue for joint characters.
      dc0009e2
    • FarawayVision's avatar
      Extended Formatting: add in-dialogue linebreaks and CSS class specifiers · 937c4b18
      FarawayVision authored
      The `</br>` element is now explicitly unescaped in fixupDialogue(), similarly to `<i>`.
      CSS classes can now be applied to dialogue by using style specifiers.
      
      Style specifiers consist of CSS class identifiers wrapped in curly braces (i.e. `{foo}`).
      Specifiers apply the given CSS classes to all following text until the next specifier.
      
      Internally, dialogue with specifiers applied is wrapped in `<span>` elements.
      
      For example:
      ```
      {class1} This text will have 'class1' applied. {class2} This text will have 'class2' applied now.
      ```
      
      is transformed into a set of DOM elements equivalent to
      
      ```html
      <span class="class1">This text will have class1 applied.</span>
      <span class="class2">This text will have class2 applied.</span>
      ```
      
      before being added to the page DOM.
      
      `{!reset}` can be used to clear all previous applied style classes.
      937c4b18
  9. May 11, 2019
  10. May 02, 2019
  11. May 01, 2019
  12. Apr 28, 2019
  13. Apr 27, 2019
  14. Apr 26, 2019
  15. Apr 18, 2019
  16. Apr 17, 2019
  17. Apr 07, 2019
  18. Apr 04, 2019
  19. Mar 31, 2019
  20. Mar 13, 2019
Loading