Refactor scrolling and enhance UI accessibility.
Replaced inline JavaScript for scrolling and copy functionality with Angular methods. Introduced `ScrollService` for smooth scroll-to-top functionality and added associated styles. Removed unused `isHomePage` method and cleaned up components for better maintainability.
This commit is contained in:
@@ -337,4 +337,54 @@ tr {
|
||||
transition: 0.5s background ease;
|
||||
}
|
||||
|
||||
|
||||
.scroll-up-button.active:hover {
|
||||
opacity: 1.0;
|
||||
}
|
||||
|
||||
.scroll-up-button.active {
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.scroll-up-button {
|
||||
opacity: 0.0;
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
border-radius: 5px;
|
||||
background-color: var(--link-color);
|
||||
position: fixed;
|
||||
right: 30px;
|
||||
bottom: 30px;
|
||||
transition: opacity 0.3s, 0.5s ease;
|
||||
}
|
||||
|
||||
.scroll-up-button span::after {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
content: '';
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
margin: -2px 0 0 -5px;
|
||||
border-left: 2px solid #fff;
|
||||
border-bottom: 2px solid #fff;
|
||||
-webkit-transform: rotate(135deg);
|
||||
transform: rotate(135deg);
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.scroll-up-button span::before {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: -1;
|
||||
content: '';
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
box-shadow: 0 0 0 0 rgba(255, 255, 255, .1);
|
||||
border-radius: 100%;
|
||||
opacity: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* main css end */
|
||||
|
||||
Reference in New Issue
Block a user