Dixsie Wolmers | c652ed1 | 2019-07-19 13:03:28 -0500 | [diff] [blame] | 1 | /** |
2 | * Application header styles | ||||
3 | * Should only be used for the application header | ||||
4 | */ | ||||
5 | |||||
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 6 | $logoHeight: 30px; |
7 | $logoMaxHeight: 100px; | ||||
8 | $logoMaxWidth: 125px; | ||||
9 | |||||
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 10 | @mixin round-corners { |
11 | -webkit-border-radius: 6px 6px; | ||||
12 | -moz-border-radius: 6px 6px; | ||||
13 | border-radius: 6px 6px; | ||||
14 | } | ||||
15 | |||||
Derick Montague | 1ffa209 | 2019-04-01 17:57:27 -0500 | [diff] [blame] | 16 | .header { |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 17 | position: fixed; |
18 | top: 0; | ||||
19 | left: 0; | ||||
20 | right: 0; | ||||
Iftekharul Islam | 4390b02 | 2017-06-05 09:44:50 -0500 | [diff] [blame] | 21 | z-index: 300; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 22 | } |
23 | |||||
Derick Montague | 1ffa209 | 2019-04-01 17:57:27 -0500 | [diff] [blame] | 24 | .header__info-section { |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 25 | position: relative; |
Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 26 | background: $primary-dark; |
27 | color: $primary-light; | ||||
Yoshie Muranaka | 4148f2e | 2020-01-29 13:21:12 -0800 | [diff] [blame] | 28 | width: 100%; |
29 | height: 50px; | ||||
30 | display: flex; | ||||
31 | justify-content: space-between; | ||||
32 | .dropdown-menu { | ||||
33 | left: unset; | ||||
34 | right: 0; | ||||
35 | border-radius: 0; | ||||
36 | font-size: 0.9rem; | ||||
37 | .btn { | ||||
38 | color: $primary-dark; | ||||
39 | } | ||||
40 | } | ||||
41 | .dropdown-toggle { | ||||
42 | color: $primary-light; | ||||
43 | fill: $primary-light; | ||||
44 | text-decoration: none; | ||||
45 | font-weight: 400; | ||||
46 | margin-right: 0.5rem; | ||||
47 | height: 50px; //to vertically align in 50px header | ||||
48 | &::after { | ||||
49 | display: none; //hiding dropdown caret inserted by bootstrap | ||||
50 | } | ||||
51 | } | ||||
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 52 | } |
53 | |||||
Yoshie Muranaka | 4148f2e | 2020-01-29 13:21:12 -0800 | [diff] [blame] | 54 | .header__title { |
55 | margin-left: 1rem; | ||||
56 | display: block; | ||||
57 | line-height: 50px; //to vertically align in 50px header | ||||
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 58 | } |
59 | |||||
Derick Montague | 1ffa209 | 2019-04-01 17:57:27 -0500 | [diff] [blame] | 60 | .header__functions-section { |
Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 61 | color: $primary-light; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 62 | padding: 0 1.1em; |
63 | box-sizing: border-box; | ||||
64 | display: block; | ||||
65 | position: relative; | ||||
66 | overflow: hidden; | ||||
67 | min-height: 5em; | ||||
Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 68 | border-bottom: 1px solid $border-color-01; |
69 | background: $primary-light; | ||||
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 70 | .header__server-name { |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 71 | font-size: 1.5em; |
72 | font-weight: 500; | ||||
Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 73 | color: $text-02; |
Dixsie Wolmers | c652ed1 | 2019-07-19 13:03:28 -0500 | [diff] [blame] | 74 | padding: 0.4em 0 0 1em; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 75 | height: 100%; |
76 | background: transparent; | ||||
Jayashankar Padath | a5f48c7 | 2018-02-16 15:34:55 +0530 | [diff] [blame] | 77 | max-width: 600px; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 78 | white-space: nowrap; |
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 79 | overflow: hidden; |
80 | .header__hostname { | ||||
Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 81 | color: $primary-dark; |
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 82 | font-size: 1.2rem; |
83 | font-weight: 700; | ||||
84 | margin-bottom: 0; | ||||
85 | } | ||||
86 | .header__server-ip { | ||||
87 | font-size: 1rem; | ||||
88 | } | ||||
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 89 | } |
90 | .logo__wrapper { | ||||
Dixsie Wolmers | c652ed1 | 2019-07-19 13:03:28 -0500 | [diff] [blame] | 91 | padding-top: 0.5em; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 92 | } |
93 | |||||
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 94 | .header__logo { |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 95 | vertical-align: middle; |
96 | margin: 1em; | ||||
97 | float: left; | ||||
98 | height: $logoHeight; //required for <SVG> logos - can remove if using img | ||||
99 | max-height: $logoMaxHeight; | ||||
100 | max-width: $logoMaxWidth; | ||||
101 | width: auto; | ||||
102 | } | ||||
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 103 | |
104 | .header__functions { | ||||
105 | position: absolute; | ||||
106 | top: 0; | ||||
Ryan Arnell | 75494d4 | 2019-01-16 15:07:58 -0600 | [diff] [blame] | 107 | right: -480px; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 108 | bottom: 0; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 109 | z-index: 100; |
Dixsie Wolmers | c652ed1 | 2019-07-19 13:03:28 -0500 | [diff] [blame] | 110 | margin: 0.3em 0; |
Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 111 | background: $primary-light; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 112 | @include fastTransition-all; |
Michael Davis | a1dcfe0 | 2017-08-18 16:32:33 -0500 | [diff] [blame] | 113 | &.active { |
114 | right: 1em; | ||||
115 | } | ||||
116 | @media (min-width: 1025px) { | ||||
117 | right: 0; | ||||
118 | } | ||||
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 119 | span { |
120 | display: block; | ||||
Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 121 | color: $primary-dark; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 122 | font-size: 1em; |
123 | } | ||||
Dixsie Wolmers | c652ed1 | 2019-07-19 13:03:28 -0500 | [diff] [blame] | 124 | a, |
125 | p { | ||||
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 126 | display: block; |
127 | float: left; | ||||
128 | text-decoration: none; | ||||
Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 129 | color: $text-02; |
Dixsie Wolmers | c652ed1 | 2019-07-19 13:03:28 -0500 | [diff] [blame] | 130 | padding: 1.25em; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 131 | height: 100%; |
132 | font-size: 0.875em; | ||||
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 133 | font-weight: 400; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 134 | line-height: 1; |
135 | > span { | ||||
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 136 | display: block; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 137 | font-size: 1rem; |
138 | font-weight: bold; | ||||
Dixsie Wolmers | c652ed1 | 2019-07-19 13:03:28 -0500 | [diff] [blame] | 139 | margin-top: 0.5em; |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 140 | } |
141 | } | ||||
142 | } | ||||
143 | |||||
Derick Montague | 30d7c63 | 2019-07-31 22:35:48 -0500 | [diff] [blame] | 144 | .header__action { |
Michael Davis | 4250f30 | 2017-09-06 11:03:52 -0500 | [diff] [blame] | 145 | @include fastTransition-all; |
Derick Montague | 30d7c63 | 2019-07-31 22:35:48 -0500 | [diff] [blame] | 146 | @include round-corners; |
147 | height: 100%; | ||||
148 | background: $background-02; | ||||
149 | border: 1px solid $border-color-01; | ||||
150 | margin: 0 0.3em; | ||||
151 | opacity: 1; | ||||
152 | |||||
153 | .icon svg { | ||||
Dixsie Wolmers | 50c1aa1 | 2019-10-14 13:22:36 -0500 | [diff] [blame] | 154 | height: 1rem; |
Derick Montague | 30d7c63 | 2019-07-31 22:35:48 -0500 | [diff] [blame] | 155 | } |
156 | |||||
Yoshie Muranaka | 4b366b5 | 2019-09-24 08:32:42 -0700 | [diff] [blame] | 157 | .status-icon { |
158 | vertical-align: text-top; | ||||
159 | } | ||||
160 | |||||
Michael Davis | 4250f30 | 2017-09-06 11:03:52 -0500 | [diff] [blame] | 161 | &:hover { |
Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 162 | background: $background-01; |
Michael Davis | 4250f30 | 2017-09-06 11:03:52 -0500 | [diff] [blame] | 163 | } |
164 | } | ||||
165 | |||||
Michael Davis | 4250f30 | 2017-09-06 11:03:52 -0500 | [diff] [blame] | 166 | .header__functions { |
Derick Montague | 30d7c63 | 2019-07-31 22:35:48 -0500 | [diff] [blame] | 167 | .header__action--info { |
Dixsie Wolmers | c652ed1 | 2019-07-19 13:03:28 -0500 | [diff] [blame] | 168 | padding: 0.3em; |
Ryan Arnell | 75494d4 | 2019-01-16 15:07:58 -0600 | [diff] [blame] | 169 | min-width: 40px; |
Michael Davis | a1dcfe0 | 2017-08-18 16:32:33 -0500 | [diff] [blame] | 170 | text-align: center; |
Ryan Arnell | 75494d4 | 2019-01-16 15:07:58 -0600 | [diff] [blame] | 171 | float: left; |
Michael Davis | a1dcfe0 | 2017-08-18 16:32:33 -0500 | [diff] [blame] | 172 | span { |
Dixsie Wolmers | c652ed1 | 2019-07-19 13:03:28 -0500 | [diff] [blame] | 173 | padding: 0.7em 0 0.3em; |
Michael Davis | a1dcfe0 | 2017-08-18 16:32:33 -0500 | [diff] [blame] | 174 | font-size: 1em; |
175 | font-weight: 400; | ||||
Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 176 | color: $text-02; |
Michael Davis | a1dcfe0 | 2017-08-18 16:32:33 -0500 | [diff] [blame] | 177 | } |
Derick Montague | 30d7c63 | 2019-07-31 22:35:48 -0500 | [diff] [blame] | 178 | |
179 | .icon { | ||||
Michael Davis | a1dcfe0 | 2017-08-18 16:32:33 -0500 | [diff] [blame] | 180 | @include fastTransition-all; |
Derick Montague | 30d7c63 | 2019-07-31 22:35:48 -0500 | [diff] [blame] | 181 | svg { |
Dixsie Wolmers | 50c1aa1 | 2019-10-14 13:22:36 -0500 | [diff] [blame] | 182 | width: 1.25rem; |
Derick Montague | 30d7c63 | 2019-07-31 22:35:48 -0500 | [diff] [blame] | 183 | height: auto; |
184 | } | ||||
Michael Davis | a1dcfe0 | 2017-08-18 16:32:33 -0500 | [diff] [blame] | 185 | } |
Derick Montague | 30d7c63 | 2019-07-31 22:35:48 -0500 | [diff] [blame] | 186 | |
Michael Davis | a1dcfe0 | 2017-08-18 16:32:33 -0500 | [diff] [blame] | 187 | @media (min-width: 1025px) { |
188 | display: none; | ||||
189 | } | ||||
190 | } | ||||
191 | |||||
Derick Montague | 30d7c63 | 2019-07-31 22:35:48 -0500 | [diff] [blame] | 192 | &.active > .header__action--info > .icon { |
193 | transform: rotate(-180deg); | ||||
Michael Davis | a1dcfe0 | 2017-08-18 16:32:33 -0500 | [diff] [blame] | 194 | } |
195 | |||||
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 196 | .header__refresh { |
Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 197 | color: $text-02; |
Michael Davis | a5f222a | 2017-08-04 15:02:38 -0500 | [diff] [blame] | 198 | line-height: 1.4; |
199 | border-radius: 6px; | ||||
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 200 | span { |
201 | @include fontCourierBold; | ||||
202 | } | ||||
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 203 | } |
204 | } | ||||
Derick Montague | 30d7c63 | 2019-07-31 22:35:48 -0500 | [diff] [blame] | 205 | .header__action--refresh { |
Yoshie Muranaka | c86ce3c | 2019-06-05 12:30:30 -0500 | [diff] [blame] | 206 | padding-top: 1em; |
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 207 | span { |
208 | font-size: 0.875em; | ||||
209 | font-weight: 400; | ||||
Yoshie Muranaka | 6f7ec80 | 2019-06-24 14:35:41 -0500 | [diff] [blame] | 210 | color: $text-02; |
Michael Davis | a6a15c2 | 2017-07-31 18:45:41 -0500 | [diff] [blame] | 211 | display: block; |
Dixsie Wolmers | c652ed1 | 2019-07-19 13:03:28 -0500 | [diff] [blame] | 212 | margin-bottom: 0.2em; |
Yoshie Muranaka | c86ce3c | 2019-06-05 12:30:30 -0500 | [diff] [blame] | 213 | } |
214 | .icon { | ||||
215 | display: block; | ||||
216 | margin-left: auto; | ||||
217 | margin-right: auto; | ||||
Derick Montague | 30d7c63 | 2019-07-31 22:35:48 -0500 | [diff] [blame] | 218 | |
219 | svg { | ||||
Dixsie Wolmers | 50c1aa1 | 2019-10-14 13:22:36 -0500 | [diff] [blame] | 220 | height: 1.5rem; |
Derick Montague | 30d7c63 | 2019-07-31 22:35:48 -0500 | [diff] [blame] | 221 | fill: $primary-accent; |
222 | } | ||||
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 223 | } |
224 | } | ||||
225 | } | ||||
226 | |||||
Derick Montague | 1ffa209 | 2019-04-01 17:57:27 -0500 | [diff] [blame] | 227 | // end header__functions-section |