_header.scss 3.0 KB

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