_sidebar.scss 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. .sidebar {
  2. position: fixed;
  3. top: 50px;
  4. right: -370px;
  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(-320px); }
  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 50px 15px 0;
  28. width: calc(100% - 50px);
  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: 300px;
  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. }
  82. table tr td {
  83. padding: 5px 0px;
  84. color: #fff;
  85. font-size: 14px;
  86. line-height: 19px;
  87. &:first-child { width: 110px; }
  88. &:last-child {
  89. padding-right: 10px;
  90. -webkit-user-select: text;
  91. -moz-user-select: text;
  92. user-select: text;
  93. }
  94. }
  95. // Tags -------------------------------------------------------------- //
  96. #tags {
  97. width: calc(100% - 40px);
  98. margin: 16px 20px 12px 20px;
  99. color: #fff;
  100. display: inline-block;
  101. }
  102. #tags > div {
  103. display: inline-block;
  104. }
  105. #tags .empty {
  106. font-size: 14px;
  107. margin: 0 2px 8px 0;
  108. }
  109. #tags .edit { margin-top: 6px; }
  110. #tags .empty .edit { margin-top: 0; }
  111. #tags .tag {
  112. display: inline-block;
  113. padding: 6px 10px;
  114. margin: 0 6px 8px 0;
  115. background-color: black(.5);
  116. border-radius: 100px;
  117. font-size: 12px;
  118. transition: background-color .2s;
  119. &:hover { background-color: black(.3); }
  120. }
  121. #tags .tag span {
  122. float: right;
  123. padding: 0;
  124. margin: 0 0 -2px 0;
  125. width: 0;
  126. overflow: hidden;
  127. transform: scale(0);
  128. transition: width .2s, margin .2s, transform .2s, fill .2s ease-out;
  129. .iconic {
  130. fill: $colorRed;
  131. width: 8px;
  132. height: 8px;
  133. }
  134. &:hover .iconic { fill: lighten($colorRed, 10%); }
  135. &:active .iconic {
  136. transition: none;
  137. fill: darken($colorRed, 10%);
  138. }
  139. }
  140. #tags .tag:hover span {
  141. width: 9px;
  142. margin: 0 0 -2px 5px;
  143. transform: scale(1);
  144. }
  145. }