【子比美化】 rightMenu右键美化

【子比美化】 rightMenu右键美化-使者云
【子比美化】 rightMenu右键美化
此内容为付费阅读,请付费后查看
500积分
付费阅读
已售 2
------正文内容展示,开始汲取新知识啦------

图片[1]-【子比美化】 rightMenu右键美化-使者云

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://i58.icu">
                <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://i58.icu/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://i58.icu/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://i58.icu/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);
  }
}

JS

------本页内容已结束,喜欢请分享------

感谢您的来访,获取更多精彩文章请收藏本站。

© 版权声明
THE END
喜欢就支持一下吧
点赞2479赞赏 分享
共1条

请登录后发表评论