File: /home/hitehp/domains/demo.namvietrfidvn.com/public_html/wp-content/uploads/custom-css-js/4929.css
<!-- start Simple Custom CSS and JS -->
<style type="text/css">
/* Add your CSS code here.
For example:
.example {
color: red;
}
For brushing up on your CSS knowledge, check out http://www.w3schools.com/css/css_syntax.asp
End of comment */
/* Styling cho các Section để dễ nhận biết */
.page-section {
padding: 80px 0;
margin-bottom: 20px;
background-color: #fff;
border-bottom: 1px solid #eee;
}
.page-section h2 {
text-align: center;
margin-bottom: 40px;
color: #333;
}
.page-section:nth-child(odd) {
background-color: #fdfdfd;
}
/* Styling cho thanh điều hướng cuộn tùy chỉnh */
.custom-scroll-nav {
position: fixed;
right: 30px; /* Vị trí bên phải màn hình */
top: 50%; /* Căn giữa theo chiều dọc */
transform: translateY(-50%);
z-index: 9999; /* Đảm bảo nó luôn nằm trên cùng */
display: flex;
flex-direction: column;
align-items: center;
background-color: rgba(255, 255, 255, 0.9);
padding: 10px 5px;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.custom-scroll-nav .scroll-arrow-icon {
font-size: 24px;
color: #007bff;
margin-bottom: 10px;
display: flex;
flex-direction: column;
align-items: center;
height: 40px; /* Chiều cao để mũi tên lên/xuống có chỗ di chuyển */
position: relative;
overflow: hidden; /* Ẩn phần mũi tên tràn ra ngoài */
}
.custom-scroll-nav .scroll-arrow-icon i {
position: absolute;
transition: transform 0.3s ease-out; /* Hiệu ứng di chuyển mũi tên */
}
.custom-scroll-nav .scroll-arrow-icon .icon-angle-up {
top: 0;
transform: translateY(100%); /* Mặc định ẩn xuống */
}
.custom-scroll-nav .scroll-arrow-icon .icon-angle-down {
bottom: 0;
transform: translateY(-100%); /* Mặc định ẩn lên */
}
/* Hiển thị và di chuyển mũi tên khi cuộn */
.custom-scroll-nav.scroll-up .scroll-arrow-icon .icon-angle-up {
transform: translateY(0%);
}
.custom-scroll-nav.scroll-down .scroll-arrow-icon .icon-angle-down {
transform: translateY(0%);
}
.scroll-nav-list {
list-style: none;
padding: 0;
margin: 0;
text-align: center;
}
.scroll-nav-list li {
position: relative; /* Cho tooltip */
margin: 10px 0;
cursor: pointer;
transition: transform 0.2s ease;
}
.scroll-nav-list li:hover {
transform: scale(1.1);
}
.scroll-nav-list .nav-number {
display: inline-flex;
justify-content: center;
align-items: center;
width: 30px;
height: 30px;
border-radius: 50%;
background-color: #eee;
color: #555;
font-weight: bold;
font-size: 14px;
transition: background-color 0.3s ease, color 0.3s ease;
}
.scroll-nav-list li.active .nav-number {
background-color: #007bff; /* Màu xanh Flatsome */
color: #fff;
}
/* Tooltip Styling */
.scroll-nav-list .nav-tooltip {
position: absolute;
left: -10px; /* Đặt tooltip bên trái của số */
top: 50%;
transform: translateY(-50%) translateX(-100%); /* Dịch sang trái và căn giữa */
background-color: #333;
color: #fff;
padding: 8px 12px;
border-radius: 5px;
white-space: nowrap; /* Ngăn không cho chữ xuống dòng */
opacity: 0;
visibility: hidden;
transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
pointer-events: none; /* Mặc định không tương tác chuột */
font-size: 13px;
}
.scroll-nav-list li:hover .nav-tooltip,
.scroll-nav-list li.tooltip-active .nav-tooltip { /* Class 'tooltip-active' sẽ được JS thêm vào để giữ tooltip hiển thị khi lăn chuột */
opacity: 1;
visibility: visible;
transform: translateY(-50%) translateX(-110%); /* Di chuyển thêm chút để tạo hiệu ứng */
pointer-events: auto; /* Cho phép tương tác chuột khi hiển thị */
}
/* Media query cho màn hình nhỏ */
@media (max-width: 768px) {
.custom-scroll-nav {
right: 10px;
transform: translateY(-50%) scale(0.8); /* Thu nhỏ cho màn hình nhỏ */
}
.custom-scroll-nav .scroll-arrow-icon {
font-size: 20px;
height: 30px;
}
.scroll-nav-list .nav-number {
width: 25px;
height: 25px;
font-size: 12px;
}
.scroll-nav-list .nav-tooltip {
padding: 6px 10px;
font-size: 12px;
transform: translateY(-50%) translateX(-90%);
}
.scroll-nav-list li:hover .nav-tooltip,
.scroll-nav-list li.tooltip-active .nav-tooltip {
transform: translateY(-50%) translateX(-100%);
}
}</style>
<!-- end Simple Custom CSS and JS -->