This commit is contained in:
ICabaleiro 2020-05-04 14:02:51 +01:00
parent 4ab0680593
commit a23deddcfe
3 changed files with 1211 additions and 0 deletions

View file

@ -14,6 +14,14 @@ body {
/*font-family: "Open Sans",sans-serif;*/
}
/* Main background */
#custom-css .sub-header-container{
background-position: center top;
background-size: cover;
background-repeat: repeat;
background-attachment: fixed;
}
#custom-css #search-video{
background: var(--mainBackgroundColor) !important;
}

View file

@ -4,6 +4,7 @@ function register ({ registerHook, peertubeHelpers }) {
const filterUrl = baseStaticUrl + '/images/filter_black.png';
const keyboardUrl = baseStaticUrl + '/images/keyboard_black.png';
const languagesUrl = baseStaticUrl + '/images/languages_black.png';
const backgroundUrl = baseStaticUrl + '/images/back_cube_lm.svg';
const image404 = baseStaticUrl + '/images/404.svg'
const style = document.createElement('style')
document.head.appendChild(style)
@ -24,6 +25,11 @@ function register ({ registerHook, peertubeHelpers }) {
rule+= " background-image: url('"+ keyboardUrl +"'); -webkit-filter: none; filter: none"
rule+= " } "
sheet.insertRule(rule, 0)
// Change background
rule = " #custom-css .sub-header-container{ "
rule+= " background-image: url('"+ backgroundUrl +"'); -webkit-filter: none; filter: none"
rule+= " } "
sheet.insertRule(rule, 0)
// STYLES END
/* ANGULAR NAVIGATION-END */

File diff suppressed because it is too large Load diff

After

Width:  |  Height:  |  Size: 59 KiB