2

Is it possible to make a class inherit from another class (from a different CSS file)?

/* Make this class have all .form.control's styling. 
   form.control is located in a separate standard .css file*/
.token-input-list-facebook {
    .form-control;  
}

Edit Further information: The HTML element with the class 'token-input-list-facebook form-control' is dynamically generated by a third party library. An input gets turned into an input with a hidden ul that auto-suggests things. So I could go and edit the 3rd party javascript. But styling through stylesheets (CSS or LESS) is a more elegant method

sazr
  • 24,984
  • 66
  • 194
  • 362

1 Answers1

0

class="token-input-list-facebook form-control"

Farhad Manafi
  • 334
  • 1
  • 8
  • 17
  • Can you please clarify what this would do? I mean add an explanation instead of just giving a one line code. – Harry Jul 02 '15 at 05:37
  • The HTML element with the class 'token-input-list-facebook form-control' is dynamically generated by a third party library. So I could go and edit the 3rd party javascript. But styling through stylesheets (CSS or LESS) is a more elegant method. – sazr Jul 02 '15 at 05:39