Skip to content

Commit

Permalink
opti: 恒向滚动条样式优化
Browse files Browse the repository at this point in the history
  • Loading branch information
dwb1994 committed Jul 3, 2018
1 parent 2df164a commit 5cbc4f5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
9 changes: 5 additions & 4 deletions _site/ydoc/styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ body {

::-webkit-scrollbar {
width: 6px;
height: 4px;
}

::-webkit-scrollbar-track {
Expand Down Expand Up @@ -90,7 +91,7 @@ h6, .h6 {
::before,
::after {
box-sizing: border-box;
-webkit-tap-highlight-color: transparent;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

html {
Expand Down Expand Up @@ -216,7 +217,7 @@ input::-moz-focus-inner {
}

mark {
background-color: transparent;
background-color: rgba(0, 0, 0, 0);
}

a,
Expand Down Expand Up @@ -582,7 +583,7 @@ a:link, a:visited {
}

.nav-toggle {
-webkit-tap-highlight-color: transparent;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-webkit-touch-callout: none;
-webkit-user-select: none;
-moz-user-select: none;
Expand Down Expand Up @@ -1651,7 +1652,7 @@ pre[class*="language-"] {
padding: .12rem;
cursor: pointer;
transition: color 0.2s;
-webkit-tap-highlight-color: transparent;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-webkit-touch-callout: none;
-webkit-user-select: none;
-moz-user-select: none;
Expand Down
9 changes: 5 additions & 4 deletions theme/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ body {

::-webkit-scrollbar {
width: 6px;
height: 4px;
}

::-webkit-scrollbar-track {
Expand Down Expand Up @@ -90,7 +91,7 @@ h6, .h6 {
::before,
::after {
box-sizing: border-box;
-webkit-tap-highlight-color: transparent;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

html {
Expand Down Expand Up @@ -216,7 +217,7 @@ input::-moz-focus-inner {
}

mark {
background-color: transparent;
background-color: rgba(0, 0, 0, 0);
}

a,
Expand Down Expand Up @@ -582,7 +583,7 @@ a:link, a:visited {
}

.nav-toggle {
-webkit-tap-highlight-color: transparent;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-webkit-touch-callout: none;
-webkit-user-select: none;
-moz-user-select: none;
Expand Down Expand Up @@ -1651,7 +1652,7 @@ pre[class*="language-"] {
padding: .12rem;
cursor: pointer;
transition: color 0.2s;
-webkit-tap-highlight-color: transparent;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-webkit-touch-callout: none;
-webkit-user-select: none;
-moz-user-select: none;
Expand Down
1 change: 1 addition & 0 deletions theme/styles/common/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ body {
// scrollbar
::-webkit-scrollbar {
width: 6px;
height: 4px;
}
// pathway
::-webkit-scrollbar-track {
Expand Down

0 comments on commit 5cbc4f5

Please sign in to comment.