Header.scss 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. /*
  2. Copyright (C) 2017 Cloudbase Solutions SRL
  3. This program is free software: you can redistribute it and/or modify
  4. it under the terms of the GNU Affero General Public License as
  5. published by the Free Software Foundation, either version 3 of the
  6. License, or (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU Affero General Public License for more details.
  11. You should have received a copy of the GNU Affero General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. */
  14. @import '../variables.scss';
  15. $brand-color: #FFF;
  16. .root {
  17. color: #fff;
  18. background: #000 url('./headerBackground.png');
  19. height: 64px;
  20. position: absolute;
  21. width: 100%;
  22. top: 0;
  23. z-index: 9999;
  24. .bannerTitle {
  25. margin: 0;
  26. font-weight: $weight-light;
  27. font-size: 32px;
  28. line-height: 32px;
  29. color: #FFFFFF;
  30. letter-spacing: -0.81px;
  31. min-width: $wizard-content-width;
  32. padding: 16px 32px;
  33. }
  34. .menuIcon {
  35. width: 20px;
  36. height: 16px;
  37. position: relative;
  38. -webkit-transform: rotate(0deg);
  39. -moz-transform: rotate(0deg);
  40. -o-transform: rotate(0deg);
  41. transform: rotate(0deg);
  42. -webkit-transition: .5s ease-in-out;
  43. -moz-transition: .5s ease-in-out;
  44. -o-transition: .5s ease-in-out;
  45. transition: .5s ease-in-out;
  46. cursor: pointer;
  47. z-index: 1001;
  48. float: left;
  49. margin-left: 24px;
  50. margin-top: 8px;
  51. span {
  52. display: block;
  53. position: absolute;
  54. height: 2px;
  55. width: 100%;
  56. background: #FFF;
  57. border-radius: 1px;
  58. opacity: 1;
  59. left: 0;
  60. -webkit-transform: rotate(0deg);
  61. -moz-transform: rotate(0deg);
  62. -o-transform: rotate(0deg);
  63. transform: rotate(0deg);
  64. -webkit-transition: .25s ease-in-out;
  65. -moz-transition: .25s ease-in-out;
  66. -o-transition: .25s ease-in-out;
  67. transition: .25s ease-in-out;
  68. &:nth-child(1) {
  69. top: 0px;
  70. }
  71. &:nth-child(2), &:nth-child(3) {
  72. top: 8px;
  73. }
  74. &:nth-child(4) {
  75. top: 16px;
  76. }
  77. }
  78. &:global(.open) {
  79. span {
  80. &:nth-child(1) {
  81. top: 6px;
  82. width: 0%;
  83. left: 50%;
  84. }
  85. &:nth-child(2) {
  86. -webkit-transform: rotate(45deg);
  87. -moz-transform: rotate(45deg);
  88. -o-transform: rotate(45deg);
  89. transform: rotate(45deg);
  90. }
  91. &:nth-child(3) {
  92. -webkit-transform: rotate(-45deg);
  93. -moz-transform: rotate(-45deg);
  94. -o-transform: rotate(-45deg);
  95. transform: rotate(-45deg);
  96. }
  97. &:nth-child(4) {
  98. top: 12px;
  99. width: 0%;
  100. left: 50%;
  101. }
  102. }
  103. }
  104. }
  105. }
  106. .sideMenu {
  107. width: 224px;
  108. position: absolute;
  109. left: -224px;
  110. background-color: #000;
  111. background-image: url('../../public/images/star-bg.jpg');
  112. transition: left $animation-swift-out;
  113. ul {
  114. margin-top: 88px;
  115. list-style: none;
  116. li {
  117. margin-bottom: 24px;
  118. list-style-image: none;
  119. a {
  120. font-size: 18px;
  121. color: #FFFFFF;
  122. letter-spacing: -0.27px;
  123. cursor: pointer;
  124. &:hover {
  125. color :$blue;
  126. }
  127. }
  128. }
  129. }
  130. &:global(.open) {
  131. left: 0;
  132. }
  133. }
  134. .container {
  135. margin: 0 auto;
  136. padding: 16px 0;
  137. max-width: $max-content-width
  138. }
  139. .brand {
  140. color: color($brand-color lightness(+10%));
  141. text-decoration: none;
  142. font-size: 1.75em; /* ~28px */
  143. background-size: 7%;
  144. display: inline-block;
  145. margin-left: 24px;
  146. position: relative;
  147. z-index: 10;
  148. float: left;
  149. :global(.logo) {
  150. width: 160px;
  151. height: 32px;
  152. }
  153. }
  154. .userIcon {
  155. float: right;
  156. margin-right: 16px;
  157. }
  158. .brandTxt {
  159. margin-left: 10px;
  160. }
  161. .nav {
  162. float: right;
  163. margin-top: 6px;
  164. }
  165. .banner {
  166. position: absolute;
  167. top: 0;
  168. text-align: center;
  169. width: 100%;
  170. }
  171. .bannerDesc {
  172. padding: 0;
  173. color: rgba(255, 255, 255, .5);
  174. font-size: 1.25em;
  175. margin: 0;
  176. }