]> source.dussan.org Git - gitea.git/commitdiff
Disable Fomantic's custom scrollbars (#14109)
authorsilverwind <me@silverwind.io>
Thu, 24 Dec 2020 22:34:49 +0000 (23:34 +0100)
committerGitHub <noreply@github.com>
Thu, 24 Dec 2020 22:34:49 +0000 (22:34 +0000)
We already have custom scrollbars in our own CSS which are superior to
Fomantic's so diable them to save a few bytes and prevent interference.

web_src/fomantic/_site/globals/site.variables
web_src/fomantic/build/semantic.css

index 550d44b3b5089e3534e356da31f1b6cae509c542..dd29751be8d1218a1717c746062c3e3337f8c645 100644 (file)
@@ -3,3 +3,4 @@
 @headerFont: var(--fonts-regular);
 @pageFont: var(--fonts-regular);
 @bold: 500;
+@useCustomScrollbars: false;
index c2cc6356ef397e2284115cd2c6bc656d344a8b6b..eaab660796c0a21f53ee925439c1220cdbdbdcd2 100644 (file)
@@ -7723,22 +7723,6 @@ a.inverted.ui.card:hover,
 
 /* Scrollbars */
 
-.ui.dimmer:not(.inverted)::-webkit-scrollbar-track {
-  background: rgba(255, 255, 255, 0.1);
-}
-
-.ui.dimmer:not(.inverted)::-webkit-scrollbar-thumb {
-  background: rgba(255, 255, 255, 0.25);
-}
-
-.ui.dimmer:not(.inverted)::-webkit-scrollbar-thumb:window-inactive {
-  background: rgba(255, 255, 255, 0.15);
-}
-
-.ui.dimmer:not(.inverted)::-webkit-scrollbar-thumb:hover {
-  background: rgba(255, 255, 255, 0.35);
-}
-
 /*******************************
             States
 *******************************/
@@ -39175,53 +39159,6 @@ input::selection {
   color: rgba(0, 0, 0, 0.87);
 }
 
-/* Force Simple Scrollbars */
-
-body ::-webkit-scrollbar {
-  -webkit-appearance: none;
-  width: 10px;
-  height: 10px;
-}
-
-body ::-webkit-scrollbar-track {
-  background: rgba(0, 0, 0, 0.1);
-  border-radius: 0;
-}
-
-body ::-webkit-scrollbar-thumb {
-  cursor: pointer;
-  border-radius: 5px;
-  background: rgba(0, 0, 0, 0.25);
-  -webkit-transition: color 0.2s ease;
-  transition: color 0.2s ease;
-}
-
-body ::-webkit-scrollbar-thumb:window-inactive {
-  background: rgba(0, 0, 0, 0.15);
-}
-
-body ::-webkit-scrollbar-thumb:hover {
-  background: rgba(128, 135, 139, 0.8);
-}
-
-/* Inverted UI */
-
-body .ui.inverted:not(.dimmer)::-webkit-scrollbar-track {
-  background: rgba(255, 255, 255, 0.1);
-}
-
-body .ui.inverted:not(.dimmer)::-webkit-scrollbar-thumb {
-  background: rgba(255, 255, 255, 0.25);
-}
-
-body .ui.inverted:not(.dimmer)::-webkit-scrollbar-thumb:window-inactive {
-  background: rgba(255, 255, 255, 0.15);
-}
-
-body .ui.inverted:not(.dimmer)::-webkit-scrollbar-thumb:hover {
-  background: rgba(255, 255, 255, 0.35);
-}
-
 /*******************************
         Global Overrides
 *******************************/