_header.scss 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  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. &#button_signin { display: none; }
  78. }
  79. /* Button Divider ------------------------------------------------*/
  80. .button_divider {
  81. float: right;
  82. position: relative;
  83. width: 14px;
  84. height: 50px;
  85. }
  86. /* Search ------------------------------------------------*/
  87. #search {
  88. float: right;
  89. width: 80px;
  90. margin: 12px 12px 0 0;
  91. padding: 5px 12px 6px 12px;
  92. background-color: #1d1d1d;
  93. color: #fff;
  94. border: 1px solid black(.9);
  95. box-shadow: 0 1px 0 white(.04);
  96. outline: none;
  97. border-radius: 50px;
  98. opacity: .6;
  99. transition: opacity .3s ease-out, box-shadow .3s ease-out, width .2s ease-out;
  100. &:focus {
  101. width: 140px;
  102. border-color: $colorBlue;
  103. box-shadow: 0 1px 0 white(0);
  104. opacity: 1;
  105. }
  106. &:focus ~ #clearSearch { opacity: 1; }
  107. }
  108. #clearSearch {
  109. position: absolute;
  110. top: 13px;
  111. right: 78px;
  112. padding: 0;
  113. color: white(.5);
  114. font-size: 20px;
  115. opacity: 0;
  116. transition: color .2s ease-out;
  117. cursor: default;
  118. &:hover { color: white(1); }
  119. }
  120. /* Hosted with Lychee ------------------------------------------------*/
  121. #hostedwith {
  122. float: right;
  123. padding: 5px 10px;
  124. margin: 13px 9px;
  125. color: #888;
  126. font-size: 13px;
  127. text-shadow: $shadow;
  128. border-radius: 100px;
  129. display: none;
  130. &:hover { background-color: black(.3); }
  131. }
  132. }