sidebar.css 4.4 KB

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