1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
@import "imports/a-better-bootstrap";
#theme.dark.navbar {
.colors() {
primary: rebeccapurple;
}
.colors(dark) {
primary: black;
secondary: grey;
}
.test-rule() {
val: output;
}
}
.my-navbar {
#theme.dark.navbar();
background: .colors[primary];
.test-rule();
}
.another-navbar {
@colors: #theme.dark.navbar.colors() !important;
background: @colors[primary];
border: 1px solid @colors[secondary];
}
.another {
@colors: #theme.dark.navbar.colors(dark);
background: @colors[primary];
border: 1px solid @colors[secondary];
}
|