Customisation: различия между версиями

Материал из WiKi - UserSide
(Новая страница: «en | ru»)
 
([IronBot] Sync EN localization from RU)
 
(не показаны 3 промежуточные версии 2 участников)
Строка 1: Строка 1:
[[Customisation|en]] | [[Кастомизация|ru]]
'''en''' | [[Кастомізація|uk]] | [[Кастомизация|ru]]
 
The client can add custom JavaScript files to the system, add custom CSS styles, or override existing styles.
 
Use the following files for this:
 
For versions '''3.21 and later''':
 
/public/assets/js/client-custom.js
/public/assets/css/client-custom.css
 
For versions '''3.19-3.20''':
 
/public/main/js/user_script.js
/public/main/css/user_style.css
 
For versions '''earlier than 3.19''':
 
/userside3/main/js/user_script.js
/userside3/main/skins/user_style.css
 
If these files do not exist, create them. They are not overwritten during updates.
 
For version '''3.21 and later''', you can configure a custom logo on the login page:
 
body#login_page {
    --login-client-slot-width: 320px;
    --login-client-slot-gap: 28px;
    --login-client-logo-height: 96px;
    --login-client-slot-mobile-gap: 14px;
}
#login_page_client_logo {
    background-image: url('../picture/client-login-logo.svg');
}

Текущая версия от 18:03, 16 сентября 2026

en | uk | ru

The client can add custom JavaScript files to the system, add custom CSS styles, or override existing styles.

Use the following files for this:

For versions 3.21 and later:

/public/assets/js/client-custom.js
/public/assets/css/client-custom.css

For versions 3.19-3.20:

/public/main/js/user_script.js
/public/main/css/user_style.css

For versions earlier than 3.19:

/userside3/main/js/user_script.js
/userside3/main/skins/user_style.css

If these files do not exist, create them. They are not overwritten during updates.

For version 3.21 and later, you can configure a custom logo on the login page:

body#login_page {
   --login-client-slot-width: 320px;
   --login-client-slot-gap: 28px;
   --login-client-logo-height: 96px;
   --login-client-slot-mobile-gap: 14px;
}

#login_page_client_logo {
   background-image: url('../picture/client-login-logo.svg');
}