_header.scss 2.7 KB

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