From fb3cd788df1ff168ef343679442c82126cbc3e18 Mon Sep 17 00:00:00 2001 From: Zachary Kain Date: Sat, 9 Mar 2013 01:51:39 -0500 Subject: [PATCH] remove body scrollbar, only on task lists --- styles/app/scrollbars.styl | 66 ++++++++++++-------------------------- 1 file changed, 21 insertions(+), 45 deletions(-) diff --git a/styles/app/scrollbars.styl b/styles/app/scrollbars.styl index 1d87ff4c15..8b366133bf 100644 --- a/styles/app/scrollbars.styl +++ b/styles/app/scrollbars.styl @@ -1,45 +1,45 @@ /* Gmail style scrollbar */ -::-webkit-scrollbar { +.task-column::-webkit-scrollbar { width: 12px } -::-webkit-scrollbar-thumb { +.task-column::-webkit-scrollbar-thumb { border-width: 1px 1px 1px 2px } -::-webkit-scrollbar-track { +.task-column::-webkit-scrollbar-track { border-width: 0 } -::-webkit-scrollbar { +.task-column::-webkit-scrollbar { height: 16px; overflow: visible; width: 16px; } -::-webkit-scrollbar-button { +.task-column::-webkit-scrollbar-button { height: 0; width: 0; } -::-webkit-scrollbar-track { +.task-column::-webkit-scrollbar-track { background-clip: padding-box; border: solid transparent; border-width: 0 0 0 4px; } -::-webkit-scrollbar-track:horizontal { +.task-column::-webkit-scrollbar-track:horizontal { border-width: 4px 0 0 } -::-webkit-scrollbar-track:hover { +.task-column::-webkit-scrollbar-track:hover { background-color: rgba(150,150,150,.05); box-shadow: inset 1px 0 0 rgba(150,150,150,.1); } -::-webkit-scrollbar-track:horizontal:hover { +.task-column::-webkit-scrollbar-track:horizontal:hover { box-shadow: inset 0 1px 0 rgba(150,150,150,.1) } -::-webkit-scrollbar-track:active { +.task-column::-webkit-scrollbar-track:active { background-color: rgba(150,150,150,.05); box-shadow: inset 1px 0 0 rgba(150,150,150,.14),inset -1px 0 0 rgba(150,150,150,.07); } -::-webkit-scrollbar-track:horizontal:active { +.task-column::-webkit-scrollbar-track:horizontal:active { box-shadow: inset 0 1px 0 rgba(150,150,150,.14),inset 0 -1px 0 rgba(150,150,150,.07) } -::-webkit-scrollbar-thumb { +.task-column::-webkit-scrollbar-thumb { background-color: rgba(150,150,150,.2); background-clip: padding-box; border: solid transparent; @@ -48,59 +48,35 @@ padding: 100px 0 0; box-shadow: inset 1px 1px 0 rgba(150,150,150,.1),inset 0 -1px 0 rgba(150,150,150,.07); } -::-webkit-scrollbar-thumb:horizontal { +.task-column::-webkit-scrollbar-thumb:horizontal { border-width: 6px 1px 1px; padding: 0 0 0 100px; box-shadow: inset 1px 1px 0 rgba(150,150,150,.1),inset -1px 0 0 rgba(150,150,150,.07); } -::-webkit-scrollbar-thumb:hover { +.task-column::-webkit-scrollbar-thumb:hover { background-color: rgba(150,150,150,.4); box-shadow: inset 1px 1px 1px rgba(150,150,150,.25); } -::-webkit-scrollbar-thumb:active { +.task-column::-webkit-scrollbar-thumb:active { background-color: rgba(150,150,150,0.5); box-shadow: inset 1px 1px 3px rgba(150,150,150,0.35); } -::-webkit-scrollbar-track { +.task-column::-webkit-scrollbar-track { border-width: 0 1px 0 6px } -::-webkit-scrollbar-track:horizontal { +.task-column::-webkit-scrollbar-track:horizontal { border-width: 6px 0 1px } -::-webkit-scrollbar-track:hover { +.task-column::-webkit-scrollbar-track:hover { background-color: rgba(150,150,150,.035); box-shadow: inset 1px 1px 0 rgba(150,150,150,.14),inset -1px -1px 0 rgba(150,150,150,.07); } -::-webkit-scrollbar-thumb { +.task-column::-webkit-scrollbar-thumb { border-width: 0 1px 0 6px } -::-webkit-scrollbar-thumb:horizontal { +.task-column::-webkit-scrollbar-thumb:horizontal { border-width: 6px 0 1px } -::-webkit-scrollbar-corner { +.task-column::-webkit-scrollbar-corner { background: transparent -} -body::-webkit-scrollbar-track-piece { - background-clip: padding-box; - background-color: #f5f5f5; - border: solid #fff; - border-width: 0 0 0 3px; - box-shadow: inset 1px 0 0 rgba(150,150,150,.14),inset -1px 0 0 rgba(150,150,150,.07); -} -body::-webkit-scrollbar-track-piece:horizontal { - border-width: 3px 0 0; - box-shadow: inset 0 1px 0 rgba(150,150,150,.14),inset 0 -1px 0 rgba(150,150,150,.07); -} -body::-webkit-scrollbar-thumb { - border-width: 1px 1px 1px 5px -} -body::-webkit-scrollbar-thumb:horizontal { - border-width: 5px 1px 1px -} -body::-webkit-scrollbar-corner { - background-clip: padding-box; - background-color: #f5f5f5; - border: solid #fff; - border-width: 3px 0 0 3px; - box-shadow: inset 1px 1px 0 rgba(150,150,150,.14); } \ No newline at end of file