_header.scss 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312
  1. // Header styling
  2. $dropdown-color: #f6f6f6;
  3. #header {
  4. @extend .default-animation;
  5. @extend .padding-horiz;
  6. padding-left: 1.5rem !important;
  7. position: fixed;
  8. z-index: 10;
  9. width: 100%;
  10. height: $header-height;
  11. background-color: white;
  12. box-shadow: 0 0.05rem 1rem rgba(0,0,0, 0.15);
  13. padding-left: 1rem;
  14. #logo img {
  15. display: flex;
  16. flex-direction: row;
  17. flex-flow: row;
  18. padding: 0;
  19. margin: 0;
  20. height: $header-height;
  21. }
  22. #epau{
  23. padding-left: 1rem !important;
  24. }
  25. // scroll based changes
  26. &.scrolled {
  27. // height: $header-height - 0.5rem;
  28. background-color: rgb(255,255,255) !important;
  29. box-shadow: 0 0.05rem 1rem rgba(0,0,0, 0.15) !important;
  30. // #logo h3 {
  31. // color: $core-text !important;
  32. // font-size: 1.6rem !important;
  33. // }
  34. #logo a, #navbar span {
  35. color: $black !important;
  36. }
  37. #navbar a {
  38. color: $black !important;
  39. &:hover {
  40. color: darken($core-accent, 20%) !important;
  41. }
  42. }
  43. #navbar a:before, #navbar a:after {
  44. background-color: $core-accent !important;
  45. }
  46. // .navigation {
  47. // margin-top: 0.5rem !important;
  48. // }
  49. }
  50. // set heights for vertical centering
  51. > .grid, #logo, #navbar {
  52. height: 100%;
  53. }
  54. #logo {
  55. float: left;
  56. h3 {
  57. @extend .default-animation;
  58. @extend %vertical-align;
  59. font-size: 2rem;
  60. line-height: 2rem;
  61. margin: 0;
  62. a {
  63. color: $black;
  64. }
  65. }
  66. }
  67. #navbar {
  68. font-size: $core-font-size + 0.4rem;
  69. /* Child Indicator */
  70. .has-children {
  71. & > a {
  72. & > span {
  73. display: inline-block;
  74. padding-right: 8px;
  75. &:after {
  76. font-family: FontAwesome;
  77. content: '\f107';
  78. position: absolute;
  79. display: inline-block;
  80. right: 8px;
  81. top: 4px;
  82. }
  83. }
  84. &:after, &:before {
  85. display: none;
  86. }
  87. }
  88. & .has-children > a > span:after {
  89. content: '\f105';
  90. }
  91. }
  92. .navigation > .has-children:hover > a {
  93. background: $dropdown-color;
  94. border: 1px solid darken($dropdown-color, 4%);
  95. border-bottom-color: $dropdown-color;
  96. margin: -1px -1px 0 -1px;
  97. z-index: 1000;
  98. position: relative;
  99. padding-bottom: 1px;
  100. }
  101. ul {
  102. margin: 0;
  103. padding: 0;
  104. list-style: none;
  105. text-transform: uppercase;
  106. &.navigation {
  107. display: inline-block;
  108. float: right;
  109. @extend .default-animation;
  110. margin-top: 1.4rem;
  111. li {
  112. float: left;
  113. position: relative;
  114. a {
  115. font-family: $font-family-header;
  116. display: inline-block;
  117. padding: 0.3rem 0.8rem;
  118. -webkit-backface-visibility: hidden;
  119. // &:before, &:after {
  120. // content: "";
  121. // position: absolute;
  122. // width: 100%;
  123. // height: 1px;
  124. // bottom: 0;
  125. // left: 0;
  126. // background-color: $core-accent;
  127. // visibility: hidden;
  128. // @include transform(scaleX(0));
  129. // @include transition(all 0.2s ease);
  130. //
  131. // }
  132. &:hover:before {
  133. visibility: visible;
  134. @include transform(scaleX(0.75));
  135. }
  136. &.active:after {
  137. top: 0;
  138. visibility: visible;
  139. @include transform(scaleX(0.75));
  140. }
  141. }
  142. &.active {
  143. a:after {
  144. top: 0;
  145. visibility: visible;
  146. @include transform(scaleX(0.75));
  147. }
  148. }
  149. /*Active dropdown nav item */
  150. ul {
  151. position: absolute;
  152. background-color: $dropdown-color;
  153. border: 1px solid darken($dropdown-color, 4%);
  154. border-top: 0;
  155. min-width: 12rem;
  156. text-align: left;
  157. z-index: 999;
  158. left: -1px;
  159. display: none;
  160. }
  161. ul li {
  162. display: block;
  163. float: none;
  164. /* Active Dropdown nav item */
  165. &.active > a {
  166. background-color: darken($dropdown-color, 4%);
  167. color: $core-accent;
  168. }
  169. &:hover > a {
  170. background-color: $core-accent;
  171. color: $white;
  172. }
  173. a {
  174. display: block;
  175. margin: 0 -1px;
  176. &:after, &:before {
  177. display: none;
  178. }
  179. }
  180. }
  181. /* Dropdown CSS */
  182. ul ul {
  183. left: 100%;
  184. top: 0px;
  185. }
  186. /* Active on Hover */
  187. &:hover > ul {
  188. display: block;
  189. }
  190. }
  191. @include breakpoint(desktop-only) {
  192. display: none;
  193. }
  194. }
  195. }
  196. .panel-activation {
  197. @extend %vertical-align;
  198. padding: 1rem;
  199. display: none;
  200. font-size: 1.8rem;
  201. cursor: pointer;
  202. float: right;
  203. @include breakpoint(desktop-only) {
  204. display: inline-block;
  205. }
  206. }
  207. }
  208. }
  209. // Header Image
  210. .header-image {
  211. &.fullwidth {
  212. #body {
  213. padding-left: 0;
  214. padding-right: 0;
  215. >.listing-row {
  216. padding-left: $padding-horiz;
  217. padding-right: $padding-horiz;
  218. }
  219. }
  220. }
  221. .listing-row:last-child {
  222. margin-bottom: 2rem;
  223. }
  224. #body {
  225. .flush-top {
  226. margin-top: - $header-height - $padding-vert - 1.5rem;
  227. padding-top: $header-height + 4rem;
  228. }
  229. }
  230. #breadcrumbs {
  231. margin-top: 1rem;
  232. }
  233. #header {
  234. background-color: rgba($header-text,0);
  235. box-shadow: none;
  236. .navigation .has-children:hover a {
  237. color: $core-accent;
  238. }
  239. #logo h3, #logo a {
  240. color: $header-text;
  241. }
  242. a, .menu-btn {
  243. color: $header-text;
  244. }
  245. a:before, a:after {
  246. background-color: rgba($header-text,0.7) !important;
  247. }
  248. }
  249. }