opensource-socialnetwork / opensource-socialnetwork

Open Source Social Network (OSSN) is a social networking software written in PHP. It allows you to make a social networking website and helps your members build social relationships, with people who share similar professional or personal interests. It is available in 17 international languages.
https://www.opensource-socialnetwork.org
Other
1.08k stars 517 forks source link

Theming #433

Closed WASasquatch closed 9 years ago

WASasquatch commented 9 years ago

Why is it I have a default.php theme file, yet changing something as simple as the background color is overwritten by a inline background

_default.php_

body {
font-size: 11px;
font-family:"lucida grande",tahoma,verdana,arial,sans-serif;
color: #333;
background: url(<?php echo ossn_site_url(); ?>themes/ossnblack/images/background.jpg) no-repeat center center fixed; 
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}

Overwritten somewhere inline on line 113

 body {
        background: #FDFDFD;
    } 

Sorta defeats the whole purpose of the theme.

lianglee commented 9 years ago

See: themes/default/page/layout/contents.php

lianglee commented 9 years ago

Ossn theme css files are dynamic, you can override the body color by adding code below in default.php :

body {
  background: newhex !important; 
}
WASasquatch commented 9 years ago

That CSS is in default.php It's overwrited by inline code. Maybe in layout/contents.php but that is silly. It should be a container and themed in default.php IE #wall-container {}

lianglee commented 9 years ago

@WASasquatch, i agree, that should be in default.php, we are working on new theme and that inline code will be removed from it.