summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/sections/nav.scss
blob: ccd672c5f67ca15b556f2ecd6b9de503e96c7289 (plain)
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
.main-nav {
  background: #f5f5f5;
  margin: 20px 0;
  margin-top: 0;
  padding-top: 4px;
  border-bottom: 1px solid #E9E9E9;

  ul {
    padding: 0;
    margin: auto;
    .count {
      font-weight: normal;
      display: inline-block;
      height: 15px;
      padding: 1px 6px;
      height: auto;
      font-size: 0.82em;
      line-height: 14px;
      text-align: center;
      color: #777;
      background: #eee;
      @include border-radius(8px);
    }
    .label {
      background: $hover;
      text-shadow: none;
      color: $style_color;
    }
    li {
      list-style-type: none;
      margin: 0;
      display: table-cell;
      width: 1%;
      &.active {
        a {
          color: $link_color;
          font-weight: bold;
          border-bottom: 3px solid $link_color;
        }
      }

      &:hover {
        a {
          color: $link_hover_color;
          border-bottom: 3px solid $link_hover_color;
        }
      }
    }
    a {
      display: block;
      text-align: center;
      font-weight: bold;
      height: 42px;
      line-height: 39px;
      color: #777;
      text-shadow: 0 1px 1px white;
      text-decoration: none;
      overflow: hidden;
      margin-bottom: -1px;
    }
  }

  @media (max-width: $screen-xs-max) {
    font-size: 18px;
    margin: 0;
    max-height: none;

    &, .container {
      padding: 0;
      border-top: 0;
    }

    ul {
      height: auto;

      li {
        display: list-item;
        width: auto;
        padding: 5px 0;

        &.active {
          background-color: $link_hover_color;

          a {
            color: #fff;
            font-weight: normal;
            text-shadow: none;
            border: none;

            &:after { display: none; }
          }
        }
      }
    }
  }
}