sidebar.css 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. html,
  2. body,
  3. #content {
  4. width: 100%;
  5. height: 100%;
  6. overflow: hidden visible;
  7. }
  8. #tabs {
  9. padding-top: 1px;
  10. width: 100%;
  11. height: 100%;
  12. }
  13. .tab {
  14. display: flex;
  15. align-items: center;
  16. justify-content: flex-start;
  17. border: solid #cfcfcf 1px;
  18. margin-bottom: 1px;
  19. padding-left: 2px;
  20. padding-bottom: 1px;
  21. width: 100%;
  22. }
  23. .tab.active {
  24. background-color: #d4f2fc;
  25. }
  26. .tab.hover {
  27. background-color: #cccccc;
  28. }
  29. .tab.active.hover {
  30. background-color: #b2dceb;
  31. }
  32. .tab.discarded {
  33. color: grey;
  34. }
  35. .tab.being-dragged {
  36. border: dashed black 1px;
  37. }
  38. .tab-title {
  39. display: inline-block;
  40. align-self: center;
  41. overflow: hidden;
  42. text-overflow: ellipsis;
  43. white-space: nowrap;
  44. width: 100%;
  45. }
  46. .tab-favicon {
  47. /* necessary to avoid flicker when hovering the close button */
  48. flex-shrink: 0;
  49. display: inline-block;
  50. background-size: cover;
  51. background-position: center;
  52. width: 15px;
  53. height: 15px;
  54. margin-left: 5px;
  55. margin-right: 5px;
  56. vertical-align: middle;
  57. }
  58. .tab.discarded > .tab-favicon {
  59. filter: brightness(70%);
  60. }
  61. .close-button-parent {
  62. width: 17px;
  63. height: 17px;
  64. margin-right: 4px;
  65. display: none;
  66. }
  67. .tab:hover > .close-button-parent {
  68. display: inline-block;
  69. }
  70. .close-button-parent:hover {
  71. background-color: #707070;
  72. }
  73. .close-button-outer {
  74. height: 15px;
  75. width: 2px;
  76. margin-left: 6.2px;
  77. margin-top: 1.2px;
  78. background-color: black;
  79. transform: rotate(45deg);
  80. z-index: 1;
  81. }
  82. .close-button-inner {
  83. height: 15px;
  84. width: 2px;
  85. background-color: black;
  86. transform: rotate(90deg);
  87. z-index: 2;
  88. }
  89. .close-button-parent:hover .close-button-outer {
  90. background-color: #cccccc;
  91. }
  92. .close-button-parent:hover .close-button-inner {
  93. background-color: #cccccc;
  94. }