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

2
  • Yes, you can import the standard.css file as reference and then invoke it. Commented Jul 2, 2015 at 5:35
  • You want to implement this in LESS? Commented Jul 2, 2015 at 5:36

1 Answer 1

0

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

Sign up to request clarification or add additional context in comments.

2 Comments

Can you please clarify what this would do? I mean add an explanation instead of just giving a one line code.
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.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.