-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Expand file tree
/
Copy path_back-to-top.scss
More file actions
43 lines (38 loc) · 856 Bytes
/
_back-to-top.scss
File metadata and controls
43 lines (38 loc) · 856 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
@use "../abstracts/mixins";
.jenkins-back-to-top {
position: fixed;
bottom: 1.5rem;
right: 1.5rem;
z-index: 900;
width: 2.75rem;
height: 2.75rem;
border-radius: 50%;
padding: 0;
box-shadow: var(--dropdown-box-shadow);
opacity: 0;
visibility: hidden;
transition:
opacity var(--standard-transition),
visibility var(--standard-transition),
transform var(--standard-transition),
background-color var(--standard-transition);
transform: translateY(0.625rem);
display: flex;
align-items: center;
justify-content: center;
&--visible {
opacity: 1;
visibility: visible;
transform: translateY(0);
}
&:hover {
background-color: var(--button-background--hover);
}
&:active {
background-color: var(--button-background--active);
}
svg {
width: 1.25rem;
height: 1.25rem;
}
}