Skip to content

Commit

Permalink
update vertical alignment;update scroll bars
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Lowinske committed Jul 2, 2018
1 parent caf2b91 commit 97eeffc
Show file tree
Hide file tree
Showing 10 changed files with 38 additions and 30 deletions.
1 change: 1 addition & 0 deletions css/components/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@
color: $cl_blue;
line-height: 40px;
padding: 0;
margin-top: 9px;
text-align: center;

&:focus {
Expand Down
2 changes: 1 addition & 1 deletion css/components/_search.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ li.search-wrap {
@include at-query($min, $screen-md) {
display: block;
position: fixed;
top: 85px;
top: 89px;
width: 260px;
background: #ffffff;
z-index: 2;
Expand Down
11 changes: 8 additions & 3 deletions css/components/_toc.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
display: none;

@include at-query($min, 1072px) {
padding: 30px 0;
padding: 33px 0;
min-width: 275px;
max-width: 275px;
display: inline-block;
Expand All @@ -24,9 +24,14 @@

#toc-right {
max-height: 90vh;
overflow-y: scroll;
padding-left: 15px;
padding-right: 15px;
background: #ffffff;

&:hover,
&:active,
&:focus {
overflow-y: auto;
}
}

#toc,
Expand Down
28 changes: 14 additions & 14 deletions css/customstyles.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion css/customstyles.css.map

Large diffs are not rendered by default.

5 changes: 0 additions & 5 deletions css/customstyles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@ body {
color: $cl_blue;
}

::-webkit-scrollbar {
width: 0px;
background: transparent;
}

p {
@include paragraph-type;
color: $cl_blue;
Expand Down
1 change: 1 addition & 0 deletions css/global/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ $cl_blue_dark: #111D39;
$cl_blue_pale: #ECF7FF;
$cl_blue_note: #3A7DE0;
$cl_gray: #A2A2A2;
$cl_gray_dark: #333333;
$cl_gray_medium: #DADADA;
$cl_gray_light: #F3F3F3;
$cl_gray_body: #142848;
Expand Down
2 changes: 1 addition & 1 deletion css/layouts/_content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
@include at-query($min, $screen-md) {
padding-top: 0;
min-height: 625px;
padding-left: 365px;
padding-left: 330px;
padding-right: 30px;

&.no-sidebar {
Expand Down
12 changes: 9 additions & 3 deletions css/layouts/_sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ body.sidenav-open {

#mysidebar {
height: 100%;
overflow: scroll;
overflow: auto;
-webkit-overflow-scrolling: touch;
}
}
Expand Down Expand Up @@ -39,7 +39,12 @@ body.sidenav-open {
padding: 0 30px;
background-color: #ffffff;
border-bottom: 1px solid $cl_gray_medium;
overflow-y: scroll;

&:hover,
&:active,
&:focus {
overflow-y: auto;
}
}

&--scrolled {
Expand All @@ -62,6 +67,7 @@ body.sidenav-open {
.sidebar-row {
@include at-query($min, $screen-md) {
display: flex;
padding-top: 15px;
}
}

Expand Down Expand Up @@ -298,7 +304,7 @@ a:not([href]) {
padding: 10px 15px 5px 15px;

@include at-query($min, $screen-md) {
padding: 55px 0 0 0;
padding: 63px 0 0 0;
width: 260px;
}

Expand Down
4 changes: 2 additions & 2 deletions js/customscripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,10 @@ $(function() {
}

// handle positoning of right-hand TOC when scrolling window
if (_viewport_width >= 1072 && scrollTop >= 16) {
if (_viewport_width >= 1072 && scrollTop >= 31) {
$tocRight.css({
position: 'fixed',
top: 82,
top: 91,
right: 0,
width: '275px'
});
Expand Down

0 comments on commit 97eeffc

Please sign in to comment.