Преглед на файлове

Make popup scroll bar consistent with website

use black/red color scheme and half-rounded shape
Aneimytis преди 3 години
родител
ревизия
c67dfbc67b
променени са 1 файла, в които са добавени 14 реда и са изтрити 8 реда
  1. 14 8
      Extensions/combined/popup.css

+ 14 - 8
Extensions/combined/popup.css

@@ -148,23 +148,29 @@ button:hover {
 }
 
 ::-webkit-scrollbar {
-  width: 10px;
+  width: 1rem;
 }
 
 ::-webkit-scrollbar-track {
-  background: var(--background);
+  background: #111; /* color of the tracking area */
 }
- 
-/* Handle */
+
 ::-webkit-scrollbar-thumb {
-  background: var(--tertiary); 
-  border-radius: 10px;
+  background-color: #333; /* color of the scroll thumb */
+  border-radius: 1rem 0 0 1rem; /* roundness of the scroll thumb */
+  border-bottom: 0.25rem solid #111; /* creates padding around scroll thumb */
+  border-left: 0.25rem solid #111; /* creates padding around scroll thumb */
+  border-top: 0.25rem solid #111; /* creates padding around scroll thumb */
 }
 
-/* Handle on hover */
 ::-webkit-scrollbar-thumb:hover {
-  background: var(--lightGrey); 
+  background-color: #f22; /* color of the scroll thumb */
+  border-radius: 1rem 0 0 1rem; /* roundness of the scroll thumb */
+  border-bottom: 0.25rem solid #111; /* creates padding around scroll thumb */
+  border-left: 0.25rem solid #111; /* creates padding around scroll thumb */
+  border-top: 0.25rem solid #111; /* creates padding around scroll thumb */
 }
+
 #advancedLegend {
   color: var(--tertiary) !important;
   /* margin: auto; */ /* Center the label */