Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A collection of small style adjustments #220

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Commits on Aug 31, 2024

  1. Give .collapsible.collapsed { height: 1lh }

    Amends bhollis#98 with a more reliable declaration ensuring visible ellipsis with
    any font's normal line height, incl. custom line-height.
    
    'lh' is more recently implemented CSS unit:
    
    -   https://developer.mozilla.org/en-US/docs/Web/CSS/length#lh
    -   https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Values_and_units#line_height_units
    
    so keep the original `line-height: 1.2` as a fallback.
    stanio committed Aug 31, 2024
    Configuration menu
    Copy the full SHA
    b7acae4 View commit details
    Browse the repository at this point in the history

Commits on Sep 1, 2024

  1. Avoid horizontal scroll with very long string or link values

    -   https://developer.mozilla.org/en-US/docs/Web/CSS/word-break
    
    Alternative could be:
    
        overflow-wrap: break-word;
    
    but the former ensures the value starts at the same line as the property
    name, for example.
    stanio committed Sep 1, 2024
    Configuration menu
    Copy the full SHA
    a1f2c2e View commit details
    Browse the repository at this point in the history
  2. Specify <meta name="color-scheme" content="light dark">

    Standard metadata names
    <https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta/name>:
    
    >   color-scheme: specifies one or more color schemes with which
    >   the document is compatible.  The browser will use this information
    >   in tandem with the user's browser or device settings to determine
    >   what colors to use for everything from background and foregrounds
    >   to form controls and scrollbars.
    
    This also adjusts the selection/highlight colors, all CSS system colors:
    
    -   https://drafts.csswg.org/css-color/#css-system-colors
    
    It could prevent "white flashes" in some contexts.
    
    The difference with the CSS `color-scheme` property [1] is, for example,
    with Firefox View > Page Style > No Style it still honors the browser's
    color theme.
    
    [1] https://developer.mozilla.org/en-US/docs/Web/CSS/color-scheme
    stanio committed Sep 1, 2024
    Configuration menu
    Copy the full SHA
    af59b99 View commit details
    Browse the repository at this point in the history

Commits on Sep 4, 2024

  1. Force transparent background for "collapsed" text selection

    This avoids somewhat annoying translucent-background selection overlays.
    
    -   https://developer.mozilla.org/en-US/docs/Web/CSS/::selection
    stanio committed Sep 4, 2024
    Configuration menu
    Copy the full SHA
    d8a01e1 View commit details
    Browse the repository at this point in the history