Skip to content

Releases: openstyles/stylus

v2.4.8

Choose a tag to compare

@tophftophf released this 18 Jul 12:03
  • editor: move [x] Enabled back to top + hide the label in compact mode
  • editor: add [ ] Save when toggling via hotkey + hotkey config. This mode seems useful when editing without live preview.
  • fix #2181: update the webpage icon when a style in the editor no longer applies

Full Changelog: v2.4.7...v2.4.8

v2.4.7

Choose a tag to compare

@tophftophf released this 16 Jul 15:29
  • editor: fix Alt-Enter hotkey to toggle style
  • editor: fix clone/add/remove/up/down section action buttons
  • improved dark mode scrollbars by @pabli24

Full Changelog: v2.4.6...v2.4.7

v2.4.6

Choose a tag to compare

@tophftophf released this 14 Jul 10:50
  • editor: less confusing icons (hopefully)
  • editor: Ctrl-K-1 folds selectors inside sections, Ctrl-K-0 unfolds them
  • editor: when scrolling inside scrollable header panels it won't scroll the entire page on reaching the panel's edge and conversely when scrolling over unscrollable parts of the header it will scroll the entire page.
  • fix toggling styles in incognito windows in MV2/Firefox
  • fix clicking the Sync now button in MV2/Firefox

Full Changelog: v2.4.5...v2.4.6

v2.4.5

Choose a tag to compare

@tophftophf released this 07 Jul 20:05
  • fix the "loose spaces" mode in the editor search to apply to all spaces and not just the first one

Full Changelog: v2.4.4...v2.4.5

v2.4.4

Choose a tag to compare

@tophftophf released this 07 Jul 09:07
  • fix the patch CSP filtering of <meta> in Firefox so it applies only to HTML-based responses
  • update CSSLint-mod definitions
  • minor UI tweaks and fixes

Full Changelog: v2.4.3...v2.4.4

v2.4.3

Choose a tag to compare

@tophftophf released this 04 Jul 21:29
  • fix compatibility with Orion browser by @dourado
  • apply the patch CSP option to <meta> tags in Firefox e.g. on flickr.com
  • fix live preview's magnetic cursor bug from the previous release
  • use current timezone in exported file name instead of UTC
  • fix catastrophic slowdowns on an unclosed metadata comment
  • fix sync buttons not showing

Full Changelog: v2.4.2...v2.4.3

v2.4.2

Choose a tag to compare

@tophftophf released this 28 Jun 06:11
  • Fix @preprocessor stylus so it keeps @media inside its respective document section.
  • Fix bugs listed in the previous release.

Known bugs (fixed in the nightly builds):

  • Live preview while editing moves the cursor to the error position reported by the linter/preprocessor thus severely hindering your ability to fix the temporarily broken syntax. The workaround is to either increase the delay of live preview or run the following code in devtools console of the editor every time you open it to disable the behavior:
    Object.defineProperty(document.getElementById('preview-error'), 'hidden', {
      get() {
        return this.hasAttribute('hidden');
      },
      set(val) {
        if (!val) {
          const cm = document.querySelector('.CodeMirror').CodeMirror;
          cm.jumpToPos = cm.setSelections = () => {};
          Promise.resolve().then(() => delete cm.jumpToPos && delete cm.setSelections);
        }
        this.toggleAttribute('hidden', val);
      },
    });

Full Changelog: v2.4.1...v2.4.2

v2.4.1

Choose a tag to compare

@tophftophf released this 26 Jun 14:43

Fixes creating a new style broken in v2.4.0.

Known bugs in this release (fixed in the the next release):

  • Validate CSS is not styled in the dark theme.
  • Validate CSS is reset after browser restart in MV2/Firefox or after an inactivity in MV3.

Full Changelog: v2.4.0...v2.4.1

v2.4.0

Choose a tag to compare

@tophftophf released this 25 Jun 22:04

Known bugs fixed in the next release:

  • A new style cannot be created within the extension's UI.

Notable changes:

  • Fix sync for edited styles.
  • Fix #2143 from previous releases.
  • Right-click or long-press on checkbox in popup to toggle in current tab.
  • Use icons instead of some text labels at the top in compact editor layout.
  • Speed up live preview a bit with @preprocessor by extracting sections on the fly.
  • Use instant inject mode in same-origin iframes too.
  • less 4.6.6, csslint-mod 1.0.13.

Full Changelog: v2.3.35...v2.4.0

v2.3.35

Choose a tag to compare

@tophftophf released this 17 Jun 07:25

Published only in CWS beta for now.
This is a re-published release that sets the correct "version": "2.3.35" field in manifest.json.

Known bugs from an older release fixed in nightly builds:

  • #2143: when editing a style, its custom settings are reset.

Notable changes since 2.3.34:

  • stylelint 17.13.0, https://stylelint.io/CHANGELOG
  • stylelint now uses syntax plugins for less and stylus preprocessors
  • no more useless linter warnings for advanced preprocessor syntax and UserCSS variables
  • customizable "rules:less" and "rules:stylus" in the editor -> linter -> Stylelint -> config dialog
  • the original syntax of rgb(), hsl(), hwb() in the color picker is preserved now

Full Changelog: v2.3.34...v2.3.35

P.S. Big thanks to @pabli24 for extensive testing of the nightly builds and reporting the bugs!