From ab01aac0c04f7e5b075984409430c6d5a25b57f6 Mon Sep 17 00:00:00 2001 From: silverwind Date: Fri, 15 Mar 2024 05:45:45 +0100 Subject: [PATCH] Remove scrollbar customizations (#29800) Fixes https://github.com/go-gitea/gitea/issues/29652. Removes all scrollbar customization as per popular vote on https://github.com/go-gitea/gitea/issues/29652#issuecomment-1985846162. There is one more case of `-webkit-scrollbar` left in CSS and https://github.com/go-gitea/gitea/pull/29400 will get rid of that as well. (cherry picked from commit 0827552d9ab6bec5fccef86139cbad3ae7b582b7) --- web_src/css/base.css | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/web_src/css/base.css b/web_src/css/base.css index e746556cd3..4f4aac8a28 100644 --- a/web_src/css/base.css +++ b/web_src/css/base.css @@ -116,33 +116,9 @@ h1.error-code { } * { - scrollbar-color: var(--color-primary) transparent; caret-color: var(--color-caret); } -::-webkit-scrollbar { - width: 10px; - height: 10px; -} - -::-webkit-scrollbar-thumb { - box-shadow: inset 0 0 0 6px var(--color-primary); - border: 2px solid transparent; - border-radius: var(--border-radius); -} - -::-webkit-scrollbar-thumb:window-inactive { - box-shadow: inset 0 0 0 6px var(--color-primary); -} - -::-webkit-scrollbar-thumb:hover { - box-shadow: inset 0 0 0 6px var(--color-primary-dark-2); -} - -::-webkit-scrollbar-corner { - background: transparent; -} - ::file-selector-button { border: 1px solid var(--color-light-border); color: var(--color-text-light);