CSS upgrade problems

CSS upgrade problems

by Matthew Harris -
Number of replies: 14
Hi

having recently upgraded, our moodle has problems styling a few element on the homepage, I've copied over the same stylesheet from the previous version, but it still doesnt look right:

http://vle.halesowen.ac.uk/moodletest/index.php

The <Li> tag doesnt seem to pick up any style, can anyone help?

Thankyou
Average of ratings: -
In reply to Matthew Harris

Re: CSS upgrade problems

by Mauno Korpelainen -

You had already fixed it (IE was fine and Firefox fixed)

Did you add $THEME->standardsheets = array('styles_layout');
to your theme config.php or did you add something like

ul.list, ul.list li, ol.list, ol.list li {
  list-style-type:none;
  padding:0%;
  margin:0%;
  text-indent:0%;
}

to one of your css files?

Did you notice "You are here" boxes?

Attachment youare.gif
In reply to Mauno Korpelainen

Re: CSS upgrade problems

by Matthew Harris -
Hi thanks for your reply, yes I'm playing around with the layout css, seems to be looking better.

Any ideas how I can ditch the space on the block headers? I cant seem to find out how theyre styled.

Thankyou


In reply to Matthew Harris

Re: CSS upgrade problems

by Matthew Harris -
Can anyone help with this?

Its really werid. When I delete my Css files, and browse to the site, all the styles are kept? It looks like the styles are being picked up from somewhere else.

Can anyone please help?

Im using the formal white theme.

Thanks
In reply to Matthew Harris

Re: CSS upgrade problems

by Mauno Korpelainen -

Matthew,

missing styles are picked from Standard theme style sheets...this could help:

http://docs.moodle.org/en/Theme_basics

In reply to Mauno Korpelainen

Re: CSS upgrade problems

by Matthew Harris -
Thanks again for your reply.

I still cant seem to find out where its pulling the styles from, here is the code in my config.php? Could you please advise? Thankyou

$THEME->sheets = array('fw_layout','fw_color','fw_fonts');
$THEME->standardsheets = false;
$THEME->standardsheets = '';
$THEME->parentsheets = false;
$THEME->modsheets = true;
$THEME->blocksheets = true;
$THEME->langsheets = false;
In reply to Matthew Harris

Re: CSS upgrade problems

by Mauno Korpelainen -

Could it be this row after $THEME->standardsheets = false;

$THEME->standardsheets = '';

When true or NON-EXISTENT, then ALL standard files are used

...and if some style is not at all defined I guess it is taken from browser default style. If you look at source code you should find id or class of those styles (div, table...) that have strange css.

In reply to Mauno Korpelainen

Re: CSS upgrade problems

by Matthew Harris -
Thanks again for your reply.

Is there a line of code I could use to see the path to the styles used? I could then track down why its not working properly.

Thankyou
In reply to Matthew Harris

Re: CSS upgrade problems

by Mauno Korpelainen -

Have you tried a code like

.sideblock .header {
  height: 25px;
}

In reply to Mauno Korpelainen

Re: CSS upgrade problems

by Matthew Harris -
Thanks for all your help.

There a quite a few issues with my custom theme not working.

I have gone into the admin pages and tried to select a theme, however, there are no themes present. It just asks me if I want to create a new theme.

Do you know why non of my themes are showing?

Thanks again.


In reply to Matthew Harris

Re: CSS upgrade problems

by Mauno Korpelainen -

Usually you need to give a little more permissions to your theme folders/files (folders 755 and files 644) and you could also edit readme.html

In reply to Mauno Korpelainen

Re: CSS upgrade problems

by Matthew Harris -
Thanks I will try that.

What do you mean by edit readme.html?

Thankyou
In reply to Matthew Harris

Re: CSS upgrade problems

by Matthew Harris -
I've copied the standard theme, renamed it, changed the name in the readme file, and still cant see any themes in the theme selector.

I'm out of ideas, anyone?

sadsadsadsadsadsadsadsadsadsadsadsadsadsadsadsadsadsadsadsadsadsadsadsadsad
In reply to Matthew Harris

Re: CSS upgrade problems

by Mauno Korpelainen -

Matthew,

How did you upload your theme? If you have given all users permission to read your theme folder and files theme should be visible in theme selector.

The only other reason I could find is that you have edited theme config.php so that there are some extra signs. Did you use notepad? There should be nothing after last ?> (like in config.php of main folder)

How did you select the first formal white theme? (It is not the default theme of moodle) Do you still have Standard theme left?

In reply to Mauno Korpelainen

Re: CSS upgrade problems

by Matthew Harris -
Hi Mauno,

I just copied it across, straight to the windows 2003 server.

I use Deamweaver, I've seen a couple of files where there has been whitespace, I've deleted that using notepad.

I'll try copying over the theme folder again, see if that makes a difference.

Thanks again