_sidebar.scss 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. /**
  2. * @copyright 2015 by Tobias Reich
  3. */
  4. #sidebar {
  5. position: fixed;
  6. top: 50px;
  7. right: -370px;
  8. width: 350px;
  9. height: calc(100% - 50px);
  10. background-color: rgba(25, 25, 25, .98);
  11. border-left: 1px solid black(.2);
  12. transform: translateX(0);
  13. transition: transform .3s $timingBounce;
  14. &.active { transform: translateX(-320px); }
  15. &.notSelectable table tr td:last-child {
  16. -webkit-user-select: none !important;
  17. -moz-user-select: none !important;
  18. user-select: none !important;
  19. }
  20. /* Header ------------------------------------------------*/
  21. .header {
  22. float: left;
  23. height: 49px;
  24. width: 100%;
  25. background: linear-gradient(to bottom, white(.02), black(0));
  26. border-top: 1px solid $colorBlue;
  27. }
  28. .header h1 {
  29. position: absolute;
  30. margin: 15px 50px 15px 0;
  31. width: calc(100% - 50px);
  32. color: #fff;
  33. font-size: 16px;
  34. font-weight: bold;
  35. text-align: center;
  36. text-shadow: $shadow;
  37. }
  38. .header .close {
  39. float: right;
  40. padding: 16px 65px 12px 15px;
  41. width: 15px;
  42. .iconic {
  43. fill: white(.5);
  44. filter: drop-shadow($shadow);
  45. transition: fill .2s ease-out;
  46. }
  47. &:hover .iconic { fill: white(1); }
  48. &:active .iconic {
  49. transition: none;
  50. fill: white(.8);
  51. }
  52. }
  53. /* Wrapper ------------------------------------------------*/
  54. .wrapper {
  55. float: left;
  56. height: calc(100% - 49px);
  57. width: 300px;
  58. overflow: scroll;
  59. -webkit-overflow-scrolling: touch;
  60. }
  61. /* Divider ------------------------------------------------*/
  62. .divider {
  63. float: left;
  64. padding: 12px 0 8px;
  65. width: 100%;
  66. border-top: 1px solid white(.02);
  67. box-shadow: $shadow;
  68. &:first-child {
  69. border-top: 0;
  70. box-shaodw: none;
  71. }
  72. h1 {
  73. margin: 0 0 0 20px;
  74. color: white(.6);
  75. font-size: 14px;
  76. font-weight: bold;
  77. }
  78. }
  79. /* Edit ------------------------------------------------*/
  80. .edit {
  81. display: inline-block;
  82. margin-left: 3px;
  83. width: 10px;
  84. .iconic {
  85. fill: white(.5);
  86. filter: drop-shadow($shadow);
  87. transition: fill .2s ease-out;
  88. }
  89. &:hover .iconic { fill: white(1); }
  90. &:active .iconic {
  91. transition: none;
  92. fill: white(.8);
  93. }
  94. }
  95. /* Table ------------------------------------------------*/
  96. table {
  97. float: left;
  98. margin: 10px 0 15px 20px;
  99. }
  100. table tr td {
  101. padding: 5px 0px;
  102. color: #fff;
  103. font-size: 14px;
  104. line-height: 19px;
  105. &:first-child { width: 110px; }
  106. &:last-child {
  107. padding-right: 10px;
  108. -webkit-user-select: text;
  109. -moz-user-select: text;
  110. user-select: text;
  111. }
  112. }
  113. /* Tags ------------------------------------------------*/
  114. #tags {
  115. width: calc(100% - 40px);
  116. margin: 16px 20px 12px 20px;
  117. color: #fff;
  118. display: inline-block;
  119. }
  120. #tags .empty {
  121. font-size: 14px;
  122. margin-bottom: 8px;
  123. }
  124. #tags .edit { margin-top: 6px; }
  125. #tags .empty .edit { margin-top: 0; }
  126. #tags .tag {
  127. display: inline-block;
  128. padding: 6px 10px;
  129. margin: 0 6px 8px 0;
  130. background-color: black(.5);
  131. border-radius: 100px;
  132. font-size: 12px;
  133. transition: background-color .2s;
  134. &:hover { background-color: black(.3); }
  135. }
  136. #tags .tag span {
  137. float: right;
  138. padding: 0;
  139. margin: 0 0 -2px 0;
  140. width: 0;
  141. overflow: hidden;
  142. transform: scale(0);
  143. transition: width .2s, margin .2s, transform .2s, fill .2s ease-out;
  144. .iconic {
  145. fill: $colorRed;
  146. width: 8px;
  147. filter: drop-shadow($shadowLight);
  148. }
  149. &:hover .iconic { fill: lighten($colorRed, 10%); }
  150. &:active .iconic {
  151. transition: none;
  152. fill: darken($colorRed, 10%);
  153. }
  154. }
  155. #tags .tag:hover span {
  156. width: 9px;
  157. margin: 0 0 -2px 5px;
  158. transform: scale(1);
  159. }
  160. }