Use feather-icon for back-to-top-button

This commit is contained in:
atomiks
2018-03-07 20:54:41 +10:00
parent 2a469b9427
commit 2f32e99fb7
6 changed files with 22 additions and 15 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -10,7 +10,9 @@
<script async="" defer="" src="https://buttons.github.io/buttons.js"></script>
</head>
<body>
<button class="back-to-top-button" aria-label="back to top"></button>
<button class="back-to-top-button" aria-label="back to top">
<i data-feather="arrow-up"></i>
</button>
<nav class="sidebar" aria-label="Table of Contents">
<button class="hamburger hamburger--spin sidebar__menu" type="button" aria-label="Menu" aria-expanded="false">
<span class="hamburger-box">

View File

@ -3,7 +3,6 @@
justify-content: center;
align-items: center;
cursor: pointer;
font-size: 2rem;
font-weight: bold;
background: white;
width: 4rem;
@ -20,6 +19,7 @@
z-index: 1;
border: 1px solid rgba(0, 32, 128, 0.1);
outline: 0;
color: inherit;
&:hover,
&:focus {
@ -37,4 +37,9 @@
visibility: visible;
opacity: 1;
}
.feather {
width: 2rem;
height: 2rem;
}
}

View File

@ -1 +1 @@
<button class="back-to-top-button" aria-label="back to top"></button>
<button class="back-to-top-button" aria-label="back to top"><i data-feather="arrow-up"></i></button>