How do you define attribute selectors in SASS?

In CSS, you can do this:

input[type=submit] {
  // properties
}

It's a very useful for styling form buttons.

How do you do the same thing in SASS?


Solution 1:

You can also nest it like this

input
  &[type="submit"]
    .... 
  &[type="search"]
    .... 

Solution 2:

This converter website says:

input[type=submit]
  // properties