sidebar.css 1.6 KB

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