_header.scss 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  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. /* Toolbars ------------------------------------------------*/
  48. .toolbar {
  49. display: none;
  50. position: absolute;
  51. box-sizing: border-box;
  52. width: 100%;
  53. height: 100%;
  54. padding: 0 10px;
  55. }
  56. /* Button ------------------------------------------------*/
  57. .button {
  58. display: inline-block;
  59. padding: 16px 8px 12px;
  60. width: 15px;
  61. cursor: pointer;
  62. &.left { float: left; }
  63. &.right { float: right; }
  64. .iconic {
  65. fill: #888;
  66. filter: drop-shadow( 0 -1px 0 rgba(0, 0, 0, .2) );
  67. transition: fill .2s ease;
  68. }
  69. &:hover .iconic { fill: #fff; }
  70. &--star.active .iconic { fill: #f0ef77; }
  71. &--eye.active .iconic { fill: #ff9737; }
  72. &#button_signin { display: none; }
  73. }
  74. /* Button Divider ------------------------------------------------*/
  75. .button_divider {
  76. float: right;
  77. position: relative;
  78. width: 14px;
  79. height: 50px;
  80. }
  81. /* Search ------------------------------------------------*/
  82. #search {
  83. float: right;
  84. width: 80px;
  85. margin: 12px 12px 0 0;
  86. padding: 5px 12px 6px 12px;
  87. background-color: #383838;
  88. color: #fff;
  89. border: 1px solid rgba(0, 0, 0, .6);
  90. box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
  91. outline: none;
  92. border-radius: 50px;
  93. opacity: .6;
  94. transition: opacity .3s ease-out, transform .3s ease-out, box-shadow .3s, width .2s ease-out;
  95. &:focus { width: 140px; }
  96. &:focus ~ #clearSearch { opacity: 1; }
  97. }
  98. #clearSearch {
  99. position: absolute;
  100. top: 13px;
  101. right: 78px;
  102. padding: 0;
  103. color: #888;
  104. font-size: 20px;
  105. opacity: 0;
  106. transition: opacity .2s ease-out, color .2s ease-out;
  107. cursor: pointer;
  108. &:hover {
  109. color: #fff;
  110. opacity: 1;
  111. }
  112. }
  113. /* Hosted with Lychee ------------------------------------------------*/
  114. #hostedwith {
  115. float: right;
  116. padding: 5px 10px;
  117. margin: 13px 9px;
  118. color: #888;
  119. font-size: 13px;
  120. text-shadow: 0 -1px 0 rgba(0, 0, 0, .3);
  121. display: none;
  122. cursor: pointer;
  123. &:hover {
  124. background-color: rgba(0, 0, 0, .2);
  125. border-radius: 100px;
  126. }
  127. }
  128. }