-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.