sidebar.css 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. :root {
  2. --bar-black-color: #0c0c0d;
  3. --group-bar-size: 25px;
  4. --top-menu-height: 20px;
  5. }
  6. html,
  7. body,
  8. #content {
  9. width: 100%;
  10. height: 100%;
  11. overflow: hidden visible;
  12. background-color: #f9f9fa;
  13. }
  14. #bar {
  15. width: 100%;
  16. height: 100%;
  17. }
  18. #bar-menu {
  19. width: 100%;
  20. height: var(--top-menu-height);
  21. position: sticky;
  22. top: 0;
  23. }
  24. #bar-menu ul {
  25. background-color: var(--bar-black-color);
  26. color: #f9f9f2;
  27. list-style-type: none;
  28. margin: 0 0 5px 0;
  29. padding: 0;
  30. }
  31. #bar-menu li {
  32. display: inline-block;
  33. padding: 0 7px 0;
  34. border-right: solid #cfcfcf 1px;
  35. }
  36. #bar-list {
  37. margin-top: 1px;
  38. background-color: var(--bar-black-color);
  39. width: 100vh;
  40. height: var(--group-bar-size);
  41. position: fixed;
  42. transform-origin: left top;
  43. transform: rotate(-90deg) translateX(-100%);
  44. }
  45. #bar-list-group {
  46. margin: 0 auto;
  47. height: 100%;
  48. }
  49. #bar-list-group li {
  50. padding-right: 10px;
  51. padding-left: 10px;
  52. margin-left: 1px;
  53. float: right;
  54. height: 100%;
  55. line-height: calc(var(--group-bar-size)*0.80);
  56. list-style: none;
  57. border-left: solid #cfcfcf 1px;
  58. }
  59. #bar-list-group li:first-child {
  60. border-right: solid #cfcfcf 1px;
  61. }
  62. .group-name {
  63. color: #f9f9f2;
  64. }
  65. .group-name.active-group {
  66. background-color: white;
  67. color: black;
  68. }
  69. .bar-tabs {
  70. width: calc(100% - var(--group-bar-size));
  71. height: calc(100% - var(--top-menu-height));
  72. margin-left: var(--group-bar-size);
  73. }
  74. .bar-tabs:not(.bar-tabs-active) {
  75. display: none;
  76. }
  77. .tabs {
  78. padding-top: 1px;
  79. width: 100%;
  80. height: 100%;
  81. }
  82. .inner-tabs {
  83. overflow-y: auto;
  84. scroll-behavior: smooth;
  85. }
  86. .tab {
  87. display: flex;
  88. align-items: center;
  89. justify-content: flex-start;
  90. border: solid #cfcfcf 1px;
  91. margin-bottom: 1px;
  92. padding-left: 2px;
  93. padding-bottom: 1px;
  94. width: 100%;
  95. height: 22px;
  96. background-color: #ffffff;
  97. scroll-margin-top: var(--top-menu-height);
  98. }
  99. .tab.active {
  100. background-color: #d4f2fc;
  101. }
  102. .tab.hover {
  103. background-color: #cccccc;
  104. }
  105. .tab.active.hover {
  106. background-color: #b2dceb;
  107. }
  108. .tab.discarded {
  109. color: grey;
  110. }
  111. .tab.being-dragged {
  112. border: dashed black 1px;
  113. }
  114. .tab-title {
  115. display: inline-block;
  116. align-self: center;
  117. overflow: hidden;
  118. text-overflow: ellipsis;
  119. white-space: nowrap;
  120. width: 100%;
  121. }
  122. .tab-favicon {
  123. /* necessary to avoid flicker when hovering the close button */
  124. flex-shrink: 0;
  125. display: inline-block;
  126. background-size: cover;
  127. background-position: center;
  128. width: 15px;
  129. height: 15px;
  130. margin-left: 5px;
  131. margin-right: 5px;
  132. vertical-align: middle;
  133. }
  134. .tab.discarded > .tab-favicon {
  135. filter: brightness(70%);
  136. }
  137. /*Huge thanks to @tobiasahlin at http://tobiasahlin.com/spinkit/ */
  138. .three-dot-bounce {
  139. margin: 0px 6px 0px 6px;
  140. width: 15px;
  141. text-align: center;
  142. }
  143. .three-dot-bounce > div {
  144. margin-top: 0;
  145. /* this margin-bottom is used to center the three dots */
  146. margin-bottom: 4px;
  147. padding-bottom: 0;
  148. padding-top: 0;
  149. width: 3px;
  150. height: 3px;
  151. background-color: #333;
  152. border-radius: 100%;
  153. display: inline-block;
  154. animation: sk-bouncedelay 1.4s infinite ease-in-out both;
  155. }
  156. .three-dot-bounce .three-dot-bounce-1 {
  157. animation-delay: -0.32s;
  158. }
  159. .three-dot-bounce .three-dot-bounce-2 {
  160. animation-delay: -0.16s;
  161. }
  162. @keyframes sk-bouncedelay {
  163. 0%, 80%, 100% {
  164. transform: scale(0);
  165. } 40% {
  166. transform: scale(1.0);
  167. }
  168. }
  169. .close-button-parent {
  170. width: 17px;
  171. height: 17px;
  172. margin-right: 4px;
  173. display: none;
  174. }
  175. .tab:hover > .close-button-parent {
  176. display: inline-block;
  177. }
  178. .close-button-parent:hover {
  179. background-color: #707070;
  180. }
  181. .close-button-outer {
  182. height: 15px;
  183. width: 2px;
  184. margin-left: 6.2px;
  185. margin-top: 1.2px;
  186. background-color: black;
  187. transform: rotate(45deg);
  188. z-index: 1;
  189. }
  190. .close-button-inner {
  191. height: 15px;
  192. width: 2px;
  193. background-color: black;
  194. transform: rotate(90deg);
  195. z-index: 2;
  196. }
  197. .close-button-parent:hover .close-button-outer {
  198. background-color: #cccccc;
  199. }
  200. .close-button-parent:hover .close-button-inner {
  201. background-color: #cccccc;
  202. }