_sidebar.scss 3.2 KB

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