sidebar.css 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  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. background-color: #ffffff;
  90. }
  91. .tab.active {
  92. background-color: #d4f2fc;
  93. }
  94. .tab.hover {
  95. background-color: #cccccc;
  96. }
  97. .tab.active.hover {
  98. background-color: #b2dceb;
  99. }
  100. .tab.discarded {
  101. color: grey;
  102. }
  103. .tab.being-dragged {
  104. border: dashed black 1px;
  105. }
  106. .tab-title {
  107. display: inline-block;
  108. align-self: center;
  109. overflow: hidden;
  110. text-overflow: ellipsis;
  111. white-space: nowrap;
  112. width: 100%;
  113. }
  114. .tab-favicon {
  115. /* necessary to avoid flicker when hovering the close button */
  116. flex-shrink: 0;
  117. display: inline-block;
  118. background-size: cover;
  119. background-position: center;
  120. width: 15px;
  121. height: 15px;
  122. margin-left: 5px;
  123. margin-right: 5px;
  124. vertical-align: middle;
  125. }
  126. .tab.discarded > .tab-favicon {
  127. filter: brightness(70%);
  128. }
  129. /*Huge thanks to @tobiasahlin at http://tobiasahlin.com/spinkit/ */
  130. .three-dot-bounce {
  131. margin: 0px 6px 0px 5px;
  132. width: 15px;
  133. text-align: center;
  134. }
  135. .three-dot-bounce > div {
  136. margin-top: 0;
  137. /* this margin-bottom is used to center the three dots */
  138. margin-bottom: 4px;
  139. padding-bottom: 0;
  140. padding-top: 0;
  141. width: 3px;
  142. height: 3px;
  143. background-color: #333;
  144. border-radius: 100%;
  145. display: inline-block;
  146. animation: sk-bouncedelay 1.4s infinite ease-in-out both;
  147. }
  148. .three-dot-bounce .three-dot-bounce-1 {
  149. animation-delay: -0.32s;
  150. }
  151. .three-dot-bounce .three-dot-bounce-2 {
  152. animation-delay: -0.16s;
  153. }
  154. @keyframes sk-bouncedelay {
  155. 0%, 80%, 100% {
  156. transform: scale(0);
  157. } 40% {
  158. transform: scale(1.0);
  159. }
  160. }
  161. .close-button-parent {
  162. width: 17px;
  163. height: 17px;
  164. margin-right: 4px;
  165. display: none;
  166. }
  167. .tab:hover > .close-button-parent {
  168. display: inline-block;
  169. }
  170. .close-button-parent:hover {
  171. background-color: #707070;
  172. }
  173. .close-button-outer {
  174. height: 15px;
  175. width: 2px;
  176. margin-left: 6.2px;
  177. margin-top: 1.2px;
  178. background-color: black;
  179. transform: rotate(45deg);
  180. z-index: 1;
  181. }
  182. .close-button-inner {
  183. height: 15px;
  184. width: 2px;
  185. background-color: black;
  186. transform: rotate(90deg);
  187. z-index: 2;
  188. }
  189. .close-button-parent:hover .close-button-outer {
  190. background-color: #cccccc;
  191. }
  192. .close-button-parent:hover .close-button-inner {
  193. background-color: #cccccc;
  194. }