Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Как сделать меню как у форума crmp.online?

Мар
46
2
Пользователь
Приветствую покажите как сделать вот точно также менюшку как у форума crmp.online?

Заранее спасибо 🙏
 

Вложения

  • Screenshot_20251130-002106.jpg
    Screenshot_20251130-002106.jpg
    73.1 KB · Просмотры: 37
Лучше плохо начать, чем хорошо бездействовать
Ноя
2,310
1,805
Профессионал
Осуждён за гениальность или проклят за талант?
Сен
363
414
Пользователь
В extra.less

Код:
@serviceBg: @xf-contentBg;
@serviceCardBg: #1a1f21;
@serviceBorder: #2a2f31;
@serviceText: #ccc;
@serviceMuted: #999;
@serviceNote: #777;
@serviceTitleColor: #ffeb38;
@serviceTitleLine: #ffaf38;
@serviceCyan: #38e1ff;
@servicePurple: #cf31ff;
@servicePurpleBadge: #c300ff;
@serviceGreen: #00aa55;
@serviceOrange: #ffaf38;
@serviceSaleGreen: #00ff88;
@serviceDanger: #ff3333;

.serviceShop
{
    padding: 0 10px;
    margin: 30px 0;

    &__container
    {
        max-width: 1100px;
        margin: 0 auto;
    }

    &__title
    {
        text-align: center;
        font-size: 26px;
        margin: 0 0 25px;
        font-weight: 700;
        letter-spacing: 0.5px;
        position: relative;
        display: inline-block;
        left: 50%;
        transform: translateX(-50%);
        padding: 0 20px;
        color: @serviceTitleColor;
    }

    &__titleText
    {
        background: @serviceBg;
        padding: 0 15px;
    }

    &__titleLine
    {
        display: block;
        height: 3px;
        margin-top: 5px;
        background: linear-gradient(90deg, transparent, @serviceTitleLine, transparent);
    }

    &__grid
    {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }

    &__section
    {
        max-width: 1000px;
        margin: 30px auto;
        padding: 0 15px;
        
        &:first-of-type
        {
            margin-top: 40px;
        }
    }
}

