sidebar.css 4.5 KB

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