Summary Files Commits Branches @commit @diff @stats
path: root / src / navigation.less
blob: c2d2cf97f2f9359beaa78ff1e49a29e152656a05 (plain) (blame)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// Navigation
// Breadcrumb
.breadcrumb {
  list-style: none;
  margin: .5rem 0;
  padding: 1.2rem;

  li {
    display: inline-block;
    margin: 0;

    a {
      text-decoration: none;
    }

    &:last-child {
      &,
      a {
        color: lighten(@body-font-color, 20%);
        pointer-events: none;
      }
    }

    &:not(:last-child) {
      &::after {
        content: "/";
        padding: 0 .4rem;
        color: @control-color;
      }
    }
  }
}
// Tabs
.tab {
  display: inline-block;
  list-style: none;
  margin: .5rem 0;
  border-bottom: .1rem solid @control-color;
  .clearfix();

  li {
    float: left;
    margin-bottom: -.1rem;

    a {
      display: block;
      padding: .5rem 1.5rem;
      border-bottom: .1rem solid transparent;
      color: @body-font-color;
      text-decoration: none;

      &:hover {
        color: @core-color;
        border-bottom-color: @core-color;
      }
      &.active,
      &:active {
        color: darken(@core-color, 10%);
        border-bottom-color: darken(@core-color, 10%);
      }
    }
  }
}