Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(scrollbars): style scrollbars, lefthand scrollbar in stories #458

Merged
merged 3 commits into from
Aug 12, 2020
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/scripts/components/app/app.styl
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,20 @@
background-color: $black
font-family: Arial, Helvetica, sans-serif

:global(*)
scrollbar-color: $darkGrey1 transparent

:global(::-webkit-scrollbar)
width: 12px

:global(::-webkit-scrollbar-track)
background: transparent

:global(::-webkit-scrollbar-thumb)
border-radius: 20px
background-color: $darkGrey1
-webkit-box-shadow: inset 0 0 6px rgba(16, 22, 26, 0.9)

.logo
position: absolute
top: emCalc(22px)
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/components/layer-list/layer-list.styl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@require '../../../variables.styl'

.layerList
overflow-y: scroll
overflow-y: auto
margin: 0
padding: 0
height: 100%
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/components/menu/menu.styl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
display: flex
flex-direction: column
flex-wrap: wrap
overflow-y: auto
margin: 0
padding: emCalc(10px) emCalc(32px)
min-width: emCalc(200px)
width: 25%
Expand Down
7 changes: 5 additions & 2 deletions src/scripts/components/story-content/story-content.styl
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@

.content
overflow-y: auto
padding: emCalc(80px) emCalc(28px) 0 emCalc(56px)
padding: emCalc(80px) emCalc(28px) emCalc(80px) emCalc(56px)
max-width: emCalc(750px)
height: 100%
background-color: $black
color: $textDefault
line-height: emCalc(22px)
direction: rtl

*
direction: ltr

h1
margin-top: 0
Expand Down