sass 40extend and inheritance

Solutions on MaxInterview for sass 40extend and inheritance by the best coders in the world

showing results for - "sass 40extend and inheritance"
Kelly
06 Jan 2017
1SCSS Syntax
2
3.button-basic  {
4  border: none;
5  padding: 15px 30px;
6  text-align: center;
7  font-size: 16px;
8  cursor: pointer;
9}
10
11.button-report  {
12  @extend .button-basic;
13  background-color: red;
14}
15
16.button-submit  {
17  @extend .button-basic;
18  background-color: green;
19  color: white;
20}
21
22CSS Output
23
24.button-basic, .button-report, .button-submit {
25  border: none;
26  padding: 15px 30px;
27  text-align: center;
28  font-size: 16px;
29  cursor: pointer;
30}
31
32.button-report  {
33  background-color: red;
34}
35
36.button-submit  {
37  background-color: green;
38  color: white;
39}