forked from ant-design/ant-design
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
site: primary color for hotjar and nprogress
- Loading branch information
Showing
3 changed files
with
17 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -130,3 +130,7 @@ a { | |
.drawer { | ||
z-index: 1029; | ||
} | ||
|
||
#_hj_feedback_container .path1:before { | ||
color: @primary-color !important; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,3 +20,4 @@ | |
@import './responsive'; | ||
@import './theme'; | ||
@import './docsearch'; | ||
@import './nprogress'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |