哪吒面板透明自定义主题

  • 📝教程
  • 10914 阅读
  • 2022年10月19日
  • 0 条评论
  • 全文共352字, 阅读大约需要1分钟
  • 搜索引擎已收录

首页 / 📝教程 / 正文

AI摘要
Gemini 1.5 Pro
|
此内容根据文章生成,并经过人工审核,仅用于文章内容的解释与总结
反馈

前言

最近京东的公共图床403了,好多图要转移,麻烦啊,所以说免费的就是最贵的!言归正传,有好多朋友要那款非常漂亮的哪吒监控透明主题,正好今天就能水一篇了,话不多说,直接上代码!

截图演示

  • 主题截图
  • 使用方法
  • 自定义项
登录哪吒面板后台,然后进入 设置 ,将主题设为 Default ,然后在下面可以看到 自定义代码 一栏,把下面deCSS代码粘贴到里面就好了。
下面的代码里53行是背景图片,186行是页头logo图片,193行是页面favicon图标,其他的颜色可以根据自己喜好修改,所有的代码都有注释,非常简单,差不多就这么多,快去折腾吧。

CSS代码

  1. <style>
  2. /*.ui.fine.progress> .progress-bar {
  3. background-color:#00a7d0 !important;
  4. */
  5. }
  6. /* 奶妈的版权 */
  7. .ui.inverted.segment,.ui.primary.inverted.segment {
  8. color:#000;
  9. font-weight:normal;
  10. background-color:rgba(255,255,255,35%)
  11. }
  12. /* 屏幕适配 */
  13. @media only screen and (min-width:1200px) {
  14. .ui.container {
  15. width:80%;
  16. }
  17. }@media only screen and (max-width:767px) {
  18. .ui.card>.content>.header:not(.ui),.ui.cards>.card>.content>.header:not(.ui) {
  19. margin-top:0.5em;
  20. font-size:1.2em;
  21. }
  22. }/* 图标颜色和大小*/
  23. i.icon {
  24. color:#000;
  25. width:1em !important;
  26. }
  27. /* 菜单颜色 */
  28. .ui.large.menu {
  29. background-color:rgba(255,255,255,55%);
  30. }
  31. .ui.dropdown .menu {
  32. border:0;
  33. border-radius:0px;
  34. background-color:rgba(255,255,255,55%);
  35. }
  36. /* 登录按钮颜色 */
  37. .nezha-primary-btn {
  38. background-color:#21ba45 !important;
  39. color:#fff;
  40. }
  41. /* 背景图片 */
  42. body {
  43. content:" ";
  44. background:fixed;
  45. z-index:-1;
  46. top:0;
  47. right:0;
  48. bottom:0;
  49. left:0;
  50. background-position:top;
  51. background-repeat:no-repeat;
  52. background-size:cover;
  53. background-image:url(https://dd-static.jd.com/ddimg/jfs/t1/175323/30/27560/24945/63139efaE84ee0d9e/fca1dbab91044e55.jpg);
  54. }
  55. /* 大卡片 */
  56. #app .ui.fluid.accordion {
  57. background-color:#fbfbfb26;
  58. border-radius:0.4rem;
  59. }
  60. /* 小卡片 */
  61. .ui.four.cards>.card {
  62. border-radius:0.6rem;
  63. background-color:#fafafaa3;
  64. }
  65. /* 小卡片右上角图标颜色 */
  66. .nezha-secondary-font {
  67. color:rgba(252,166,7,0.952) !important;
  68. }
  69. /* 小卡片右上角图标位置 */
  70. .ui.right.center.popup {
  71. margin:-3px 0 0 0.914286em !important;
  72. -webkit-transform-origin:left 50%;
  73. transform-origin:left 50%;
  74. }
  75. .ui.bottom.left.popup {
  76. margin-left:1px !important;
  77. margin-top:3px !important;
  78. }
  79. .ui.top.left.popup {
  80. margin-left:0;
  81. margin-bottom:10px !important;
  82. }
  83. .ui.top.right.popup {
  84. margin-right:0;
  85. margin-bottom:8px !important;
  86. }
  87. .ui.left.center.popup {
  88. margin:-3px .91428571em 0 0 !important;
  89. -webkit-transform-origin:right 50%;
  90. transform-origin:right 50%;
  91. }
  92. /* 弹出来的卡片 */
  93. .status.cards .ui.content.popup {
  94. border-radius:0.35rem;
  95. background-color:rgba(255,255,255,85%);
  96. }
  97. .ui.content {
  98. margin:0;
  99. padding:1em !important;
  100. }
  101. /* 弹出来的小卡片位置 */
  102. .status.cards .flag {
  103. margin-right:0 !important;
  104. }
  105. .status.cards .header > .info.icon {
  106. float:right;
  107. margin-right:0;
  108. cursor:pointer;
  109. }
  110. .status.cards .wide.column {
  111. padding-top:0 !important;
  112. padding-bottom:0 !important;
  113. height:2.5rem !important;
  114. }
  115. .status.cards .three.wide.column {
  116. padding-right:0 !important;
  117. }
  118. .status.cards .wide.column:nth-child(1) {
  119. margin-top:1rem !important;
  120. }
  121. .status.cards .wide.column:nth-child(2) {
  122. margin-top:1rem !important;
  123. }
  124. .status.cards .description {
  125. padding-bottom:1rem !important;
  126. }
  127. .status.cards .ui.content.popup {
  128. min-width:292px;
  129. min-width:21rem;
  130. }
  131. .status.cards .outline.icon {
  132. margin-right:-4px;
  133. }
  134. /* 进度条圆角和颜色 */
  135. .ui.progress {
  136. border-radius:50rem
  137. }
  138. .ui.progress .bar {
  139. min-width:1.8em !important;
  140. border-radius:15px;
  141. line-height:1.65em;
  142. }
  143. .ui.fine.progress> .bar {
  144. background-color:#21ba45!important;
  145. }
  146. .ui.progress> .bar {
  147. background-color:#000!important;
  148. }
  149. .ui.progress.fine .bar {
  150. background-color:#21ba45!important;
  151. }
  152. .ui.progress.warning .bar {
  153. background-color:#ff9800!important;
  154. }
  155. .ui.progress.error .bar {
  156. background-color:#e41e10!important;
  157. }
  158. .ui.progress.offline .bar {
  159. background-color:#000!important;
  160. }
  161. /* 上传下载图标颜色 */
  162. i.arrow.alternate.circle.down.outline.icon {
  163. color:green;
  164. }
  165. i.arrow.alternate.circle.up.outline.icon {
  166. color:#ff0000;
  167. }
  168. /*服务状态*/
  169. .service-status .good {
  170. background-color:rgb(33 186 69) !important;
  171. }
  172. /* 奶妈的版权 */
  173. .ui.inverted.segment,.ui.primary.inverted.segment {
  174. color:#000;
  175. font-weight:bold;
  176. background-color:rgba(255,255,255,55%)
  177. }
  178. </style>
  179. <script>
  180. window.onload = function() {
  181. var avatar=document.querySelector(".item img")
  182. var footer=document.querySelector("div.is-size-7")
  183. footer.innerHTML=2021 NieGe VPS Status"
  184. footer.style.visibility="visible"
  185. avatar.src="https://img14.360buyimg.com/ddimg/jfs/t1/162473/22/23012/3692/6184b06aEa95a0194/8c51cebbd04b95b2.png"
  186. avatar.style.visibility="visible"
  187. }
  188. </script>
  189. <script>
  190. var faviconurl="//img14.360buyimg.com/ddimg/jfs/t1/162473/22/23012/3692/6184b06aEa95a0194/8c51cebbd04b95b2.png";
  191. var link = document.querySelector("link[rel*='icon']") || document.createElement('link');
  192. link.type = 'image/png';
  193. link.rel = 'shortcut icon';
  194. link.href = faviconurl;
  195. document.getElementsByTagName('head')[0].appendChild(link);
  196. </script>
复制代码

后记

这里说一下,本主题非本人原创,来源于这里,后面的修改favicon是我自己加上的,就是这样。

发现作者也加上了自定义favicon的代码

 赞  赏

如果觉得我的文章对你有用,请随意打赏

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,你说多少就多少

打开  或者  扫一扫,即可进行扫码赞赏哦

原创文章,版权属于:涅槃博客 - love2wind
本文最后更新于2023年04月17日00时30分19秒,已超过798天没有更新,若内容或图片失效,请留言反馈
本文链接:https://niepan.org/archives/2231.html(转载时请注明本文出处及文章链接)
作品采用:《署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)》许可协议授权

发表评论

博主 - <?php $this->author->screenName(); ?>

love2wind

记录生活,分享世界