.serviceCard
{
    background: @serviceCardBg;
    border: 2px solid @serviceBorder;
    border-radius: 12px;
    padding: 18px;
    position: relative;
    overflow: hidden;
    transition: box-shadow .2s, border-color .2s;
    
    &:hover
    {
        border-color: #3a3f41;
        box-shadow: 0 5px 15px rgba(0,0,0,.3);
    }

    &--cyan
    {
        border-color: @serviceCyan;
    }
    
    &--purple
    {
        border-color: @servicePurpleBadge;
    }
    
    &--green
    {
        border-color: @serviceGreen;
    }
    
    &--orange
    {
        border-color: @serviceOrange;
    }

    &__badge
    {
        position: absolute;
        top: 0;
        left: 0;
        padding: 5px 12px;
        font-size: 12px;
        font-weight: 700;
        border-radius: 0 0 8px 0;
        color: #fff;
        background: @serviceBorder;
        
        .serviceCard--cyan &
        {
            background: @serviceCyan;
        }
        .serviceCard--purple &
        {
            background: @servicePurpleBadge;
        }
        .serviceCard--green &
        {
            background: @serviceGreen;
        }
        .serviceCard--orange &
        {
            background: @serviceOrange;
        }
        &--darkText
        {
            color: #000;
        }
    }

    &__head
    {
        text-align: center;
        padding: 10px;
        margin-bottom: 15px;
        position: relative;
    }

    &__headGlow
    {
        position: absolute;
        inset: 0;
        opacity: .3;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);

        .serviceCard--cyan &
        {
            background: linear-gradient(90deg, transparent, fade(@serviceCyan, 10%), transparent);
        }
        .serviceCard--purple &
        {
            background: linear-gradient(90deg, transparent, fade(@servicePurpleBadge, 10%), transparent);
        }
        .serviceCard--green &
        {
            background: linear-gradient(90deg, transparent, fade(@serviceGreen, 10%), transparent);
        }
        .serviceCard--orange &
        {
            background: linear-gradient(90deg, transparent, fade(@serviceOrange, 10%), transparent);
        }
    }

    &__name
    {
        margin: 0;
        font-size: 20px;
        font-weight: 700;
        position: relative;

        .serviceCard--cyan &
        {
            color: @serviceCyan;
        }
        .serviceCard--purple &
        {
            color: @servicePurple;
        }
        .serviceCard--green &
        {
            color: @serviceSaleGreen;
        }
        .serviceCard--orange &
        {
            color: @serviceOrange;
        }
    }

    &__nameGlow
    {
        text-shadow: 0 0 10px rgba(255,255,255,.15);

        .serviceCard--cyan &
        {
            text-shadow: 0 0 10px @serviceCyan;
        }
        
        .serviceCard--purple &
        {
            text-shadow: 0 0 10px fade(@servicePurple, 50%);
        }
        
        .serviceCard--green &
        {
            text-shadow: 0 0 10px fade(@serviceSaleGreen, 50%);
        }
        
        .serviceCard--orange &
        {
            text-shadow: 0 0 10px fade(@serviceOrange, 50%);
        }
    }

    &__meta
    {
        margin-top: 5px;
    }

    &__tag
    {
        display: inline-block;
        padding: 3px 10px;
        border-radius: 12px;
        font-size: 13px;
        color: #fff;
        border: 1px solid fade(#fff, 15%);
        background: rgba(255,255,255,.06);

        &--cyan
        {
            background: fade(@serviceCyan, 20%);
            border-color: fade(@serviceCyan, 40%);
        }
        
        &--purple
        {
            background: fade(@servicePurple, 20%);
            border-color: fade(@servicePurple, 30%);
        }
        
        &--green
        {
            background: fade(@serviceSaleGreen, 20%);
            border-color: fade(@serviceSaleGreen, 30%);
        }
        
        &--orange
        {
            background: fade(@serviceOrange, 20%);
            border-color: fade(@serviceOrange, 30%);
        }
    }

    &__features
    {
        margin-bottom: 20px;
    }

    &__feature
    {
        display: flex;
        align-items: flex-start;
        margin-bottom: 8px;

        &:last-child
        {
            margin-bottom: 0;
        }
    }

    &__check
    {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        margin-right: 10px;
        flex-shrink: 0;
        color: #fff;

        .serviceCard--cyan &
        {
            background: @serviceCyan;
        }
        
        .serviceCard--purple &
        {
            background: @servicePurple;
        }
        
        .serviceCard--green &
        {
            background: @serviceGreen;
        }
        
        .serviceCard--orange &
        {
            background: @serviceOrange;
        }

        &--darkText
        {
            color: #000;
        }
    }

    &__featureText
    {
        color: @serviceText;
        font-size: 14px;
    }

    &__highlight
    {
        padding: 10px;
        border-radius: 6px;
        margin-bottom: 15px;
        text-align: center;
        font-size: 13px;

        &--purple
        {
            color: @servicePurple;
            background: fade(@servicePurple, 10%);
            border: 1px solid fade(@servicePurple, 20%);
        }
    }

    &__price
    {
        background: fade(#282d2f, 80%);
        padding: 12px;
        border-radius: 8px;
        margin-bottom: 15px;
        border: 1px solid @serviceBorder;
    }

    &__priceRow
    {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    &__oldPrice
    {
        color: #888;
        font-size: 13px;
        text-decoration: line-through;
        margin-bottom: 2px;
    }

    &__newPrice
    {
        color: @serviceSaleGreen;
        font-size: 24px;
        font-weight: 700;
    }

    &__discount
    {
        background: @serviceDanger;
        color: #fff;
        padding: 3px 8px;
        border-radius: 4px;
        font-size: 12px;
        font-weight: 700;
    }

    &__note
    {
        color: @serviceNote;
        font-size: 12px;
        margin-top: 5px;
        text-align: center;
    }

    &__buy.button
    {
        width: 100%;
        border: none;
        padding: 12px;
        border-radius: 6px;
        cursor: pointer;
        font-size: 15px;
        font-weight: 700;
        position: relative;
        overflow: hidden;
        color: #fff;
        background: @serviceBorder;
        transition: filter .2s;

        &:hover
        {
            filter: brightness(1.1);
        }

        &.serviceCard__buy--cyan
        {
            background: @serviceCyan;
            
            &:hover
            {
                background-color: @serviceCyan;
            }
        }
        &.serviceCard__buy--purple
        {
            background: @servicePurple;
            
            &:hover
            {
                background-color: @servicePurple;
            }
        }
        &.serviceCard__buy--green
        {
            background: @serviceGreen;
            
            &:hover
            {
                background-color: @serviceGreen;
            }
        }
        &.serviceCard__buy--orange
        {
            background: @serviceOrange;
            
            &:hover
            {
                background-color: @serviceOrange;
            }
        }

        &--darkText
        {
            color: #000;
        }
    }

    &__buyText
    {
        position: relative;
        z-index: 1;
    }

    &__buyShine
    {
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
        transition: left .5s;
    }

    &__buy:hover &__buyShine
    {
        left: 100%;
    }

    &__buyShine--strong
    {
        background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
    }
}

.serviceNotice
{
    border: 2px solid @serviceDanger;
    border-radius: 8px;
    padding: 20px;
    position: relative;
    background: fade(@serviceDanger, 5%);

    &__label
    {
        position: absolute;
        top: -12px;
        left: 20px;
        background: @serviceDanger;
        color: #fff;
        padding: 4px 15px;
        border-radius: 4px;
        font-size: 13px;
        font-weight: 700;
    }

    &__lead
    {
        margin-top: 10px;
        color: #ff6666;
        font-size: 15px;
        font-weight: 700;
        text-align: center;
        margin-bottom: 10px;
    }

    &__text
    {
        color: #bbb;
        font-size: 14px;
        line-height: 1.5;
    }

    &__list
    {
        margin: 10px 0 0 20px;
        color: @serviceMuted;
    }
}

.serviceCommands
{
    background: @serviceCardBg;
    border: 1px solid @serviceBorder;
    border-radius: 8px;
    padding: 15px;

    &__title
    {
        color: @serviceOrange;
        font-size: 16px;
        margin-bottom: 15px;
        font-weight: 700;
        text-align: center;
    }

    &__grid
            {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 10px;
    }

    &__item
    {
        padding: 10px;
        border-radius: 6px;
        border: 1px solid fade(#fff, 10%);
        background: rgba(255,255,255,.03);

        &--cyan
        {
            background: fade(@serviceCyan, 10%);
            border-color: fade(@serviceCyan, 30%);
        }
        &--purple
        {
            background: fade(@servicePurpleBadge, 10%);
            border-color: fade(@servicePurpleBadge, 30%);
        }
        &--green
        {
            background: fade(@serviceGreen, 10%);
            border-color: fade(@serviceGreen, 30%);
        }
        &--orange
        {
            background: fade(@serviceOrange, 10%);
            border-color: fade(@serviceOrange, 30%);
        }
    }

    &__label
    {
        font-size: 13px;
        margin-bottom: 5px;
        color: #aaf9ff;

        .serviceCommands__item--purple &
        {
            color: #ebaaff;
        }
        .serviceCommands__item--green &
        {
            color: #40f8a2;
        }
        .serviceCommands__item--orange &
        {
            color: #ffe0b3;
        }
    }

    &__code
    {
        display: inline-block;
        font-size: 16px;
        font-weight: 700;
        font-family: "Courier New", monospace;

        .serviceCommands__item--cyan &
        {
            color: @serviceCyan;
        }
        .serviceCommands__item--purple &
        {
            color: @servicePurple;
        }
        .serviceCommands__item--green &
        {
            color: @serviceGreen;
        }
        .serviceCommands__item--orange &
        {
            color: @serviceOrange;
        }
    }
}

@media (max-width: @xf-responsiveMedium)
{
    .serviceShop__grid
    {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}
.canvas-style(@canvas-id; @color; @fa-uid; @shadow: @color; @bg: false) when (@bg = false)
{
    .offCanvasMenu-link[data-nav-id="@{canvas-id}"]:before
    {
        .m-faBase(@weight: 900);
        content: "\@{fa-uid}";
        margin-right: 3px;
        color: @color;
    }

    .offCanvasMenu-link[data-nav-id="@{canvas-id}"]
    {
        font-weight: bold;
        color: @color !important;
        text-shadow: 1px 1px 10px @shadow;
    }

    .p-nav .p-navEl-link[data-nav-id="@{canvas-id}"]
    {
        font-weight: bold;
        color: @color !important;
        text-shadow: 1px 1px 10px @shadow;
    }

    .p-nav .p-navEl-link[data-nav-id="@{canvas-id}"]:before
    {
        .m-faBase(@weight: 900);
        content: "\@{fa-uid}";
        margin-right: 6px;
        color: @color !important;
    }
}

.canvas-style(@canvas-id; @color; @fa-uid; @shadow: @color; @bg: false) when not (@bg = false)
{
    .offCanvasMenu-link[data-nav-id="@{canvas-id}"]:before
    {
        .m-faBase(@weight: 900);
        content: "\@{fa-uid}";
        margin-right: 3px;
        color: transparent;
        background-image: url("@{bg}");
        -webkit-background-clip: text;
        background-clip: text;
        text-shadow: none;
    }

    .offCanvasMenu-link[data-nav-id="@{canvas-id}"]
    {
        font-weight: bold;
        color: transparent !important;
        background-image: url("@{bg}");
        -webkit-background-clip: text;
        background-clip: text;
        text-shadow: none;
    }

    .p-nav .p-navEl-link[data-nav-id="@{canvas-id}"]
    {
        font-weight: bold;
        color: transparent !important;
        background-image: url("@{bg}");
        -webkit-background-clip: text;
        background-clip: text;
        text-shadow: none;
    }

    .p-nav .p-navEl-link[data-nav-id="@{canvas-id}"]:before
    {
        .m-faBase(@weight: 900);
        content: "\@{fa-uid}";
        margin-right: 6px;
        color: transparent;
        background-image: url("@{bg}");
        -webkit-background-clip: text;
        background-clip: text;
        text-shadow: none;
    }

    .p-nav .p-navEl-link[data-nav-id="@{canvas-id}"] + .p-navEl-splitTrigger
    {
        color: transparent !important;
        background-image: url("@{bg}");
        -webkit-background-clip: text;
        background-clip: text;
        text-shadow: none;
    }
}

.canvas-style(home; white; f015);
.canvas-style(forums; #ff8e00; f15b);
.canvas-style(whatsNew; #54ff9f; f466);
.canvas-style(members; #fff; f466; #fff; "https://media3.giphy.com/media/xThuWcaa4U4XZQDgvm/giphy.gif");

Если помог решение + реакцию плз
 
Фев
50
6
Пользователь
В extra.less

Код:
@serviceBg: @xf-contentBg;
@serviceCardBg: #1a1f21;
@serviceBorder: #2a2f31;
@serviceText: #ccc;
@serviceMuted: #999;
@serviceNote: #777;
@serviceTitleColor: #ffeb38;
@serviceTitleLine: #ffaf38;
@serviceCyan: #38e1ff;
@servicePurple: #cf31ff;
@servicePurpleBadge: #c300ff;
@serviceGreen: #00aa55;
@serviceOrange: #ffaf38;
@serviceSaleGreen: #00ff88;
@serviceDanger: #ff3333;

.serviceShop
{
    padding: 0 10px;
    margin: 30px 0;

    &__container
    {
        max-width: 1100px;
        margin: 0 auto;
    }

    &__title
    {
        text-align: center;
        font-size: 26px;
        margin: 0 0 25px;
        font-weight: 700;
        letter-spacing: 0.5px;
        position: relative;
        display: inline-block;
        left: 50%;
        transform: translateX(-50%);
        padding: 0 20px;
        color: @serviceTitleColor;
    }

    &__titleText
    {
        background: @serviceBg;
        padding: 0 15px;
    }

    &__titleLine
    {
        display: block;
        height: 3px;
        margin-top: 5px;
        background: linear-gradient(90deg, transparent, @serviceTitleLine, transparent);
    }

    &__grid
    {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }

    &__section
    {
        max-width: 1000px;
        margin: 30px auto;
        padding: 0 15px;
       
        &:first-of-type
        {
            margin-top: 40px;
        }
    }
}

.serviceCard
{
    background: @serviceCardBg;
    border: 2px solid @serviceBorder;
    border-radius: 12px;
    padding: 18px;
    position: relative;
    overflow: hidden;
    transition: box-shadow .2s, border-color .2s;
   
    &:hover
    {
        border-color: #3a3f41;
        box-shadow: 0 5px 15px rgba(0,0,0,.3);
    }

    &--cyan
    {
        border-color: @serviceCyan;
    }
   
    &--purple
    {
        border-color: @servicePurpleBadge;
    }
   
    &--green
    {
        border-color: @serviceGreen;
    }
   
    &--orange
    {
        border-color: @serviceOrange;
    }

    &__badge
    {
        position: absolute;
        top: 0;
        left: 0;
        padding: 5px 12px;
        font-size: 12px;
        font-weight: 700;
        border-radius: 0 0 8px 0;
        color: #fff;
        background: @serviceBorder;
       
        .serviceCard--cyan &
        {
            background: @serviceCyan;
        }
        .serviceCard--purple &
        {
            background: @servicePurpleBadge;
        }
        .serviceCard--green &
        {
            background: @serviceGreen;
        }
        .serviceCard--orange &
        {
            background: @serviceOrange;
        }
        &--darkText
        {
            color: #000;
        }
    }

    &__head
    {
        text-align: center;
        padding: 10px;
        margin-bottom: 15px;
        position: relative;
    }

    &__headGlow
    {
        position: absolute;
        inset: 0;
        opacity: .3;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);

        .serviceCard--cyan &
        {
            background: linear-gradient(90deg, transparent, fade(@serviceCyan, 10%), transparent);
        }
        .serviceCard--purple &
        {
            background: linear-gradient(90deg, transparent, fade(@servicePurpleBadge, 10%), transparent);
        }
        .serviceCard--green &
        {
            background: linear-gradient(90deg, transparent, fade(@serviceGreen, 10%), transparent);
        }
        .serviceCard--orange &
        {
            background: linear-gradient(90deg, transparent, fade(@serviceOrange, 10%), transparent);
        }
    }

    &__name
    {
        margin: 0;
        font-size: 20px;
        font-weight: 700;
        position: relative;

        .serviceCard--cyan &
        {
            color: @serviceCyan;
        }
        .serviceCard--purple &
        {
            color: @servicePurple;
        }
        .serviceCard--green &
        {
            color: @serviceSaleGreen;
        }
        .serviceCard--orange &
        {
            color: @serviceOrange;
        }
    }

    &__nameGlow
    {
        text-shadow: 0 0 10px rgba(255,255,255,.15);

        .serviceCard--cyan &
        {
            text-shadow: 0 0 10px @serviceCyan;
        }
       
        .serviceCard--purple &
        {
            text-shadow: 0 0 10px fade(@servicePurple, 50%);
        }
       
        .serviceCard--green &
        {
            text-shadow: 0 0 10px fade(@serviceSaleGreen, 50%);
        }
       
        .serviceCard--orange &
        {
            text-shadow: 0 0 10px fade(@serviceOrange, 50%);
        }
    }

    &__meta
    {
        margin-top: 5px;
    }

    &__tag
    {
        display: inline-block;
        padding: 3px 10px;
        border-radius: 12px;
        font-size: 13px;
        color: #fff;
        border: 1px solid fade(#fff, 15%);
        background: rgba(255,255,255,.06);

        &--cyan
        {
            background: fade(@serviceCyan, 20%);
            border-color: fade(@serviceCyan, 40%);
        }
       
        &--purple
        {
            background: fade(@servicePurple, 20%);
            border-color: fade(@servicePurple, 30%);
        }
       
        &--green
        {
            background: fade(@serviceSaleGreen, 20%);
            border-color: fade(@serviceSaleGreen, 30%);
        }
       
        &--orange
        {
            background: fade(@serviceOrange, 20%);
            border-color: fade(@serviceOrange, 30%);
        }
    }

    &__features
    {
        margin-bottom: 20px;
    }

    &__feature
    {
        display: flex;
        align-items: flex-start;
        margin-bottom: 8px;

        &:last-child
        {
            margin-bottom: 0;
        }
    }

    &__check
    {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        margin-right: 10px;
        flex-shrink: 0;
        color: #fff;

        .serviceCard--cyan &
        {
            background: @serviceCyan;
        }
       
        .serviceCard--purple &
        {
            background: @servicePurple;
        }
       
        .serviceCard--green &
        {
            background: @serviceGreen;
        }
       
        .serviceCard--orange &
        {
            background: @serviceOrange;
        }

        &--darkText
        {
            color: #000;
        }
    }

    &__featureText
    {
        color: @serviceText;
        font-size: 14px;
    }

    &__highlight
    {
        padding: 10px;
        border-radius: 6px;
        margin-bottom: 15px;
        text-align: center;
        font-size: 13px;

        &--purple
        {
            color: @servicePurple;
            background: fade(@servicePurple, 10%);
            border: 1px solid fade(@servicePurple, 20%);
        }
    }

    &__price
    {
        background: fade(#282d2f, 80%);
        padding: 12px;
        border-radius: 8px;
        margin-bottom: 15px;
        border: 1px solid @serviceBorder;
    }

    &__priceRow
    {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    &__oldPrice
    {
        color: #888;
        font-size: 13px;
        text-decoration: line-through;
        margin-bottom: 2px;
    }

    &__newPrice
    {
        color: @serviceSaleGreen;
        font-size: 24px;
        font-weight: 700;
    }

    &__discount
    {
        background: @serviceDanger;
        color: #fff;
        padding: 3px 8px;
        border-radius: 4px;
        font-size: 12px;
        font-weight: 700;
    }

    &__note
    {
        color: @serviceNote;
        font-size: 12px;
        margin-top: 5px;
        text-align: center;
    }

    &__buy.button
    {
        width: 100%;
        border: none;
        padding: 12px;
        border-radius: 6px;
        cursor: pointer;
        font-size: 15px;
        font-weight: 700;
        position: relative;
        overflow: hidden;
        color: #fff;
        background: @serviceBorder;
        transition: filter .2s;

        &:hover
        {
            filter: brightness(1.1);
        }

        &.serviceCard__buy--cyan
        {
            background: @serviceCyan;
           
            &:hover
            {
                background-color: @serviceCyan;
            }
        }
        &.serviceCard__buy--purple
        {
            background: @servicePurple;
           
            &:hover
            {
                background-color: @servicePurple;
            }
        }
        &.serviceCard__buy--green
        {
            background: @serviceGreen;
           
            &:hover
            {
                background-color: @serviceGreen;
            }
        }
        &.serviceCard__buy--orange
        {
            background: @serviceOrange;
           
            &:hover
            {
                background-color: @serviceOrange;
            }
        }

        &--darkText
        {
            color: #000;
        }
    }

    &__buyText
    {
        position: relative;
        z-index: 1;
    }

    &__buyShine
    {
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
        transition: left .5s;
    }

    &__buy:hover &__buyShine
    {
        left: 100%;
    }

    &__buyShine--strong
    {
        background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
    }
}

.serviceNotice
{
    border: 2px solid @serviceDanger;
    border-radius: 8px;
    padding: 20px;
    position: relative;
    background: fade(@serviceDanger, 5%);

    &__label
    {
        position: absolute;
        top: -12px;
        left: 20px;
        background: @serviceDanger;
        color: #fff;
        padding: 4px 15px;
        border-radius: 4px;
        font-size: 13px;
        font-weight: 700;
    }

    &__lead
    {
        margin-top: 10px;
        color: #ff6666;
        font-size: 15px;
        font-weight: 700;
        text-align: center;
        margin-bottom: 10px;
    }

    &__text
    {
        color: #bbb;
        font-size: 14px;
        line-height: 1.5;
    }

    &__list
    {
        margin: 10px 0 0 20px;
        color: @serviceMuted;
    }
}

.serviceCommands
{
    background: @serviceCardBg;
    border: 1px solid @serviceBorder;
    border-radius: 8px;
    padding: 15px;

    &__title
    {
        color: @serviceOrange;
        font-size: 16px;
        margin-bottom: 15px;
        font-weight: 700;
        text-align: center;
    }

    &__grid
            {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 10px;
    }

    &__item
    {
        padding: 10px;
        border-radius: 6px;
        border: 1px solid fade(#fff, 10%);
        background: rgba(255,255,255,.03);

        &--cyan
        {
            background: fade(@serviceCyan, 10%);
            border-color: fade(@serviceCyan, 30%);
        }
        &--purple
        {
            background: fade(@servicePurpleBadge, 10%);
            border-color: fade(@servicePurpleBadge, 30%);
        }
        &--green
        {
            background: fade(@serviceGreen, 10%);
            border-color: fade(@serviceGreen, 30%);
        }
        &--orange
        {
            background: fade(@serviceOrange, 10%);
            border-color: fade(@serviceOrange, 30%);
        }
    }

    &__label
    {
        font-size: 13px;
        margin-bottom: 5px;
        color: #aaf9ff;

        .serviceCommands__item--purple &
        {
            color: #ebaaff;
        }
        .serviceCommands__item--green &
        {
            color: #40f8a2;
        }
        .serviceCommands__item--orange &
        {
            color: #ffe0b3;
        }
    }

    &__code
    {
        display: inline-block;
        font-size: 16px;
        font-weight: 700;
        font-family: "Courier New", monospace;

        .serviceCommands__item--cyan &
        {
            color: @serviceCyan;
        }
        .serviceCommands__item--purple &
        {
            color: @servicePurple;
        }
        .serviceCommands__item--green &
        {
            color: @serviceGreen;
        }
        .serviceCommands__item--orange &
        {
            color: @serviceOrange;
        }
    }
}

@media (max-width: @xf-responsiveMedium)
{
    .serviceShop__grid
    {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}
.canvas-style(@canvas-id; @color; @fa-uid; @shadow: @color; @bg: false) when (@bg = false)
{
    .offCanvasMenu-link[data-nav-id="@{canvas-id}"]:before
    {
        .m-faBase(@weight: 900);
        content: "\@{fa-uid}";
        margin-right: 3px;
        color: @color;
    }

    .offCanvasMenu-link[data-nav-id="@{canvas-id}"]
    {
        font-weight: bold;
        color: @color !important;
        text-shadow: 1px 1px 10px @shadow;
    }

    .p-nav .p-navEl-link[data-nav-id="@{canvas-id}"]
    {
        font-weight: bold;
        color: @color !important;
        text-shadow: 1px 1px 10px @shadow;
    }

    .p-nav .p-navEl-link[data-nav-id="@{canvas-id}"]:before
    {
        .m-faBase(@weight: 900);
        content: "\@{fa-uid}";
        margin-right: 6px;
        color: @color !important;
    }
}

.canvas-style(@canvas-id; @color; @fa-uid; @shadow: @color; @bg: false) when not (@bg = false)
{
    .offCanvasMenu-link[data-nav-id="@{canvas-id}"]:before
    {
        .m-faBase(@weight: 900);
        content: "\@{fa-uid}";
        margin-right: 3px;
        color: transparent;
        background-image: url("@{bg}");
        -webkit-background-clip: text;
        background-clip: text;
        text-shadow: none;
    }

    .offCanvasMenu-link[data-nav-id="@{canvas-id}"]
    {
        font-weight: bold;
        color: transparent !important;
        background-image: url("@{bg}");
        -webkit-background-clip: text;
        background-clip: text;
        text-shadow: none;
    }

    .p-nav .p-navEl-link[data-nav-id="@{canvas-id}"]
    {
        font-weight: bold;
        color: transparent !important;
        background-image: url("@{bg}");
        -webkit-background-clip: text;
        background-clip: text;
        text-shadow: none;
    }

    .p-nav .p-navEl-link[data-nav-id="@{canvas-id}"]:before
    {
        .m-faBase(@weight: 900);
        content: "\@{fa-uid}";
        margin-right: 6px;
        color: transparent;
        background-image: url("@{bg}");
        -webkit-background-clip: text;
        background-clip: text;
        text-shadow: none;
    }

    .p-nav .p-navEl-link[data-nav-id="@{canvas-id}"] + .p-navEl-splitTrigger
    {
        color: transparent !important;
        background-image: url("@{bg}");
        -webkit-background-clip: text;
        background-clip: text;
        text-shadow: none;
    }
}

.canvas-style(home; white; f015);
.canvas-style(forums; #ff8e00; f15b);
.canvas-style(whatsNew; #54ff9f; f466);
.canvas-style(members; #fff; f466; #fff; "https://media3.giphy.com/media/xThuWcaa4U4XZQDgvm/giphy.gif");

Если помог решение + реакцию плз
Братан а ты уверен то что это не к магазину форума
 
Осуждён за гениальность или проклят за талант?
Сен
363
414
Пользователь
Осуждён за гениальность или проклят за талант?
Сен
363
414
Пользователь
Осуждён за гениальность или проклят за талант?
Сен
363
414
Пользователь
Июн
2,756
2,012
Редактор
Сверху