Looks like @mixin
and @include
are not needed for a simple case like this.
One can just do:
.myclass {
font-weight: bold;
font-size: 90px;
}
.myotherclass {
@extend .myclass;
color: #000000;
}
More Related Contents:
- Maven project version inheritance – do I have to specify the parent version?
- Extend data class in Kotlin
- Abstract classes in Swift Language
- Starting JavaFX from Main method of class which doesn’t extend Application
- Overriding a stored property in Swift
- Abstract functions in Swift Language
- What is the idiomatic way in Go to create a complex hierarchy of structs?
- Is it possible for one struct to extend an existing struct, keeping all the fields?
- How to inherit from std::ostream?
- Embedding instead of inheritance in Go
- How to model a RESTful API with inheritance?
- Backbone.js view inheritance
- Object Oriented Best Practices – Inheritance v Composition v Interfaces [closed]
- How to avoid code duplication of different structs with semantically equal fields/properties?
- What is the difference between public, private, and protected inheritance in C++?
- Creating or referencing variables dynamically in Sass
- At runtime, find all classes in a Java application that extend a base class
- C# Error: Parent does not contain a constructor that takes 0 arguments
- What is constructor inheritance?
- Access to private inherited fields via reflection in Java
- Is it possible to call subclasses’ methods on a superclass object?
- What is the difference between inheritance and Categories in Objective-C
- What does an “&” before a pseudo element in CSS mean?
- Hiding Fields in Java Inheritance
- Proper SCSS Asset Structure in Rails
- Rails 4: how do I use Sass Mappings?
- How to combine and use multiple Next.js plugins
- Automatically making Base Constructors available in derived class?
- What are the negative aspects of Java class Stack inheriting from Vector?
- Accessing attribute from parent class inside child class