Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ireade/feature-queries-manager
🛠Toggle CSS styles within @supports blocks
https://github.com/ireade/feature-queries-manager
Last synced: 19 days ago
JSON representation
🛠Toggle CSS styles within @supports blocks
- Host: GitHub
- URL: https://github.com/ireade/feature-queries-manager
- Owner: ireade
- Created: 2018-04-03T17:36:30.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-24T14:25:57.000Z (almost 6 years ago)
- Last Synced: 2024-07-18T16:26:34.376Z (4 months ago)
- Language: JavaScript
- Homepage: https://ireade.github.io/feature-queries-manager/
- Size: 66.4 KB
- Stars: 277
- Watchers: 6
- Forks: 8
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Feature Queries Manager
Manage and toggle CSS on a page behind a @supports Feature Query
## How does it work?
It works by **negating** the feature query condition to give you the opposite result. For example, it will turn the following feature query condition...
```css
@supports (display: flex) { /* styles here */ }
```
... Into the following...```css
@supports not((display: flex)) { /* styles here */ }
```## How to use
**1. Install the Feature Queries Manager**
- [Download on Google Chrome](https://chrome.google.com/webstore/detail/fbhgnconlfgmienbmpbeeenffagggonp/)
- [Download on Firefox](https://addons.mozilla.org/en-US/firefox/addon/feature-queries-manager/)(Other browsers TBA)
**2. Open DevTools and see a new panel labelled "FQM"**
![Screenshot of FQM](https://user-images.githubusercontent.com/8677283/39296534-12a99c72-4939-11e8-8416-0ef066a59eb4.png)
This page will display all the feature queries on the page (on the left) and any styles within those Feature Queries (on the right).
**3. Toggle Feature Queries**
On the left panel, you will see the list of feature query conditions on the page, and a checkbox beside each condition.
- **Uncheck** the checkbox to negate the feature query condition
- **Check** the checkbox to re-instate the original feature query condition![Example of FQM toggle on and off](https://user-images.githubusercontent.com/8677283/39296696-81c1141e-4939-11e8-9c0a-ef92783c57ae.gif)