_header.scss 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. /**
  2. * @copyright 2014 by Tobias Reich
  3. */
  4. header {
  5. position: fixed;
  6. height: 49px;
  7. width: 100%;
  8. background: linear-gradient(to bottom, #3E3E3E, #282828);
  9. border-bottom: 1px solid #161616;
  10. z-index: 1;
  11. transition: transform .3s ease-out;
  12. }
  13. /* Modes ------------------------------------------------*/
  14. header.hidden {
  15. transform: translateY(-60px);
  16. }
  17. header.loading {
  18. transform: translateY(2px);
  19. }
  20. header.error {
  21. transform: translateY(40px);
  22. }
  23. header.view.error {
  24. background-color: rgba(10,10,10,.99);
  25. }
  26. header.view {
  27. background: none;
  28. border-bottom: none;
  29. }
  30. header.view .button,
  31. header.view #title,
  32. header.view .tools {
  33. text-shadow: none !important;
  34. }
  35. /* Title ------------------------------------------------*/
  36. header #title {
  37. position: absolute;
  38. margin: 0px 30%;
  39. width: 40%;
  40. padding: 15px 0px;
  41. color: #fff;
  42. font-size: 16px;
  43. font-weight: bold;
  44. text-align: center;
  45. text-shadow: 0px -1px 0px #222;
  46. }
  47. header #title.editable {
  48. cursor: pointer;
  49. }
  50. /* Button ------------------------------------------------*/
  51. header .button {
  52. color: #888;
  53. font-family: 'FontAwesome';
  54. font-size: 21px;
  55. font-weight: bold;
  56. text-decoration: none !important;
  57. cursor: pointer;
  58. text-shadow: 0px -1px 0px #222;
  59. }
  60. header .button.left {
  61. float: left;
  62. position: absolute;
  63. padding: 16px 10px 8px 18px;
  64. }
  65. header .button.right {
  66. float: right;
  67. position: relative;
  68. padding: 16px 19px 13px 11px;
  69. }
  70. header .button:hover {
  71. color: #fff;
  72. }
  73. header #tools_albums,
  74. header #tools_album,
  75. header #tools_photo,
  76. header #button_signin {
  77. display: none;
  78. }
  79. /* Button Divider ------------------------------------------------*/
  80. header .button_divider {
  81. float: right;
  82. position: relative;
  83. width: 14px;
  84. height: 50px;
  85. }
  86. /* Search ------------------------------------------------*/
  87. header #search {
  88. float: right;
  89. width: 80px;
  90. margin: 12px 12px 0px 0px;
  91. padding: 5px 12px 6px 12px;
  92. background-color: #383838;
  93. color: #fff;
  94. border: none;
  95. border: 1px solid #131313;
  96. box-shadow: 0px 1px 0px rgba(255,255,255,.1);
  97. outline: none;
  98. border-radius: 50px;
  99. opacity: .6;
  100. transition: opacity .3s ease-out, transform .3s ease-out, box-shadow .3s, width .2s ease-out;
  101. }
  102. header #search:focus {
  103. width: 140px;
  104. }
  105. header #search:focus ~ #clearSearch {
  106. opacity: 1;
  107. }
  108. header #clearSearch {
  109. position: absolute;
  110. top: 15px;
  111. right: 81px;
  112. padding: 0;
  113. font-size: 20px;
  114. opacity: 0;
  115. transition: opacity .2s ease-out;
  116. }
  117. header #clearSearch:hover {
  118. opacity: 1;
  119. }
  120. /* Tools ------------------------------------------------*/
  121. header .tools:first-of-type {
  122. margin-right: 6px;
  123. }
  124. header .tools {
  125. float: right;
  126. padding: 14px 8px;
  127. color: #888;
  128. font-size: 21px;
  129. text-shadow: 0px -1px 0px #222;
  130. cursor: pointer;
  131. }
  132. header .tools:hover a {
  133. color: #fff;
  134. }
  135. header .tools .icon-star {
  136. color: #f0ef77;
  137. }
  138. header .tools .icon-share.active {
  139. color: #ff9737;
  140. }
  141. /* Hosted with Lychee ------------------------------------------------*/
  142. header #hostedwith {
  143. float: right;
  144. padding: 5px 10px;
  145. margin: 13px 9px;
  146. color: #888;
  147. font-size: 13px;
  148. text-shadow: 0px -1px 0px #222;
  149. display: none;
  150. cursor: pointer;
  151. }
  152. header #hostedwith:hover {
  153. background-color: rgba(0, 0, 0, .2);
  154. border-radius: 100px;
  155. }