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