diff --git a/src/styles/patterns/_back-to-top.scss b/src/styles/patterns/_back-to-top.scss index f60a3ad9..078883df 100644 --- a/src/styles/patterns/_back-to-top.scss +++ b/src/styles/patterns/_back-to-top.scss @@ -1,20 +1,28 @@ #backtotop { - box-sizing: border-box; - position: fixed; - opacity: 0; - visibility: hidden; - bottom: 20px; - right: 20px; - width : 50px; - height : 50px; - background-color: #ffffff; - border: 2px solid #666; - border-radius: 50%; - cursor: pointer; - transition: opacity 350ms, visibility 350ms; - } - - body:not(.above-the-fold) #backtotop { - visibility: visible; - opacity: 1; - } \ No newline at end of file + box-sizing: border-box; + position: fixed; + opacity: 0; + visibility: hidden; + bottom: var(--wp--preset--spacing--60); + right: var(--wp--preset--spacing--60); + width: 56px; + height: 56px; + background-color: var(--wp--preset--color--primary); + color: var(--wp--preset--color--white); + border-radius: 50%; + cursor: pointer; + + &:before { + content: url('data:image/svg+xml; utf8, '); + display: flex; + width: 100%; + height: 100%; + justify-content: center; + align-items: center; + } +} + +body:not(.above-the-fold) #backtotop { + visibility: visible; + opacity: 1; +}