_header.scss 3.1 KB

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