summaryrefslogtreecommitdiffstats
path: root/app/common/styles/layout/header.scss
blob: b1665ca20368476200d038fe14dc1d1bc16548c0 (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
226
227
/**
 * Application header styles
 * Should only be used for the application header
 */

$logoHeight: 30px;
$logoMaxHeight: 100px;
$logoMaxWidth: 125px;

@mixin round-corners {
  -webkit-border-radius: 6px 6px;
  -moz-border-radius: 6px 6px;
  border-radius: 6px 6px;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
}

.header__info-section {
  position: relative;
  background: $primary-dark;
  color: $primary-light;
  width: 100%;
  height: 50px;
  display: flex;
  justify-content: space-between;
  .dropdown-menu {
    left: unset;
    right: 0;
    border-radius: 0;
    font-size: 0.9rem;
    .btn {
      color: $primary-dark;
    }
  }
  .dropdown-toggle {
    color: $primary-light;
    fill: $primary-light;
    text-decoration: none;
    font-weight: 400;
    margin-right: 0.5rem;
    height: 50px; //to vertically align in 50px header
    &::after {
      display: none; //hiding dropdown caret inserted by bootstrap
    }
  }
}

.header__title {
  margin-left: 1rem;
  display: block;
  line-height: 50px; //to vertically align in 50px header
}

.header__functions-section {
  color: $primary-light;
  padding: 0 1.1em;
  box-sizing: border-box;
  display: block;
  position: relative;
  overflow: hidden;
  min-height: 5em;
  border-bottom: 1px solid $border-color-01;
  background: $primary-light;
  .header__server-name {
    font-size: 1.5em;
    font-weight: 500;
    color: $text-02;
    padding: 0.4em 0 0 1em;
    height: 100%;
    background: transparent;
    max-width: 600px;
    white-space: nowrap;
    overflow: hidden;
    .header__hostname {
      color: $primary-dark;
      font-size: 1.2rem;
      font-weight: 700;
      margin-bottom: 0;
    }
    .header__server-ip {
      font-size: 1rem;
    }
  }
  .logo__wrapper {
    padding-top: 0.5em;
  }

  .header__logo {
    vertical-align: middle;
    margin: 1em;
    float: left;
    height: $logoHeight; //required for <SVG> logos - can remove if using img
    max-height: $logoMaxHeight;
    max-width: $logoMaxWidth;
    width: auto;
  }

  .header__functions {
    position: absolute;
    top: 0;
    right: -480px;
    bottom: 0;
    z-index: 100;
    margin: 0.3em 0;
    background: $primary-light;
    @include fastTransition-all;
    &.active {
      right: 1em;
    }
    @media (min-width: 1025px) {
      right: 0;
    }
    span {
      display: block;
      color: $primary-dark;
      font-size: 1em;
    }
    a,
    p {
      display: block;
      float: left;
      text-decoration: none;
      color: $text-02;
      padding: 1.25em;
      height: 100%;
      font-size: 0.875em;
      font-weight: 400;
      line-height: 1;
      > span {
        display: block;
        font-size: 1rem;
        font-weight: bold;
        margin-top: 0.5em;
      }
    }
  }

  .header__action {
    @include fastTransition-all;
    @include round-corners;
    height: 100%;
    background: $background-02;
    border: 1px solid $border-color-01;
    margin: 0 0.3em;
    opacity: 1;

    .icon svg {
      height: 1rem;
    }

    .status-icon {
      vertical-align: text-top;
    }

    &:hover {
      background: $background-01;
    }
  }

  .header__functions {
    .header__action--info {
      padding: 0.3em;
      min-width: 40px;
      text-align: center;
      float: left;
      span {
        padding: 0.7em 0 0.3em;
        font-size: 1em;
        font-weight: 400;
        color: $text-02;
      }

      .icon {
        @include fastTransition-all;
        svg {
          width: 1.25rem;
          height: auto;
        }
      }

      @media (min-width: 1025px) {
        display: none;
      }
    }

    &.active > .header__action--info > .icon {
      transform: rotate(-180deg);
    }

    .header__refresh {
      color: $text-02;
      line-height: 1.4;
      border-radius: 6px;
      span {
        @include fontCourierBold;
      }
    }
  }
  .header__action--refresh {
    padding-top: 1em;
    span {
      font-size: 0.875em;
      font-weight: 400;
      color: $text-02;
      display: block;
      margin-bottom: 0.2em;
    }
    .icon {
      display: block;
      margin-left: auto;
      margin-right: auto;

      svg {
        height: 1.5rem;
        fill: $primary-accent;
      }
    }
  }
}

// end header__functions-section
OpenPOWER on IntegriCloud