sidebar.css 2.5 KB

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