File: namespacing-5.less

package info (click to toggle)
less.js 3.13.0%2Bdfsg-11
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 6,020 kB
  • sloc: javascript: 23,275; makefile: 12; perl: 11; sh: 6
file content (32 lines) | stat: -rw-r--r-- 570 bytes parent folder | download | duplicates (3)
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];
}