Added scroll to top button on docs
This commit is contained in:
parent
c5e769f0ca
commit
8a1f980242
7 changed files with 137 additions and 4 deletions
59
docs/css/creative.min.css
vendored
59
docs/css/creative.min.css
vendored
|
@ -243,4 +243,63 @@ padding: 10px 20px;
|
|||
width: 20%;
|
||||
height: 100%;
|
||||
background-color: #fff
|
||||
}
|
||||
|
||||
/* Scroll to Top */
|
||||
.top-link {
|
||||
transition: all .25s ease-in-out;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
display: inline-flex;
|
||||
|
||||
cursor: pointer;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin: 0 3em 3em 0;
|
||||
border-radius: 50%;
|
||||
padding: .25em;
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
background-color: #F8F8F8;
|
||||
}
|
||||
|
||||
.show {
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.hide {
|
||||
visibility: hidden;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.screen-reader-text {
|
||||
position: absolute;
|
||||
clip-path: inset(50%);
|
||||
margin: -1px;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
overflow: hidden;
|
||||
word-wrap: normal !important;
|
||||
clip: rect(1px, 1px, 1px, 1px);
|
||||
|
||||
&:focus {
|
||||
display: block;
|
||||
top: 5px;
|
||||
left: 5px;
|
||||
z-index: 100000; // Above WP toolbar
|
||||
clip-path: none;
|
||||
background-color: #eee;
|
||||
padding: 15px 23px 14px;
|
||||
width: auto;
|
||||
height: auto;
|
||||
text-decoration: none;
|
||||
line-height: normal;
|
||||
color: #444;
|
||||
font-size: 1em;
|
||||
clip: auto !important;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue