actions.scss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. @import "vars";
  2. @import "mixins";
  3. #header {
  4. top: 0;
  5. position: fixed;
  6. width: 100%;
  7. z-index: 1000;
  8. padding: $gutter-b;
  9. pointer-events: none;
  10. border-bottom: 1px solid rgba(0,0,0,0.05);
  11. .home {
  12. margin-top: -20px;
  13. margin-left: -20px;
  14. .icon {
  15. color: $dark;
  16. }
  17. }
  18. .header-left,
  19. .header-right {
  20. pointer-events: auto;
  21. position: relative;
  22. z-index: 10;
  23. > * {
  24. display: inline-block;
  25. vertical-align: middle;
  26. }
  27. }
  28. .header-center {
  29. width: 100%;
  30. left: 0;
  31. position: absolute;
  32. text-align: center;
  33. pointer-events: none;
  34. > * {
  35. pointer-events: auto;
  36. font-size: 20px;
  37. line-height: 44px;
  38. color: $darker;
  39. padding: 0 10px;
  40. }
  41. }
  42. .header-left > * { margin-right: 10px; }
  43. .header-right > * { margin-left: 5px; }
  44. .title {
  45. width: 100%;
  46. left: 0;
  47. position: absolute;
  48. text-align: center;
  49. pointer-events: none;
  50. }
  51. h1 {
  52. margin: 0;
  53. height: 60px;
  54. line-height: 60px;
  55. font-size: $font-size*0.75;
  56. font-weight: bold;
  57. color: $medium;
  58. display: inline-block;
  59. margin-top: -14px;
  60. pointer-events: all;
  61. font-weight: normal;
  62. }
  63. .author {
  64. float: left;
  65. .btn {
  66. margin-right: 10px;
  67. }
  68. .author-date {
  69. opacity: 0.5;
  70. }
  71. }
  72. }
  73. .actions {
  74. position: absolute;
  75. top: 0;
  76. @include transition( all 0.25s ease-in-out);
  77. @include backface-visibility(hidden);
  78. z-index: 3000;
  79. opacity: 0;
  80. pointer-events: none;
  81. .actions {
  82. margin: 0;
  83. }
  84. @include scale(0,0);
  85. &.left { left: 0;}
  86. &.right { right: 0;}
  87. &.in {
  88. @include scale(1,1);
  89. opacity: 1;
  90. * {
  91. pointer-events: auto;
  92. }
  93. }
  94. }
  95. #global-actions {
  96. margin: 10px;
  97. text-align: center;
  98. display: inline-block;
  99. position: absolute;
  100. white-space: nowrap;
  101. left: 54px;
  102. top: 0;
  103. .btn {
  104. padding: 0 8px;
  105. &:first-child {padding-left: 20px; }
  106. &:last-child {padding-right: 20px; }
  107. }
  108. }
  109. #search-wrapper {
  110. position: relative;
  111. display: inline-block;
  112. vertical-align: middle;
  113. .icon {
  114. position: absolute;
  115. right: 5px;
  116. top: 0;
  117. }
  118. #search-input {
  119. text-align: left;
  120. @include transition( width 0.25s ease-in-out, background-color 0.25s ease-in-out);
  121. width: 100px;
  122. &:focus {
  123. width: 250px;
  124. }
  125. }
  126. }
  127. #home-actions {
  128. width: 100%;
  129. img {
  130. margin: auto;
  131. display: block;
  132. opacity: 0.1;
  133. margin-top: 6px;
  134. }
  135. }
  136. #no-profile-actions,
  137. #profile-actions {
  138. right: 0;
  139. }
  140. #user-actions {
  141. #profile-toggle {
  142. background-size: cover;
  143. background-position: center;
  144. }
  145. }
  146. #space-actions {
  147. right: 0;
  148. .btn {
  149. text-transform: uppercase;
  150. }
  151. #space-version {
  152. position: absolute;
  153. right: 50px;
  154. }
  155. #space-pub-save {
  156. display: inline-block;
  157. position: relative;
  158. vertical-align: middle;
  159. height: 44px;
  160. .btn {
  161. position: absolute;
  162. right: 0;
  163. top: 0;
  164. @include perspective-origin(center right);
  165. }
  166. }
  167. }