_header.scss 2.9 KB

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