less 毛玻璃背景 渐变弧度边框 透光阴影

    .blurbox {
        position: relative;
        border-radius: 0.5rem;
        backdrop-filter: blur(10px);
        &::after {
            content: "";
            border-radius: 0.5rem;
            padding: 4px;
            inset: 0;
            width: calc(100% - 8px);
            height: calc(100% - 8px);
            top: 0;
            left: 0;
            position: absolute;
            background: linear-gradient(175deg, rgba(255, 255, 255, 0.83),  rgb(213, 213, 213), rgb(209, 209, 209),rgba(255, 255, 255, 0.83));
            mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            mask-composite: exclude;

        }

        &::before {
            z-index: -1;
            top: .65rem;
            left: .65rem;
            position: absolute;
            background-color: rgba(0, 0, 0, 0.15);
            box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.348);
            border: rgba(0, 0, 0, 0.044) 4px solid;
            content: '';
            width: calc(100% - 8px);
            height: calc(100% - 8px);
            border-radius: 0.5rem;

        }
    }

 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值