sidebar.css 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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-title {
  36. display: inline-block;
  37. align-self: center;
  38. overflow: hidden;
  39. text-overflow: ellipsis;
  40. white-space: nowrap;
  41. width: 100%;
  42. }
  43. .tab-favicon {
  44. /* necessary to avoid flicker when hovering the close button */
  45. flex-shrink: 0;
  46. display: inline-block;
  47. background-size: cover;
  48. background-position: center;
  49. width: 15px;
  50. height: 15px;
  51. margin-left: 5px;
  52. margin-right: 5px;
  53. vertical-align: middle;
  54. }
  55. .tab.discarded > .tab-favicon {
  56. filter: brightness(70%);
  57. }
  58. .close-button-parent {
  59. width: 17px;
  60. height: 17px;
  61. margin-right: 4px;
  62. display: none;
  63. }
  64. .tab:hover > .close-button-parent {
  65. display: inline-block;
  66. }
  67. .close-button-parent:hover {
  68. background-color: #707070;
  69. }
  70. .close-button-outer {
  71. height: 15px;
  72. width: 2px;
  73. margin-left: 6.2px;
  74. margin-top: 1.2px;
  75. background-color: black;
  76. transform: rotate(45deg);
  77. z-index: 1;
  78. }
  79. .close-button-inner {
  80. height: 15px;
  81. width: 2px;
  82. background-color: black;
  83. transform: rotate(90deg);
  84. z-index: 2;
  85. }
  86. .close-button-parent:hover .close-button-outer {
  87. background-color: #cccccc;
  88. }
  89. .close-button-parent:hover .close-button-inner {
  90. background-color: #cccccc;
  91. }