#381 more theming

open
nobody
None
1
2013-09-06
2013-09-05
Anonymous
No

Hi,

I whould like to add some CSS.
For example, i want to add:

body {
margin: 20px auto;
max-width: 1200px;
}

well, I can put this into mrbs.css.php but this is not update-safe.
Is there a posibility to have own CSS in my own theme directory?

thank you
nepf

Discussion

  • John Beranek

    John Beranek - 2013-09-05

    I think you're heading towards a good feature request - I think it would be good if MRBS honoured some kind of custom CSS file. Campbell? ;)

     
  • John Beranek

    John Beranek - 2013-09-05

    I guess it could be made most obvious/configurable by being a config variable that defines your custom CSS file, e.g.

    $custom_css_url = 'css/custom.css';

     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2013-09-05

    Good ideas. Implemented in Rev 2755.

    Campbell

     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2013-09-05

    Brilliant...not sure about the file_exists() call though - would that work if someone used an absolute or remote URL?

     
  • John Beranek

    John Beranek - 2013-09-05

    Doh, last post was me

     
  • Campbell Morrison

    Good point. I've removed the file_exists() call in Rev 2757. (I did just wonder whether it was worth checking for URL existence using fopen(), but concluded it wasn't. There'll be a 404 error in the browser console if the URL doesn't exist and also I suppose it's just possible - maybe - in some site network configurations that the server can't reach a remote URL but the client can).

    Campbell

     


Anonymous

Cancel  Add attachments