Add custom scrollbars and fix page heights

This commit is contained in:
Andrew Kingston 2021-04-23 11:39:39 +01:00
parent 8e09c32643
commit c33f51600a
5 changed files with 27 additions and 20 deletions

View File

@ -313,23 +313,6 @@
height: 100%;
position: relative;
overflow: auto;
scrollbar-width: thin;
scrollbar-color: var(--spectrum-global-color-gray-400)
var(--spectrum-alias-background-color-default);
}
.container::-webkit-scrollbar {
width: 10px;
height: 10px;
}
.container::-webkit-scrollbar-track {
background: var(--spectrum-alias-background-color-default);
}
.container::-webkit-scrollbar-thumb {
background-color: var(--spectrum-global-color-gray-400);
border-radius: 4px;
}
.container::-webkit-scrollbar-corner {
background: var(--spectrum-alias-background-color-default);
}
.container.quiet {
border: none !important;

View File

@ -55,4 +55,25 @@ body {
* + .bb-margin-xl {
margin-top: var(--spacing-xl);
}
/* Custom scrollbars */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: var(--spectrum-alias-background-color-default);
}
::-webkit-scrollbar-thumb {
background-color: var(--spectrum-global-color-gray-400);
border-radius: 4px;
}
::-webkit-scrollbar-corner {
background: var(--spectrum-alias-background-color-default);
}
html * {
scrollbar-width: thin;
scrollbar-color: var(--spectrum-global-color-gray-400)
var(--spectrum-alias-background-color-default);
}

View File

@ -21,7 +21,8 @@
<style>
.root {
height: calc(100% - 60px);
flex: 1 1 auto;
height: 0;
display: grid;
grid-template-columns: 260px minmax(510px, 1fr) 260px;
}

View File

@ -66,7 +66,8 @@
<style>
.root {
height: calc(100vh - 60px);
flex: 1 1 auto;
height: 0;
display: grid;
grid-template-columns: 260px minmax(0, 1fr);
}

View File

@ -168,7 +168,8 @@
display: grid;
grid-template-columns: 260px 1fr 260px;
align-items: stretch;
height: calc(100vh - 60px);
flex: 1 1 auto;
height: 0;
}
.ui-nav {