Use feather-icon for back-to-top-button
This commit is contained in:
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
@ -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">
|
||||
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@ -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>
|
||||
|
||||
Reference in New Issue
Block a user