header.css 3.3 KB

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