Skip to content

Commit

Permalink
2023-11-19 weekly
Browse files Browse the repository at this point in the history
  • Loading branch information
sctop committed Nov 19, 2023
1 parent 295d73a commit b0fb53b
Show file tree
Hide file tree
Showing 6 changed files with 73 additions and 0 deletions.
9 changes: 9 additions & 0 deletions static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -399,3 +399,12 @@ body > .wrapper {
z-index: 9;
}
}

/* Video Stats */
.video-stats-badge .badge-tag {
font-size: 0.8em;
}

.video-stats-badge {
display: inline-block;
}
33 changes: 33 additions & 0 deletions static/css/popup.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/* 覆写原始popup的CSS */
.popup-content .popup-header .popup-title {display: none}
.popup-content .popup-body {font-size: initial !important; text-align: initial;}

.popup-icon {height: 1em;} /* 默认为 1em 和字体一样大,不然就单独覆写 */

.popup-content .popup-body .tooltip-div {
color: black;
font-size: initial;
}

.popup-content .popup-body .tooltip-div a {color: #39c !important;}
.popup-content .popup-body .tooltip-div a:hover {color: #069 !important;}

.popup-content .popup-body .tooltip-div .tooltip-ol li {
text-overflow: initial;
-webkit-line-clamp: initial;
overflow: initial;
white-space: initial;
}
.popup-content .popup-body .tooltip-div .tooltip-ol li:before {
content: "";
}

.popup-content .popup-body .tooltip-div .tooltip-ol, .popup-content .popup-body .tooltip-div .tooltip-ul {
padding-left: 3em;
}

.gallery-img div span .popup-icon {
height: 1em;
width: 1em;
border: unset;
}
1 change: 1 addition & 0 deletions static/images/site/circle-info.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions static/images/site/expand.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions static/js/popup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
var current_popup = void 0;

function removePopup(popup) {
popup.hide();
current_popup.popupEl.remove();
}

function showPopupByTooltipId(tooltip_id) {
if (current_popup !== void 0) {
removePopup(current_popup);
}

current_popup = new Popup({"title": " ",
"content": tooltip_data[tooltip_id],
hideCallback: () => {
document.getElementsByTagName("html")[0].style = "scroll-behavior: smooth;";
},
});
document.getElementsByTagName("html")[0].style = "";
current_popup.show();
}
8 changes: 8 additions & 0 deletions static/jsdelivr/popup-js.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b0fb53b

Please sign in to comment.