Skip to content

Commit

Permalink
site: primary color for hotjar and nprogress
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Oct 28, 2018
1 parent 8d6c5af commit 01a5988
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 60 deletions.
4 changes: 4 additions & 0 deletions site/theme/static/common.less
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,7 @@ a {
.drawer {
z-index: 1029;
}

#_hj_feedback_container .path1:before {
color: @primary-color !important;
}
1 change: 1 addition & 0 deletions site/theme/static/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@
@import './responsive';
@import './theme';
@import './docsearch';
@import './nprogress';
72 changes: 12 additions & 60 deletions site/theme/static/nprogress.less
Original file line number Diff line number Diff line change
@@ -1,62 +1,14 @@
/* Make clicks pass-through */
#nprogress {
pointer-events: none;
}

#nprogress .bar {
background: @primary-color;
position: fixed;
z-index: 1031;
top: 0;
left: 0;
width: 100%;
height: 2px;
border-radius: 10px;
}

/* Fancy blur effect */
#nprogress .peg {
display: block;
position: absolute;
right: 0;
width: 100px;
height: 100%;
box-shadow: 0 0 10px @primary-color, 0 0 5px @primary-color;
opacity: 1;
transform: rotate(3deg) translate(0, -4px);
}

/* Remove these to get rid of the spinner */
#nprogress .spinner {
display: block;
position: fixed;
z-index: 1031;
top: 15px;
right: 15px;
}

#nprogress .spinner-icon {
width: 18px;
height: 18px;
box-sizing: border-box;
border: solid 2px transparent;
border-top-color: @primary-color;
border-left-color: @primary-color;
border-radius: 50%;
animation: nprogress-spinner 400ms linear infinite;
}

.nprogress-custom-parent {
overflow: hidden;
position: relative;
}

.nprogress-custom-parent #nprogress .spinner,
.nprogress-custom-parent #nprogress .bar {
position: absolute;
}

@keyframes nprogress-spinner {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
.bar {
background: @primary-color;
}

.peg {
box-shadow: 0 0 10px @primary-color, 0 0 5px @primary-color;
}

.spinner-icon {
border-top-color: @primary-color;
border-left-color: @primary-color;
}
}

0 comments on commit 01a5988

Please sign in to comment.