_sidebar.scss 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  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 $timing;
  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. /* Wrapper ------------------------------------------------*/
  39. .wrapper {
  40. float: left;
  41. height: calc(100% - 49px);
  42. width: 300px;
  43. overflow: auto;
  44. -webkit-overflow-scrolling: touch;
  45. }
  46. /* Divider ------------------------------------------------*/
  47. .divider {
  48. float: left;
  49. padding: 12px 0 8px;
  50. width: 100%;
  51. border-top: 1px solid white(.02);
  52. box-shadow: $shadow;
  53. &:first-child {
  54. border-top: 0;
  55. box-shaodw: none;
  56. }
  57. h1 {
  58. margin: 0 0 0 20px;
  59. color: white(.6);
  60. font-size: 14px;
  61. font-weight: bold;
  62. }
  63. }
  64. /* Edit ------------------------------------------------*/
  65. .edit {
  66. display: inline-block;
  67. margin-left: 3px;
  68. width: 10px;
  69. .iconic {
  70. width: 10px;
  71. height: 10px;
  72. fill: white(.5);
  73. filter: drop-shadow($shadow);
  74. transition: fill .2s ease-out;
  75. }
  76. &:hover .iconic { fill: white(1); }
  77. &:active .iconic {
  78. transition: none;
  79. fill: white(.8);
  80. }
  81. }
  82. /* Table ------------------------------------------------*/
  83. table {
  84. float: left;
  85. margin: 10px 0 15px 20px;
  86. }
  87. table tr td {
  88. padding: 5px 0px;
  89. color: #fff;
  90. font-size: 14px;
  91. line-height: 19px;
  92. &:first-child { width: 110px; }
  93. &:last-child {
  94. padding-right: 10px;
  95. -webkit-user-select: text;
  96. -moz-user-select: text;
  97. user-select: text;
  98. }
  99. }
  100. /* Tags ------------------------------------------------*/
  101. #tags {
  102. width: calc(100% - 40px);
  103. margin: 16px 20px 12px 20px;
  104. color: #fff;
  105. display: inline-block;
  106. }
  107. #tags > div {
  108. display: inline-block;
  109. }
  110. #tags .empty {
  111. font-size: 14px;
  112. margin: 0 2px 8px 0;
  113. }
  114. #tags .edit { margin-top: 6px; }
  115. #tags .empty .edit { margin-top: 0; }
  116. #tags .tag {
  117. display: inline-block;
  118. padding: 6px 10px;
  119. margin: 0 6px 8px 0;
  120. background-color: black(.5);
  121. border-radius: 100px;
  122. font-size: 12px;
  123. transition: background-color .2s;
  124. &:hover { background-color: black(.3); }
  125. }
  126. #tags .tag span {
  127. float: right;
  128. padding: 0;
  129. margin: 0 0 -2px 0;
  130. width: 0;
  131. overflow: hidden;
  132. transform: scale(0);
  133. transition: width .2s, margin .2s, transform .2s, fill .2s ease-out;
  134. .iconic {
  135. fill: $colorRed;
  136. width: 8px;
  137. height: 8px;
  138. filter: drop-shadow($shadowLight);
  139. }
  140. &:hover .iconic { fill: lighten($colorRed, 10%); }
  141. &:active .iconic {
  142. transition: none;
  143. fill: darken($colorRed, 10%);
  144. }
  145. }
  146. #tags .tag:hover span {
  147. width: 9px;
  148. margin: 0 0 -2px 5px;
  149. transform: scale(1);
  150. }
  151. }