From 8b8050d02ab83977438174cb5250c6b0ada41b2b Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Wed, 22 Jun 2016 23:05:25 +0300 Subject: [PATCH] Remove javascript scrollbar library, use hover appearing scrollbar instead --- client/css/style.css | 74 +------- client/index.html | 10 +- client/js/libs/jquery/tse.js | 357 ----------------------------------- client/js/lounge.js | 2 - client/views/user.tpl | 22 +-- 5 files changed, 24 insertions(+), 441 deletions(-) delete mode 100644 client/js/libs/jquery/tse.js diff --git a/client/css/style.css b/client/css/style.css index dac863fb..0bffa4dc 100644 --- a/client/css/style.css +++ b/client/css/style.css @@ -243,7 +243,8 @@ button { #sidebar { bottom: 52px; left: 0; - overflow: hidden; + overflow: auto; + overflow-x: hidden; -webkit-overflow-scrolling: touch; position: absolute; top: 0; @@ -267,7 +268,6 @@ button { } #sidebar .networks { - min-height: 100%; padding: 20px 30px 0; } @@ -544,6 +544,10 @@ button { width: 100%; } +#user-specified-css-input { + resize: vertical; +} + #windows .input:hover, #windows .input:focus { border-color: #79838c; @@ -1014,10 +1018,6 @@ button { padding: 0 16px; } -#chat .names .inner { - width: 300px; -} - #chat .user-mode:before { content: ""; border-bottom: 1px solid #eee; @@ -1552,64 +1552,6 @@ button { font-style: italic; } -/** - * TrackpadScrollEmulator - * Version: 1.0.6 - * Author: Jonathan Nicol @f6design - * https://github.com/jnicol/trackpad-scroll-emulator - */ -.tse-scrollable { - position: relative; - overflow: hidden; -} - -.tse-scrollable .tse-scroll-content { - overflow: hidden; - overflow-y: scroll; - -webkit-overflow-scrolling: touch; -} - -.tse-scrollable .tse-scroll-content::-webkit-scrollbar { - width: 0; - height: 0; -} - -.tse-scrollbar { - z-index: 99; - position: absolute; - top: 0; - right: 0; - bottom: 0; - width: 11px; -} - -.tse-scrollbar .drag-handle { - position: absolute; - right: 2px; - border-radius: 2px; - min-height: 10px; - width: 6px; - opacity: .1; - transition: opacity .2s linear; - background: #000; - -webkit-background-clip: padding-box; - -moz-background-clip: padding; -} - -.tse-scrollbar:hover .drag-handle { - opacity: .25; - transition: opacity 0 linear; -} - -.tse-scrollbar .drag-handle.visible { - opacity: .2; -} - -.scrollbar-width-tester::-webkit-scrollbar { - width: 0; - height: 0; -} - @media (max-width: 768px) { .container { margin-top: 60px !important; @@ -1714,3 +1656,7 @@ button { background: rgba(0, 0, 0, .5); border-radius: 100px; } + +::-webkit-scrollbar-thumb:vertical:active { + background: rgba(0, 0, 0, .6); +} diff --git a/client/index.html b/client/index.html index fc3ca1fb..6648e9d7 100644 --- a/client/index.html +++ b/client/index.html @@ -27,12 +27,10 @@
-