sidebar.css 3.2 KB

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