Can i nest to one off two parents with LESS

I have this LESS set up. I'm wondering, is there any option to nest for one of two parents?

 textarea.text_field {
    // style for both

    textarea + & {
      // style for only text area

I need to add some other style for textarea and i do not want to take it beyond the main rule. So, is this possible?


You could try something like this if you want to keep them in the same rule:

.text_field {
  color: black;

  input& {
    padding: 5px;

  textarea& {
    padding: 5px;

Need Your Help

Using unpack() to convert to a byte array in PHP

php python binary

I'm trying to convert a binary string to a byte array of a specific format.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.