Notice: 函数 wp_enqueue_style 的调用方法不正确。 脚本和样式应在 wp_enqueue_scripts 、 admin_enqueue_scripts 和 login_enqueue_scripts 钩子函数之后再加入加载队列(enqueue)或注册(register)。 此通知由 lizujun-style 触发。 请查阅调试 WordPress来获取更多信息。 (这个消息是在 3.3.0 版本添加的。) in /www/wwwroot/www.91yl.top/wp-includes/functions.php on line 6078
子比主题美化 – rightMenu右键菜单栏美化-zibll教程分享论坛-zibll子比主题-酷梦资源网 联系站长
子比主题美化 – rightMenu右键菜单栏美化-zibll教程分享论坛-zibll子比主题-酷梦资源网

子比主题美化 – rightMenu右键菜单栏美化

效果图

20240403003134763-819946ee9e10b590d8cea7c151aab51fa458627ad2b820e001725745e5dc0dcb.0

html代码

<div id="macgfyj">
    <div data-macgf-cd id="rightMenu">
        <div data-macgf-cd class="rightMenu-group rightMenu-small">
         <div data-macgf-cd class="rightMenu-item" id="menu-home">
              <a data-macgf-cd class="rightMenu-item" href="https://www.vxras.com">
                <i data-macgf-cd class="fa fa-home" aria-hidden="true" /></i>
             </a>
            </div>
            <div data-macgf-cd class="rightMenu-item" id="menu-backward">
               <a data-macgf-cd class="rightMenu-item" href="https://www.vxras.com/user/" return false;">
                <i data-macgf-cd class="fa fa-user-circle" aria-hidden="true" /></i>
              </a>
            </div>
            <div data-macgf-cd class="rightMenu-item" id="menu-forward">
              <a data-macgf-cd class="rightMenu-item" href="https://www.vxras.com/message/news">
                <i data-macgf-cd class="fa fa-bell-o" aria-hidden="true" /></i>
              </a>
            </div>
            <div data-macgf-cd class="rightMenu-item" id="menu-refresh">
              <a data-macgf-cd class="rightMenu-item" href="javascript:location.reload()">
                <i data-macgf-cd class="fa fa-refresh" aria-hidden="true" /></i>
              </a>
            </div>
        </div>
        
        <div data-macgf-cd class="rightMenu-group rightMenu-line" id="menu-copytext">
            <a data-macgf-cd class="rightMenu-item" href="#" onclick="copySelectedText(); event.preventDefault();">
                <i data-macgf-cd class="fa fa-copy" aria-hidden="true"></i><span>复制文本</span>
            </a>
            <a data-macgf-cd class="rightMenu-item" href="#" onclick="copyCurrentUrl(); event.preventDefault();">
                <i data-macgf-cd class="fa fa-chain-broken" aria-hidden="true" /></i><span>复制地址</span>
            </a>
        </div>
        <div data-macgf-cd class="rightMenu-group rightMenu-line">
            <a data-macgf-cd href="https://www.vxras.com/tops" class="rightMenu-item" id="menu-radompage">
                <i data-macgf-cd class="fa fa-bookmark" aria-hidden="true" /></i><span>超级热榜</span>
            </a>
            <a data-macgf-cd class="main-search-btn rightMenu-item" href="javascript:;">
            <i data-macgf-cd class="fa fa-search" aria-hidden="true" /></i>搜索软件</a>
             </div>
         <div data-macgf-cd class="rightMenu-group rightMenu-line">
             <a data-macgf-cd class="rightMenu-item" id="menu-language" href="#" onclick="toggleLanguage();event.preventDefault();">
                  <i data-macgf-cd class="fa fa-text-width" aria-hidden="true" /></i><span id="language-text">切换繁体</span>
                </a>
           </div>
    </div>
 </div>

<div id="rightmenu-mask" onclick="RemoveRightMenu()"></div>

css样式

/* rightMenu右键菜单 */
html {
  height: 100%;
  font-size: 20px
}

body {
  position: relative;
  min-height: 100%;
  background: var(--heo-background);
  color: var(--heo-fontcolor);
  font-size: 16px;
  font-family: "PingFang SC","Hiragino Sans GB","Microsoft YaHei";
  line-height: 2;
  -webkit-tap-highlight-color: transparent;
  margin: 0
}

#rightMenu {
  display: none;
  position: fixed;
  padding: 0 0.25rem;
  width: 9rem;
  height: fit-content;
  top: 10%;
  left: 10%;
  background-color: var(--heo-card-bg);
  color: var(--heo-fontcolor);
  border-radius: 12px;
  z-index: 102;
  border: var(--style-border);
  transition: 0.3s;
}

#rightMenu:hover {
  border: var(--style-border-hover);
  box-shadow: var(--heo-shadow-theme);
}

#rightMenu .rightMenu-group {
  padding: 0.35rem 0.3rem;
}

#rightMenu .rightMenu-group:not(:nth-last-child(1)) {
  border-bottom: 1px dashed var(--heo-theme-op);
}

#rightMenu .rightMenu-group.rightMenu-small {
  display: flex;
  justify-content: space-between;
}

#rightMenu .rightMenu-group .rightMenu-item {
  border-radius: 8px;
  transition: 0.3s;
  cursor: pointer;
}

#rightMenu .rightMenu-line .rightMenu-item {
  margin: 0.25rem 0;
  padding: 0.25rem 0;
}

#rightMenu .rightMenu-group.rightMenu-line .rightMenu-item {
  display: flex;
}

#rightMenu .rightMenu-group .rightMenu-item:hover {
  background-color: var(--heo-theme);
  color: var(--heo-white);
  box-shadow: var(--heo-shadow-theme);
}

#rightMenu .rightMenu-group .rightMenu-item i {
  display: inline-block;
  text-align: center;
  line-height: 1.5rem;
  width: 1.5rem;
  padding: 0 0.25rem;
}

#rightMenu .rightMenu-line .rightMenu-item i {
  margin: 0 0.25rem;
}

#rightMenu .rightMenu-group .rightMenu-item span {
  line-height: 1.5rem;
}

#rightmenu-mask {
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.1); 
  top: 0;
  left: 0;
  display: none;
  z-index: 101;
  margin: 0!important;
}


@charset  "UTF-8";

