一个洛谷Material化的Stylish美化主题

博客介绍了洛谷的两个主题——Luogu Argon Design和Luogu Material,重点是Luogu Material,这是一个遵循Material Design风格的洛谷主题。作者提供了主题的stylish链接,并鼓励用户提出问题。
摘要由CSDN通过智能技术生成

Luogu Argon Design

新主题 Luogu Argon Design 目前已经取代了 Luogu Material,但这并不代表 Luogu Material 会停止更新,在 Luogu 4 完成后 Luogu Material 和 Luogu Argon Design 都将要被重写。

 

 

Luogu Material

一个将洛谷Material Design化的主题。

发布在stylish上,地址:https://userstyles.org/styles/157651/material-luogu-material

欢迎发送issue

截图

代码

最新代码请到stylish主题页面查看。https://userstyles.org/styles/157651/material-luogu-material

@-moz-document url-prefix("https://www.luogu.org"), url-prefix("http://www.luogu.org")
{
/*ripple效果*/
  button
  {
    opacity: 0.9;
    line-height: 1rem;
    padding: 0.5rem 1rem;
    border: none;
    outline: none;
    background-color: white;
    text-decoration: none;
    position: relative;
    border-radius: 3px;
    box-shadow: 0 1px 3px darkgray;
    transition: box-shadow 0.5s ease-out;
  }

  button::before
  {
    content: '';
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 10%/40%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    height: 100%;
    width: 100%;
    z-index: -1;
    -webkit-transition: all 0.5s cubic-bezier(0.23, 0.95, 0.56, 1);
    transition: all 0.5s cubic-bezier(0.23, 0.95, 0.56, 1);
  }

  button:hover
  {
    box-shadow: 0 6px 16px darkgray;
    transition: all 0.8s ease-out;
  }

  button:active
  {
    opacity: 1;
    -webkit-transition: all 0.5s ease-out;
    transition: all 0.3s ease-out;
  }

  button:active::before
  {
    width: 0;
    height: 100%;
    border-radius: 0;
    background-color: rgba(0, 0, 0, .4);
    -webkit-transition: all 0.01s ease-out;
    transition: all 0.01s ease-out;
  }

  button.link
  {
    background: none;
    color: #0275d8;
    box-shadow: none;
  }

  button[disabled]
  {
    background-color: lightgray;
    color: darkgray;
    cursor: not-allowed;
    box-shadow: none;
  }

  .circle
  {
    border-radius: 100%;
  }

  button.circle
  {
    padding: 0;
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
    box-shadow: 0 6px 12px rgba(0,0,0,0.9);
  }

  button.circle:hover
  {
    box-shadow: 0 12px 24px rgba(0,0,0,0.9);
  }

  button.circle::before
  {
    content: '';
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 100%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    height: 100%;
    width: 100%;
    z-index: -1;
    -webkit-transition: all 0.5s cubic-bezier(0.23, 0.95, 0.56, 1);
    transition: all 0.5s cubic-bezier(0.23, 0.95, 0.56, 1);
  }

  button.circle:active::before
  {
    width: 0;
    height: 0;
    border-radius: 100%;
    background-color: rgba(0, 0, 0, .4);
    -webkit-transition: all 0.01s ease-out;
    transition: all 0.01s ease-out;
  }
/*透明度*/
  .lg-article, .lg-article-sub, .lg-article-nctrl ,.CardHyaline ,.am-panel, .lg-summary ,.am-g.lg-table-row.lg-table-bg0
  {
    background: rgba(255,255,255,/*[[CardHyaline]]*/);
  }
/*背景*/
  .lg-content
  {
    /*[[UseBackground]]*/
    background: ur
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值