_header.scss 3.1 KB

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