sidebar.css 3.8 KB

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