Sass - two classes in a single tag

CssSass

Css Problem Overview


So, i need a style for

.question_actions.active

my existing CSS

.question_actions {
    float: right;
    font-size: 1em;
    width: 110px; 
}
.question_action {
    margin-bottom: 8px; 
    padding: 3px;
}
.question_actions.active {
    /* some CSS */
}
  

what would be the syntax to combine them?

Css Solutions


Solution 1 - Css

Here you go:

.question_actions {
   float: right; 
   font-size: 1em;
   width: 110px; 
    
   .question_action {
	   margin-bottom:8px;
	   padding: 3px;
   }

   &.active {
	//some css
   }
}

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionmeowView Question on Stackoverflow
Solution 1 - CssRitoView Answer on Stackoverflow