_header.scss 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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. z-index: 1;
  32. cursor: default;
  33. overflow: hidden;
  34. white-space: nowrap;
  35. text-overflow: ellipsis;
  36. .iconic {
  37. display: none;
  38. margin: 0 0 0 5px;
  39. width: 10px;
  40. height: 10px;
  41. fill: white(.5);
  42. transition: fill .2s ease-out;
  43. }
  44. &:hover .iconic { fill: white(1); }
  45. &:active .iconic {
  46. transition: none;
  47. fill: white(.8);
  48. }
  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;
  64. width: 15px;
  65. height: 15px;
  66. &--left { float: left; }
  67. &--right { float: right; }
  68. .iconic {
  69. width: 15px;
  70. height: 15px;
  71. fill: white(.5);
  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. border-radius: 100px;
  134. display: none;
  135. &:hover { background-color: black(.3); }
  136. }
  137. }