fix sticky grade summary
diff --git a/dtps.css b/dtps.css
index 5d72ebe..3872d57 100644
--- a/dtps.css
+++ b/dtps.css
@@ -700,10 +700,6 @@
transition: all 0.5s;
}
-.classContent {
- transition: all 0.5s, color 0s, background-color 0s, background 0s;
-}
-
.dot {
display: none;
}
@@ -1458,6 +1454,6 @@
backdrop-filter: blur(20px);
}
-.classContent.gradeSummaryShowHide {
- padding-top: 180px;
+.classContent.fixedGradeSummary {
+ padding-top: 160px;
}
\ No newline at end of file
diff --git a/scripts/lms/dtech.js b/scripts/lms/dtech.js
index 2e1a300..d56b561 100644
--- a/scripts/lms/dtech.js
+++ b/scripts/lms/dtech.js
@@ -586,7 +586,7 @@
//Keep the grade summary on top
var navbar = document.getElementById("gradeSummary");
- var sticky = navbar.offsetTop;
+ var sticky = navbar.offsetTop - 60;
window.onscroll = function () {
console.log(sticky, window.pageYOffset);
if (window.pageYOffset >= sticky) {