user391986
user391986

Reputation: 30926

how to exclude tags of certain types using LESS css

How can I write "input:not([type="submit"])" using LESS? I think the CSS syntax does not work with IE, is there a LESS command that does?

Upvotes: 1

Views: 1390

Answers (1)

Christoph Leiter
Christoph Leiter

Reputation: 9345

I don't think so. LESS can't do more than pure CSS - it's just more convenient to write. As a workaround until not: is available you could use something like

input {
    /* set properties for all input types */
    &[type="submit] {
        /* undo for type submit */
    }
}

Upvotes: 2

Related Questions