_sidebar.scss 3.2 KB

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