Сборки серверов

СливПлатные

Сейчас онлайн

  • FieryLindu
  • vladlis2018
  • Matnes
  • arbuz.enjoyer
  • Testivich
  • ThangMC2374
  • RightTwix
  • Pjaknic
  • igormisailov201521
  • MrTetyong
  • Levvixxx
  • RazeHvH
  • kfajsdfkj
  • wersize
  • логм
  • isworldrakirk
  • Svyat0slaff
  • fenny013
  • koferdoss
  • mrtaiirwhite
  • Oboltus
  • Raejy
  • ANR2
  • MrYArg1cH
  • immimimim
  • Inkeri
  • Visors
  • Top_4ik
  • Gubin
  • Mrak
  • finsolence
  • filixfly
  • KsandreMurr
  • Maavedal
  • Den29
  • DarkTok
  • muuuioi
  • W1NTER_
  • disaxgoden
  • egor110278
  • Ko29yandeu
  • madora
  • espada
  • Veddlins
  • denzzzb
  • EmirSnrs
  • SetroXX
  • artemgarikinn
  • rozanYT123
  • Howertt
  • wfwfaefaefasf
  • helloimanuttle
  • Morgart
  • ken111
  • sixact
  • qbao1702
  • Rekha
  • AmirWow163s
  • MonaLisa
  • Bogdanua
  • Cyclexterminated
  • Hivi
  • saki4nn__bb
  • Kakapin
  • QuxMoon
  • SusBruh
  • Iralion02
  • w0kz
  • CharlyHP
  • anft
  • Omid_Raider
  • sdifjsdio
  • faxrate
  • amarbarwary10
  • DenchikRox
  • MrNeyer228
  • galacticw
  • ццацфавыфв
  • FlickG870
  • Mr. Stranger
  • Jimin Gordon
  • MisetJonsan
  • evgen48
  • tony56734
  • uhartemka
  • PabloStanfford
  • Foxneosha
  • Kont
  • hotade8613
  • stafmee
  • Kira_Dvizh
  • THESeeT
  • Darklol36
  • bla1zy
  • gurammak123
  • Fong
  • Nxcht
  • NightExpress
...и ещё 6.

Инструкция Префиксы тем с иконками в Xenforo

  • Автор темыBlack_Dragon
  • Дата начала
Smith_studio
Screenshot 20240610 125832help только текст и все, может я что-то сделал? Закинул 2 кода в один код extra less типо .svgLabelPrefix(important, rgb(198,40,40), f06a); я поставил после трех }, получился такой код:
extra.less:
@svgPrefixBorderRadius: @xf-borderRadiusSmall; // Радиус префиксов
@svgPrefixFontFamily: inherit;                 // Семейство шрифта префикса
@svgPrefixColorGradient: rgba(0,0,0,.4);       // Цвет градиента прификса
@svgPrefixTextShadow: rgba(0,0,0,.5);          // Цвет тени префикса

.svgLabelPrefix(@prefix-name, @prefix-color, @prefix-icon: "none") {
    .svgPrefix, .label.svgPrefix {
        font-family: @svgPrefixFontFamily;
        font-size: 70%;
        font-weight: 500;
        display: inline-flex;
        text-align: center;
        align-items: center;
        text-transform: uppercase;
        line-height: ((@xf-lineHeightDefault) * .9);
        padding: .25em .5em;
        border: none;
        border-radius: @svgPrefixBorderRadius;
        position: relative;
        white-space: nowrap;
        .fsp & {
            margin-right: 5px;
        }
        .menuPrefix& {
            display: inline-block;
            font-size: 1.3em;
            width: 100%;
            padding: .333em;
            a& {
                text-decoration: none;
            }
        }
        .p-title-value & {
            .p-title & {
                font-size: 70%;
            }
        }
        &:before {
            position: absolute;
            top: .25em;
            bottom: 0;
            left: .333em;
        }     
        &.@{prefix-name} {
            background: linear-gradient(135deg, @svgPrefixColorGradient 0%, @svgPrefixColorGradient 40%, transparent 40%, transparent 100%), @prefix-color;
            color: rgb(250,250,250);
            text-shadow: 1px 0 1px @svgPrefixTextShadow, 0 1px 1px @svgPrefixTextShadow, -1px 0 1px @svgPrefixTextShadow, 0 -1px 1px @svgPrefixTextShadow;
            &when (iskeyword(@prefix-icon)) {
                padding: .25em .5em .25em 1.75em;
                &:before {
                    .m-faBase();
                    content: "\@{prefix-icon}";
                }
            }
        }     
    }
}
.svgLabelPrefix(important, rgb(198,40,40), f06a);
 
Tihonya76

Круто

offtop
 
Scoutbusiness
я ничего не понял пж объясните
Должно быть вот так, тем кто не понял

CSS:
@svgPrefixBorderRadius: @xf-borderRadiusSmall; // Радиус префиксов
@svgPrefixFontFamily: inherit;                 // Семейство шрифта префикса
@svgPrefixColorGradient: rgba(0,0,0,.4);       // Цвет градиента прификса
@svgPrefixTextShadow: rgba(0,0,0,.5);          // Цвет тени префикса

