sidebar.css 4.4 KB

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