Skip to content
This repository has been archived by the owner on Sep 26, 2022. It is now read-only.

feat(MaterialApp): theme scrollbars #57

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
@import '../../styles/global';

:root {
overflow: hidden;
}

body {
float: left;
width: 100%;
background: var(--theme-surface);
}

.s-app {
height: 100%;
overflow: auto;
}

*::-webkit-scrollbar {
width: 12px;
background: var(--theme-surface);
}

*::-webkit-scrollbar-track {
box-shadow: inset 0 0 6px var(--theme-buttons-disabled);
background: var(--theme-surface);
}

*::-webkit-scrollbar-thumb {
box-shadow: inset 0 0 6px var(--theme-icons-inactive);
background: var(--theme-text-secondary);
border-radius: 9px;
}

*::-webkit-scrollbar-thumb:hover {
background: var(--theme-text-primary);
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
export let theme = 'light';
</script>

<style type="scss" global>
@import '../../styles/global';
<style lang="scss" src="./MaterialApp.scss" global>
</style>

<div class="s-app theme--{theme}">
Expand Down