.svgLabelPrefix(odobpon, rgb(4,255,0), f00c);
.svgLabelPrefix(raspon, rgb(4,255,0), f00c);
.svgLabelPrefix(rassmotpon, rgb(255,200,0), f251);
.svgLabelPrefix(vajpon, rgb(198,40,40), f06a);
.svgLabelPrefix(zakpon, rgb(198,40,40), f023);
.svgLabelPrefix(otkazpon, rgb(198,40,40), f057);
.svgLabelPrefix(otkpon, rgb(4,255,0), f3c1);
.svgLabelPrefix(pravpon, rgb(198,40,40), f06a);
.svgLabelPrefix(infopon, rgb(0,255,255), f129);

.svgLabelPrefix(@prefix-name, @prefix-color, @prefix-icon: "none") {
    .svgPrefix, .label.svgPrefix {
        font-family: @svgPrefixFontFamily;
        font-size: 70%;
        font-weight: 500;
        display: inline-flex;
        text-align: center;
        align-items: center;
        text-transform: uppercase;
        line-height: ((@xf-lineHeightDefault) * .9);
        padding: .25em .5em;
        border: none;
        border-radius: @svgPrefixBorderRadius;
        position: relative;
        white-space: nowrap;
        .fsp & {
            margin-right: 5px;
        }
        .menuPrefix& {
            display: inline-block;
            font-size: 1.3em;
            width: 100%;
            padding: .333em;
            a& {
                text-decoration: none;
            }
        }
        .p-title-value & {
            .p-title & {
                font-size: 70%;
            }
        }
        &:before {
            position: absolute;
            top: .25em;
            bottom: 0;
            left: .333em;
        }     
        &.@{prefix-name} {
            background: linear-gradient(135deg, @svgPrefixColorGradient 0%, @svgPrefixColorGradient 40%, transparent 40%, transparent 100%), @prefix-color;
            color: rgb(250,250,250);
            text-shadow: 1px 0 1px @svgPrefixTextShadow, 0 1px 1px @svgPrefixTextShadow, -1px 0 1px @svgPrefixTextShadow, 0 -1px 1px @svgPrefixTextShadow;
            &when (iskeyword(@prefix-icon)) {
                padding: .25em .5em .25em 1.75em;
                &:before {
                    .m-faBase();
                    content: "\@{prefix-icon}";
                }
            }
        }     
    }
}
 
Mark123ю
Добавляем в extra.less, лучше модификацией, объяснять не буду здесь и так все умные :)

Less:
@svgPrefixBorderRadius: @xf-borderRadiusSmall; // Радиус префиксов
@svgPrefixFontFamily: inherit;                 // Семейство шрифта префикса
@svgPrefixColorGradient: rgba(0,0,0,.4);       // Цвет градиента прификса
@svgPrefixTextShadow: rgba(0,0,0,.5);          // Цвет тени префикса

.svgLabelPrefix(@prefix-name, @prefix-color, @prefix-icon: "none") {
    .svgPrefix, .label.svgPrefix {
        font-family: @svgPrefixFontFamily;
        font-size: 70%;
        font-weight: 500;
        display: inline-flex;
        text-align: center;
        align-items: center;
        text-transform: uppercase;
        line-height: ((@xf-lineHeightDefault) * .9);
        padding: .25em .5em;
        border: none;
        border-radius: @svgPrefixBorderRadius;
        position: relative;
        white-space: nowrap;
        .fsp & {
            margin-right: 5px;
        }
        .menuPrefix& {
            display: inline-block;
            font-size: 1.3em;
            width: 100%;
            padding: .333em;
            a& {
                text-decoration: none;
            }
        }
        .p-title-value & {
            .p-title & {
                font-size: 70%;
            }
        }
        &:before {
            position: absolute;
            top: .25em;
            bottom: 0;
            left: .333em;
        }    
        &.@{prefix-name} {
            background: linear-gradient(135deg, @svgPrefixColorGradient 0%, @svgPrefixColorGradient 40%, transparent 40%, transparent 100%), @prefix-color;
            color: rgb(250,250,250);
            text-shadow: 1px 0 1px @svgPrefixTextShadow, 0 1px 1px @svgPrefixTextShadow, -1px 0 1px @svgPrefixTextShadow, 0 -1px 1px @svgPrefixTextShadow;
            &when (iskeyword(@prefix-icon)) {
                padding: .25em .5em .25em 1.75em;
                &:before {
                    .m-faBase();
                    content: "\@{prefix-icon}";
                }
            }
        }    
    }
}
Потом, делаем префиксы по примеры
Less:
.svgLabelPrefix(important, rgb(198,40,40), f06a);
Где important - название префикса, rgb(198,40,40) - основной цвет префикса, f06a - иконка префикса (можно не указывать)
В настройках префикса указываем свой класс svgPrefix important
А это куда вставлять
.svgLabelPrefix(important, rgb(198,40,40), f06a);
 
ВерхНиз