header.scss 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. @import "vars";
  2. @import "mixins";
  3. .header-center,
  4. .header-left,
  5. .header-right {
  6. position: absolute;
  7. //@include transition( all 0.25s ease-in-out);
  8. @include backface-visibility(hidden);
  9. z-index: 3000;
  10. top: 10px;
  11. > * {
  12. display: inline-block;
  13. vertical-align: middle;
  14. }
  15. &.out {
  16. opacity: 0;
  17. pointer-events: none;
  18. * {
  19. pointer-events: none !important;
  20. }
  21. }
  22. }
  23. .home {
  24. margin-top: -20px;
  25. margin-left: -20px;
  26. // .icon {color: $dark; }
  27. }
  28. .header-left {
  29. @include transform-origin(center left);
  30. left: 0;
  31. padding-left: 10px;
  32. }
  33. .header-right {
  34. @include transform-origin(center right);
  35. right: 0;
  36. padding-right: 10px;
  37. }
  38. .header-center {
  39. @include transform-origin(center center);
  40. width: 100%;
  41. left: 0;
  42. right: 0;
  43. position: absolute;
  44. text-align: center;
  45. color: $medium;
  46. > * {
  47. font-size: 20px;
  48. line-height: 44px;
  49. color: $medium;
  50. padding: 0 10px;
  51. }
  52. }
  53. .header-left > * { margin-right: 10px; }
  54. .header-right > * { margin-left: 5px; }
  55. .header-right { font-size: 0;}
  56. .title {
  57. width: 100%;
  58. left: 0;
  59. position: absolute;
  60. text-align: center;
  61. pointer-events: none;
  62. h1 {
  63. margin: 0;
  64. height: 60px;
  65. line-height: 60px;
  66. font-size: $font-size*0.75;
  67. // text-transform: uppercase;
  68. font-weight: bold;
  69. color: $medium;
  70. display: inline-block;
  71. margin-top: -14px;
  72. pointer-events: all;
  73. font-weight: normal;
  74. }
  75. }
  76. .author {
  77. float: left;
  78. .btn {
  79. margin-right: 10px;
  80. }
  81. .author-date {
  82. opacity: 0.5;
  83. }
  84. }
  85. .present-mode #space-header {
  86. background-color: transparent !important;
  87. }
  88. #space-siblings {
  89. background-color: rgba(245, 245, 245, 0.95);
  90. padding: 35px;
  91. max-height: 450px;
  92. overflow-y: scroll;
  93. margin-top: 54px;
  94. border-bottom: 1px solid #eee;
  95. .btn {
  96. margin-bottom: 50px;
  97. }
  98. }