summaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/ng2/components/layout/top-nav/top-nav.component.less
blob: dc666cbf00c144b07f067af660ba61fed979e34b (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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
@import "../../../../../assets/styles/variables";
@import "../../../../../assets/styles/variables-old";
@import "../../../../../assets/styles/mixins_old";
@import "../../../../../assets/styles/sprite";

.top-nav {
  position: fixed;
  top: @header_height;
  background-color: @main_color_p;
  .box-shadow(0px 1px 3px 0px rgba(0, 0, 0, 0.33));
  width: 100%;
  height: @top_nav_height;
  line-height: @top_nav_height;
  z-index: 10;
  display: flex;
  flex-direction: row;
  align-items: center;

  .asdc-app-title-wrapper {
    flex-grow: 1;
    line-height: 16px;
    margin: 0 20px;

    a.asdc-app-title {
      //.m_18_r;
      text-decoration: none;
    }

    .asdc-version {
      //.m_12_r;
      .opacity(0.8);
      line-height: 14px;
      flex-grow: 1;
    }

  }

  ul.top-menu {
    list-style-type: none;
    margin: 0 0 0 20px;
    padding: 0;
    flex-grow: 999;

    & > li {
      float: left;
      cursor: pointer;
      line-height: 50px;
      height: 50px;
      padding: 0 20px;

      &.selected {
        border-bottom: solid 4px @main_color_a;

        a {
          color: @func_color_s;
        }
      }

      /*&:hover {
          border-bottom: solid 4px @main_color_a;
      }*/

      a {
        font-family: @font-opensans-medium;
        color: @main_color_m;
        font-size: 16px;
        display: block;
        text-align: center;
        text-decoration: none;
      }

      &.triangle-dropdown {
        padding: 0;
        position: relative;

        div.triangle {
          margin-top: 15px;
          border-radius: 2px;
          width: 17px;
          height: 18px;

          //temp use - until new triangle gets in
          line-height: 18px;
          text-align: center;
          font-size: 10px;

          &:hover {
            background-color: rgba(156, 156, 156, 0.2);

            span {
              .arrow-right-hover;
            }
          }
        }

        + li a {
          font-size: 16px;
        }

        ul.sub-menu {
          .perfect-scrollbar;
          position: absolute;
          left: 0;
          top: 40px;
          z-index: 1;

          overflow-x: hidden;
          overflow-y: auto;
          max-height: 0;
          -webkit-transition: max-height 200ms ease-in;
          -moz-transition: max-height 200ms ease-in;
          -o-transition: max-height 200ms ease-in;
          transition: max-height 200ms ease-in;

          padding: 0;
          background-color: white;
          visibility: hidden;

          li {

            height: 35px;
            background-color: white;
            font-size: 13px;
            width: 150px;
            line-height: 35px;
            padding: 0 10px;

            &.disabled {
              opacity: 1;
            }
            &.selected {
              background-color: @tlv_color_v;
              font-weight: bold;
            }
            &:hover {
              color: @main_color_a;
            }
            span {
              height: 35px;
              width: 130px;
              display: inline;
              white-space: nowrap;
              overflow: hidden;
            }
          }
        }
        &.item-click:hover ul.sub-menu,
        &.item-click:active ul.sub-menu {
          visibility: visible;
          max-height: 500px;
          border: 1px solid @func_color_b;
          border-radius: 2px;
          box-shadow: 0px 2px 2px 0px rgba(24, 24, 25, 0.1);

          div ul {

          }
        }
      }
    }

  }

  .top-search {
    position: relative;
    flex-grow: 1;
    padding: 0 20px;

    input.search-text {
      .border-radius(2px);
      width: 245px;
      height: 32px;
      line-height: 32px;
      border: 1px solid @main_color_o;
      outline: none;
      text-indent: 10px;

      &::-webkit-input-placeholder { font-style: italic; } /* Safari, Chrome and Opera */
      &:-moz-placeholder { font-style: italic; } /* Firefox 18- */
      &::-moz-placeholder { font-style: italic; } /* Firefox 19+ */
      &:-ms-input-placeholder { font-style: italic; } /* IE 10+ */
      &:-ms-input-placeholder { font-style: italic; } /* Edge */
      /*   font-style: italic;
     }*/
      /* Firefox 18- */
      &::-moz-placeholder {
        font-style: italic;
      }
      /* Firefox 19+ */
      &:-ms-input-placeholder {
        font-style: italic;
      }
      /* IE 10+ */
      &:-ms-input-placeholder {
        font-style: italic;
      }
      /* Edge */
    }

    .magnification {
      position: absolute;
      top: 19px;
      right: 26px;
    }

  }

  .notification-icon {
    cursor: pointer;
    flex-grow: 1;
    margin: 0 10px 6px 0;
    .sprite-new;
    .vsp-list-icon;

    &:hover {
      .vsp-list-icon-hover;
    }

    &:active {
      .vsp-list-icon-active;
    }

  }

}