unraid 自定义主题 CSS

/* 删除内容务必按区块删除 */

/* CPU 型号修改 */
</style>
<script>
const cpuSpecificationStr = 'AMD Ryzen 5 2600X Six-Core @ 3600 MHz';
window.addEventListener('load', () => {
const cpu1 = document.querySelector('.cpu_view');
if (cpu1) {
const cpuSpecification = document.createElement('span');
cpuSpecification.innerHTML = cpuSpecificationStr;
cpuSpecification.id = 'cpu_spec'
cpu1.childNodes[1].childNodes[0].remove();
cpu1.childNodes[1].insertBefore(cpuSpecification, cpu1.childNodes[1].childNodes[0]);
}
const cpu2 = document.querySelector('tbody[title="Processor Information"]')?.childNodes[3];
if (cpu2) {
const cpuSpecification = document.createElement('td');
cpuSpecification.innerHTML = cpuSpecificationStr;
cpuSpecification.id = 'cpu_spec'
cpu2.childNodes[0].remove();
cpu2.insertBefore(cpuSpecification, cpu2.childNodes[0]);
}
});
</script>
<style>
/* CPU 型号修改 */

/* CPU 型号以及负载跑马灯 */
.sys > span {
/* 负载整条, 删除后按负载值长度 */
width: 100% !important;
/* 负载整条, 删除后按负载值长度 */
background-image: linear-gradient(to right,#ff4500,orange,gold,#90ee90,#0ff,#1e90ff,#9370db,#ff69b4,#ff4500);
background-size: 50vw;
color: #fff;
animation: sliding 50s linear infinite;
}

#cpu_spec {
margin: 0;
background-image: linear-gradient(to right,#ff4500,orange,gold,#90ee90,#0ff,#1e90ff,#9370db,#ff69b4,#ff4500);
background-size: 110vw;
color: #fff;
animation: sliding 30s linear infinite;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent
}
@keyframes sliding {
to {
background-position: -2000vw
}
}
/* CPU 型号以及负载跑马灯 */

/* 界面美化 */
body {
font-family: consolas;
/* background: url("https://pic.lswl.in/images/2022/01/20/0477a2b150b8d7d13335d30b12c840f2.jpg") 50% 50% / cover !important */
}

tbody td span:not(.fa), input[type=text], input[type=password], input[type=number], input[type=url], input[type=email], input[type=date], input[type=file], textarea, .textarea {
font-family: consolas !important;
}

.text-right {
line-height: 18.5px;
}

#header {
height: 300px;
background-size: auto 300px;
}
#header .logo{
display: none;
}
#header .block {
margin: 200px 0 0 0;
border-radius: 25px !important;
}
#menu {
top: 300px
}
div.tabs {
margin: 340px 0 0 0;
}
#header.image{
left: auto;
max-width: 1900px;
background-position-x: center;
background-image: url(*********** url ***********);
}

#nav-block {
max-width: 1900px;
margin: 0 auto;
background-color: rgba(0,0,0,.15);
border: 1px solid rgba(255,255,255,.25);
}
@font-face {
font-display: block;
font-family: 'consolas';
src: url('https://minio.lswl.in/share/consolas.woff') format('woff');
}
@font-face {
font-display: block;
font-family: 'pingfang';
src: url('https://minio.lswl.in/share/pingfang.woff') format('woff');
}

*::-webkit-scrollbar {
width : 7px;
height: 1px;
}
*::-webkit-scrollbar-thumb {
border-radius : 10px;
background-color: skyblue;
background-image: -webkit-linear-gradient(
45deg,
rgba(255, 255, 255, 0.2) 25%,
transparent 25%,
transparent 50%,
rgba(255, 255, 255, 0.2) 50%,
rgba(255, 255, 255, 0.2) 75%,
transparent 75%,
transparent
);
}
*::-webkit-scrollbar-track {
box-shadow : inset 0 0 5px rgba(0, 0, 0, 0.2);
background : #ededed;
border-radius: 10px;
}

</style>
<link type="text/css" rel="Stylesheet" href="https://theme-park.dev/css/base/unraid/hotline.css" />