Github油猴脚本:样式调整。
parent
bb7dcf7cb2
commit
b61e882f87
|
@ -241,9 +241,9 @@ document.addEventListener("DOMContentLoaded", () => {
|
|||
let html = document.querySelectorAll('.Box-footer'); if (html.length == 0 || location.pathname.indexOf('/releases') == -1) return
|
||||
|
||||
// li:hover 鼠标悬停变色
|
||||
let style = document.createElement('style');
|
||||
style.innerHTML = '.Box-footer ul li.Box-row:hover { background-color: var(--bgColor-muted); }';
|
||||
document.head.appendChild(style);
|
||||
let styleHover = document.createElement('style');
|
||||
styleHover.innerHTML = '.Box-footer ul li.Box-row:hover { background-color: var(--bgColor-muted); }';
|
||||
document.head.appendChild(styleHover);
|
||||
|
||||
let divDisplay = 'margin-left: -90px;', new_download_url = get_New_download_url();
|
||||
if (document.documentElement.clientWidth > 755) {divDisplay = 'margin-top: -3px;margin-left: 8px;display: inherit;';}; // 调整小屏幕时的样式
|
||||
|
|
Loading…
Reference in New Issue