header.css 4.1 KB

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