-
-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0cf2ae6
commit 1e4da5c
Showing
4 changed files
with
248 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 71 additions & 0 deletions
71
src/settings-renderer/components/widgets/Scrollbox.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
////////////////////////////////////////////////////////////////////////////////////////// | ||
// _ _ ____ _ _ ___ ____ // | ||
// |_/ |__| |\ | | \ | | This file belongs to Kando, the cross-platform // | ||
// | \_ | | | \| |__/ |__| pie menu. Read more on github.com/kando-menu/kando // | ||
// // | ||
////////////////////////////////////////////////////////////////////////////////////////// | ||
|
||
// SPDX-FileCopyrightText: Simon Schneegans <code@simonschneegans.de> | ||
// SPDX-License-Identifier: MIT | ||
|
||
// This is used for scrolling content. The mask image ensures that the content is | ||
// beautifully faded to transparency at the top and at the bottom. We also apply some | ||
// custom styling to the scrollbar | ||
|
||
.scrollbox { | ||
-webkit-mask-image: | ||
-webkit-linear-gradient( | ||
rgba(255, 255, 255, 0) 0, | ||
rgba(255, 255, 255, 1) 15px, | ||
rgba(255, 255, 255, 1) 40%, | ||
rgba(255, 255, 255, 0) 49% | ||
), | ||
-webkit-linear-gradient( | ||
bottom, | ||
rgba(255, 255, 255, 0) 0, | ||
rgba(255, 255, 255, 1) 15px, | ||
rgba(255, 255, 255, 1) 49%, | ||
rgba(255, 255, 255, 0) 49% | ||
), | ||
-webkit-linear-gradient( | ||
rgba(255, 255, 255, 0) 30%, | ||
rgba(255, 255, 255, 1) 40%, | ||
rgba(255, 255, 255, 1) 60%, | ||
rgba(255, 255, 255, 0) 70% | ||
); | ||
overflow-y: auto; | ||
overflow-x: hidden; | ||
|
||
.content { | ||
margin: 15px 0; | ||
padding-right: 4px; | ||
} | ||
|
||
&::-webkit-scrollbar-track { | ||
background-color: rgba(128, 128, 128, 0); | ||
border-radius: 3px; | ||
margin: 15px 0; | ||
} | ||
|
||
&:hover::-webkit-scrollbar-track { | ||
background-color: rgba(128, 128, 128, 0.1); | ||
} | ||
|
||
&::-webkit-scrollbar { | ||
width: 6px; | ||
cursor: pointer; | ||
} | ||
|
||
&::-webkit-scrollbar-thumb { | ||
background-color: rgba(128, 128, 128, 0); | ||
border-radius: 3px; | ||
} | ||
|
||
&:hover::-webkit-scrollbar-thumb { | ||
background-color: rgba(128, 128, 128, 0.5); | ||
} | ||
|
||
&::-webkit-scrollbar-thumb:hover { | ||
background-color: rgba(128, 128, 128, 0.9); | ||
} | ||
} |
Oops, something went wrong.