_header.scss 2.9 KB

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