_header.scss 3.2 KB

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