Mitch-DbtechShopGrid

Mitch-DbtechShopGrid 1.0.0

没有下载权限
在网格布局模式下,给你的 DBTech Shop 换个新面貌。
XF兼容
  1. 2.3.x
在网格布局模式下,给你的 DBTech Shop 换个新面貌。

这个小插件会把所需的 CSS 插入到你的 extra.less 里

1765510853647.webp


也可以手动添加:
CSS:
/* ===========================
   DBTech Shop – Category grid view
   Scoped to shop pages only
   =========================== */

body[data-template="dbtech_shop_category_view"],
body[data-template="dbtech_shop_overview"],
body[data-template="dbtech_shop"]
{
    /* Grid container: spacing between cards */
    .itemList-grid
    {
        display: flex;
        flex-flow: row wrap;
        gap: 16px; /* spacing between cards */
        margin: 12px 0 20px;
        justify-content: flex-start;
    }

    /* Card base */
    .itemList-item-grid.node
    {
        position: relative;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;

        /* KEY CHANGE:
           - 4 cards still fit (basis 240px)
           - but cards can grow to use extra space
        */
        flex: 1 1 240px;
        max-width: 262px; /* soft upper limit, can tweak or remove */

        padding: 10px 10px 12px;

        border-radius: 14px;
        border: 1px solid rgba(15, 23, 42, 0.9);
        background:
            radial-gradient(circle at 0% 0%, rgba(34, 197, 94, 0.35), transparent 55%),
            radial-gradient(circle at 100% 100%, rgba(250, 204, 21, 0.25), transparent 55%),
            linear-gradient(135deg, #020617, #020617);

        box-shadow:
            0 0 0 1px rgba(15, 23, 42, 0.95),
            0 14px 30px rgba(15, 23, 42, 0.95);

        transition:
            transform 0.18s ease-out,
            box-shadow 0.18s ease-out,
            border-color 0.18s ease-out,
            background-position 0.18s ease-out;
        overflow: hidden;
    }

    .itemList-item-grid.node:hover
    {
        transform: translateY(-4px);
        border-color: rgba(34, 197, 94, 0.8);
        box-shadow:
            0 0 0 1px rgba(34, 197, 94, 0.6),
            0 20px 40px rgba(15, 23, 42, 0.95);
    }

    /* Top overlay for inline mod checkbox */
    .itemList-item-gridOverlayTop
    {
        top: 10px;
        right: 10px;
    }

    /* Icon / thumbnail area */
    .itemList-item-grid--icon
    {
        margin-bottom: 10px;
        border-radius: 10px;
        overflow: hidden;
        background: radial-gradient(circle at 50% 0%, rgba(148, 163, 184, 0.35), transparent 60%);
    }

    .itemList-item-grid--icon img,
    .itemList-item-grid--icon .avatar
    {
        width: 100%;
        height: 160px;
        object-fit: cover;
        border-radius: inherit;
    }

    /* Title & tagline */
    .itemList-item-grid .node-main
    {
        margin-bottom: 8px;
    }

    .itemList-item-grid .node-title a[data-shortcut="node-description"]
    {
        font-size: @xf-fontSizeLarger;
        font-weight: 800;
        color: @xf-textColorEmphasized;
    }

    .itemList-item-grid .node-description
    {
        margin-top: 3px;
        font-size: @xf-fontSizeSmall;
        color: @xf-textColorMuted;
    }

    /* Meta row under title (owner, filters) */
    .itemList-item-grid .contentRow-minor--smaller
    {
        margin-top: 6px;
        font-size: @xf-fontSizeSmallest;
        color: @xf-textColorMuted;
    }

    /* Rating + price row */
    .itemList-item-grid--priceRatingInfo
    {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: 8px;
        margin-bottom: 8px;
    }

    .itemList-item-grid--priceRatingInfo .rating
    {
        font-size: @xf-fontSizeSmall;
        opacity: .9;
    }

    .itemList-item-grid--priceRatingInfo .price .label
    {
        border-radius: 999px;
        padding: 3px 9px;
        font-size: @xf-fontSizeSmallest;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;

        background: linear-gradient(135deg, #22c55e, #a3e635, #facc15);
        color: #022c22;
        border: 1px solid rgba(248, 250, 252, 0.85);
        box-shadow:
            0 0 4px rgba(34, 197, 94, 0.75),
            0 0 10px rgba(250, 204, 21, 0.65);
    }

    /* Buy button row */
    .itemList-item-grid--buyButton
    {
        margin-bottom: 6px;
    }

    .itemList-item-grid--buyButton .button--cta
    {
        border-radius: 999px;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .itemList-item-grid--buyButton .button--cta:not([disabled]):hover
    {
        box-shadow:
            0 0 8px rgba(34, 197, 94, 0.8),
            0 0 16px rgba(56, 189, 248, 0.6);
    }

    /* Stock & update info at the bottom */
    .itemList-item-grid--updateInfo
    {
        margin-top: auto; /* push to bottom */
        padding-top: 6px;
        border-top: 1px solid rgba(15, 23, 42, 0.7);
        font-size: @xf-fontSizeSmallest;
        color: @xf-textColorMuted;
    }

    .itemList-item-grid--updateInfo .pairs > dt
    {
        color: @xf-textColorMuted;
    }

    /* Highlight very low stock */
    .itemList-item-grid--updateInfo .pairs dd a
    {
        font-weight: 600;
    }
    .itemList-item-grid--updateInfo .pairs dd a[data-stock-low="1"]
    {
        color: #f97316;
    }
}
作者
波坤太叔
下载
0
查看
137
首次发布
最后更新

评级

0.00 星 0 星

来自波坤太叔的更多资源

  • Mentor LMS - Learning Management System
    内容 Mentor LMS - Learning Management System
    Mentor LMS——轻松打造您自己的电子学习业务
  • BeLink - Bio Link & URL Shortener Platform
    BeLink - Bio Link & URL Shortener Platform
    BeLink 是生物创建器中质量最高、最先进的 url 缩短器和链接
  • Diamond Pro Sngine Theme
    内容 Diamond Pro Sngine Theme
    Diamond Pro 是一款现代化、高性能且视觉效果出色的高端主题模板,专为 Sngine PHP 脚本设计而成。
  • SV Standard Library
    SV Standard Library
    一些旨在简化附加开发的辅助实用程序没有任何直接面向用户的更改。上传到资源经理,以帮助依赖性跟踪,并允许更新,而无需更新每个单独的附加 组件
  • Report Improvements by Xon
    Report Improvements by Xon
    此加载项引入了对审核权限的潜在重大更改。请仔细查看用户组权限!XF报告系统的改进集合。完全措辞。安装时,所有现有警告都将复制到新的警告更改跟踪日志中,并与报告相关联。此过程作为后台任务发生,并且不会中
社区
规则 帮助 用户
  • 目前没有人在聊天。
聊天中还没有人留言。快跟大家说声Hi!
用户活动
刚才 · 5318资源社区