:root{
  --heo-white: #fff;
  --heo-white-op: rgba(255,255,255,0.2);
  --heo-black: #000;
  --heo-black-op: rgba(0,0,0,0.2);
  --heo-none: #00000000;
  --heo-gray: #999999;
  --heo-gray-op: #9999992b;
  --heo-vip: #e5a80d;
  --heo-main: var(--heo-theme);
  --heo-main-op: var(--heo-theme-op);
  --heo-main-op-deep: var(--heo-theme-op-deep);
  --heo-main-none: var(--heo-theme-none);
  --heo-shadow-theme: 0 8px 12px -3px var(--heo-theme-op);
  --heo-shadow-blackdeep: 0 2px 16px -3px rgba(0, 0, 0,.15);
  --heo-shadow-main: 0 8px 12px -3px var(--heo-main-op);
  --heo-shadow-blue: 0 8px 12px -3px rgba(40, 109, 234,.20);
  --heo-shadow-white: 0 8px 12px -3px rgba(255, 255, 255,.20);
  --heo-shadow-black: 0 0 12px 4px rgba(0, 0, 0,.05);
  --heo-shadow-yellow: 0px 38px 77px -26px rgba(255, 201, 62,.12);
  --heo-shadow-red: 0 8px 12px -3px #ee7d7936;
  --heo-shadow-green: 0 8px 12px -3px #87ee7936;
  --heo-logo-color: linear-gradient(215deg,#4584ff 0%,#cf0db9 100%);
  --heo-snackbar-time: 5s;
  --style-border: 1px solid var(--heo-card-border);
  --style-border-always: 1px solid var(--heo-card-border);
  --style-border-hover: 1px solid var(--heo-main);
  --style-border-hover-always: 1px solid var(--heo-main);
  --style-border-dashed: 1px dashed var(--heo-theme-op);

  --heo-theme: #425AEF;
  --heo-theme-op: #4259ef23;
  --heo-theme-op-deep: #4259efdd;
  --heo-theme-none: #4259ef01;
  --heo-blue: #425AEF;
  --heo-red: #D8213C;
  --heo-pink: #FF7C7C;
  --heo-green: #28a63f;
  --heo-yellow: #c28b00;
  --heo-yellow-op: #d99c001a;
  --heo-orange: #e38100;
  --heo-fontcolor: #363636;
  --heo-background: #f7f9fe;
  --heo-reverse: #000;
  --heo-maskbg: rgba(255, 255, 255, 0.6);
  --heo-maskbgdeep: rgba(255, 255, 255, 0.85);
  --heo-hovertext: var(--heo-main);
  --heo-ahoverbg: #F7F7FA;
  --heo-lighttext: var(--heo-main);
  --heo-secondtext: rgba(60, 60, 67, 0.6);
  --heo-scrollbar: rgba(60, 60, 67, 0.4);
  --heo-card-btn-bg: #edf0f7;
  --heo-post-blockquote-bg: #fafcff;
  --heo-post-tabs-bg: #f2f5f8;
  --heo-secondbg: #f1f3f8;
  --heo-shadow-nav:0 5px 12px -5px rgba(102, 68, 68, 0.05);
  --heo-card-bg: #fff;
  --heo-card-bg-op: var(--heo-black-op);
  --heo-card-bg-none: rgba(255, 255, 255, 0);
  --heo-shadow-lightblack:0 5px 12px -5px rgba(102, 68, 68, 0.00);
  --heo-shadow-light2black:0 5px 12px -5px rgba(102, 68, 68, 0.00);
  --heo-card-border: #e3e8f7;
  --heo-shadow-border: 0 8px 16px -4px #2c2d300c;
  --style-border-forever: 2px solid var(--heo-main);
}

::selection {
  background: var(--heo-fontcolor);
  color: var(--heo-background);
}

[data-theme=light] {
  --heo-theme: #425AEF;
  --heo-theme-op: #4259ef23;
  --heo-theme-op-deep: #4259efdd;
  --heo-theme-none: #4259ef01;
  --heo-blue: #425AEF;
  --heo-red: #D8213C;
  --heo-pink: #FF7C7C;
  --heo-green: #28a63f;
  --heo-yellow: #c28b00;
  --heo-yellow-op: #d99c001a;
  --heo-orange: #e38100;
  --heo-fontcolor: #363636;
  --heo-background: #f7f9fe;
  --heo-reverse: #000;
  --heo-maskbg: rgba(255, 255, 255, 0.6);
  --heo-maskbgdeep: rgba(255, 255, 255, 0.85);
  --heo-hovertext: var(--heo-main);
  --heo-ahoverbg: #F7F7FA;
  --heo-lighttext: var(--heo-main);
  --heo-secondtext: rgba(60, 60, 67, 0.6);
  --heo-scrollbar: rgba(60, 60, 67, 0.4);
  --heo-card-btn-bg: #edf0f7;
  --heo-post-blockquote-bg: #fafcff;
  --heo-post-tabs-bg: #f2f5f8;
  --heo-secondbg: #f1f3f8;
  --heo-shadow-nav:0 5px 12px -5px rgba(102, 68, 68, 0.05);
  --heo-card-bg: #fff;
  --heo-card-bg-op: var(--heo-black-op);
  --heo-card-bg-none: rgba(255, 255, 255, 0);
  --heo-shadow-lightblack:0 5px 12px -5px rgba(102, 68, 68, 0.00);
  --heo-shadow-light2black:0 5px 12px -5px rgba(102, 68, 68, 0.00);
  --heo-card-border: #e3e8f7;
  --heo-shadow-border: 0 8px 16px -4px #2c2d300c;
  --style-border-forever: 2px solid var(--heo-main);
}

[data-theme=dark] {
  --heo-theme: #0084FF;
  --heo-theme-op: #0084FF23;
  --heo-theme-op-deep: #0084ffdd;
  --heo-theme-none: #0084FF00;
  --heo-blue: #0084FF;
  --heo-red: #FF3842;
  --heo-pink: #FF7C7C;
  --heo-green: #57bd6a;
  --heo-yellow: #ffc93e;
  --heo-yellow-op: #ffc93e30;
  --heo-orange: #ff953e;
  --heo-fontcolor: #F7F7FA;
  --heo-background: #18171d;
  --heo-reverse: #fff;
  --heo-maskbg: rgba(0,0,0, 0.6);
  --heo-maskbgdeep: rgba(0,0,0, 0.85);
  --heo-hovertext: #0A84FF;
  --heo-ahoverbg: #fff;
  --heo-lighttext: #f2b94b;
  --heo-secondtext: #a1a2b8;
  --heo-scrollbar: rgba(200, 200, 223, 0.4);
  --heo-card-btn-bg: #30343f;
  --heo-post-blockquote-bg: #000;
  --heo-post-tabs-bg: #121212;
  --heo-secondbg: #30343f;
  --heo-shadow-nav:0 5px 20px 0px rgba(28, 28, 28, 0.4);
  --heo-card-bg: #1d1e22;
  --heo-card-bg-op: var(--heo-white-op);
  --heo-card-bg-none: #1d1b2600;
  --heo-shadow-lightblack:0 5px 12px -5px rgba(102, 68, 68, 0.0);
  --heo-shadow-light2black:0 5px 12px -5px rgba(102, 68, 68, 0.0);
  --heo-card-border: #282829;
  --heo-shadow-border: 0 8px 16px -4px #00000050;
  --style-border-forever: 2px solid var(--heo-lighttext);
}

@media screen and (max-width: 768px){
  :root{
  --style-border: 0px solid var(--heo-card-border);
  --style-border-hover: 0px solid var(--heo-main);
  }
}

 

请登录后发表评论

    没有回复内容

  • 138

    文章数目

  • 9

    注册用户

  • 3

    本周发布

  • 477

    稳定运行

  • 8352

    总访问量

  • 波浪
  • 波浪
  • 波浪
  • 波浪

夕阳无别事,等风也等你

夕阳无别事,等风也等你

后退
榜单