sidebar.css 1.5 KB

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