diff options
author | friendica <info@friendica.com> | 2013-02-07 19:23:21 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-02-07 19:23:21 -0800 |
commit | 9096e4c8e32bc48f0f59cda57a0f8e29326d0dd0 (patch) | |
tree | 963bbdfb57c25acd01529ebf93abc2f6f1013258 /view | |
parent | 82ed07baa14690611835b2e9becfb3330396c581 (diff) | |
download | volse-hubzilla-9096e4c8e32bc48f0f59cda57a0f8e29326d0dd0.tar.gz volse-hubzilla-9096e4c8e32bc48f0f59cda57a0f8e29326d0dd0.tar.bz2 volse-hubzilla-9096e4c8e32bc48f0f59cda57a0f8e29326d0dd0.zip |
make pcss work (really this time)
Diffstat (limited to 'view')
-rw-r--r-- | view/theme/redbasic/php/style.php | 75 |
1 files changed, 11 insertions, 64 deletions
diff --git a/view/theme/redbasic/php/style.php b/view/theme/redbasic/php/style.php index f2bc8e500..99ad06c55 100644 --- a/view/theme/redbasic/php/style.php +++ b/view/theme/redbasic/php/style.php @@ -28,72 +28,19 @@ if ($colour === false) { $colour = $site_colour; } + if($colour === false) { $colour = "light"; - - - if (file_exists("$THEMEPATH/css/style.css")) { - echo file_get_contents("$THEMEPATH/css/style.css"); - } + } + if(file_exists('view/theme/' . current_theme() . '/css/style.css')) { + echo file_get_contents('view/theme/' . current_theme() . '/css/style.css'); + } + echo "\r\n"; - if($redbasic_font_size == "16") { - echo ".wall-item-content { - font-size: 16px; - }"; - } - if($redbasic_font_size == "15") { - echo ".wall-item-content { - font-size: 15px; - }"; - } - if($redbasic_font_size == "14") { - echo ".wall-item-content { - font-size: 14px; - }"; - } - if($redbasic_font_size == "13.5") { - echo ".wall-item-content { - font-size: 13.5px; - }"; - } - if($redbasic_font_size == "13") { - echo ".wall-item-content { - font-size: 13px; - }"; - } - if($redbasic_font_size == "12.5") { - echo ".wall-item-content { - font-size: 12.5px; - }"; - } - if($redbasic_font_size == "12") { - echo ".wall-item-content { - font-size: 12px; - }"; - } - if($line_height == "1.5") { - echo ".wall-item-content { - line-height: 1.5; - }"; - } - if($line_height == "1.4") { - echo ".wall-item-content { - line-height: 1.4; - }"; - } - if($line_height == "1.3") { - echo ".wall-item-content { - line-height: 1.3; - }"; - } - if($line_height == "1.2") { - echo ".wall-item-content { - line-height: 1.2; - }"; - } - if($line_height == "1.1") { - echo ".wall-item-content { - line-height: 1.1; - }"; + if(($redbasic_font_size >= 10.0) && ($redbasic_font_size <= 16.0)) { + echo ".wall-item-content { font-size: $redbasic_font_size; }\r\n"; } + if(($line_height >= 1.0) && ($line_height <= 1.5)) { + echo ".wall-item-content { line-height: $line_height; }\r\n"; + } |