Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jss-plugin-nested

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jss-plugin-nested

JSS plugin that enables support for nested selectors

  • 10.0.0-alpha.13
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
829K
decreased by-54.51%
Maintainers
1
Weekly downloads
 
Created

What is jss-plugin-nested?

The jss-plugin-nested package is a plugin for JSS (JavaScript Style Sheets) that allows you to use nested rules in your styles, similar to how you would in Sass or Less. This makes it easier to manage and organize your CSS, especially for complex components.

What are jss-plugin-nested's main functionalities?

Nested Selectors

This feature allows you to nest selectors within a style rule. In this example, the hover state of the button is nested inside the button's main style rule.

{
  "button": {
    "color": "blue",
    "&:hover": {
      "color": "red"
    }
  }
}

Nested Media Queries

This feature allows you to nest media queries within a style rule. In this example, the container's width changes based on the screen size.

{
  "container": {
    "width": "100%",
    "@media (min-width: 600px)": {
      "width": "50%"
    }
  }
}

Nested Pseudo-Classes

This feature allows you to nest pseudo-classes within a style rule. In this example, the input's border color changes when it is focused.

{
  "input": {
    "border": "1px solid black",
    "&:focus": {
      "border-color": "blue"
    }
  }
}

Other packages similar to jss-plugin-nested

Keywords

FAQs

Package last updated on 12 Mar 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc