Page 1 of 1

Serendipity 2.0.1 released

Posted: Thu Mar 12, 2015 8:55 pm
by garvinhicking

Re: Serendipity 2.0.1 released

Posted: Sat Mar 14, 2015 4:08 pm
by Timbalu
Version 2.0.1 brought in an automated include of a templates user.css file. If you don't want to use it any more (and you have one) you have to delete or rename it manually!

Also please note, that user stylesheet selectors like

Code: Select all

 .xxx { background-image: url(img/sunshine.jpg); }
now need to use the {TEMPLATE_PATH} like

Code: Select all

 .xxx { background-image: url({TEMPLATE_PATH}img/sunshine.jpg); }
in your user.css, since the content will be appended to the serendipity dynamic stylesheet.

Re: Serendipity 2.0.1 released

Posted: Sat Mar 14, 2015 11:26 pm
by Ygriega
This automatted include mechanism seems to have a small bug if you are using s9y in a subdirectory. I noticed it after upgrading my blog at http://www.ygriega.de/y (<- notice the 'y' subdirectory) to s9y 2.0.1 - my customized formatting was gone. :(

Workaround (if possible): Create the directory structure 'template/<template_name>' directly in the root folder of your webspace and place your user.css there. Afterwards, everything was back again. :)

@s9y dev team: As I registered only for reporting this bug, I would also like to thank you for your great work! Everything has been working smoothly for years now.

Re: Serendipity 2.0.1 released

Posted: Sun Mar 15, 2015 11:50 am
by garvinhicking
Hey,

thank you ygriega :) You have great pictures and reports on your blog, I'll definitely browse through it the next days!

(I must admit I never worked with custom user.css on my own, so I'm not sure how it worked before to place user.css in the root - but the way you indicate on where to place user.css is absolutely right, so thanks for appending :-))

Regards,
Garvin

Re: Serendipity 2.0.1 released

Posted: Sun Mar 15, 2015 12:01 pm
by Timbalu
garvinhicking wrote:You have great pictures and reports on your blog
Yes absolutly, I have to assist this! :)

Still strange though. What are your "Configuration" - "Path" option inputs saying?

Re: Serendipity 2.0.1 released

Posted: Sun Mar 15, 2015 12:24 pm
by yellowled
garvinhicking wrote:I must admit I never worked with custom user.css on my own, so I'm not sure how it worked before to place user.css in the root
Not sure I understand this correctly, but it was always supposed to be place in the theme's directory.

YL

Re: Serendipity 2.0.1 released

Posted: Sun Mar 15, 2015 1:18 pm
by MarioH
Another effect: Before this change if I checked the CSS with firebug or built-in firefox tool, I could see, which part of the CSS is from my user.css. Now, everything seems to come from serendipity.css. Not sure, if this is new with 2.0.1.

Regards
Mario

Re: Serendipity 2.0.1 released

Posted: Sun Mar 15, 2015 1:33 pm
by Timbalu
MarioH wrote:Now, everything seems to come from serendipity.css. Not sure, if this is new with 2.0.1.
Yes this is why I wrote:
user.css, since the content will be appended to the serendipity dynamic stylesheet.

Re: Serendipity 2.0.1 released

Posted: Sun Mar 15, 2015 2:06 pm
by yellowled
MarioH wrote:Before this change if I checked the CSS with firebug or built-in firefox tool, I could see, which part of the CSS is from my user.css. Now, everything seems to come from serendipity.css. Not sure, if this is new with 2.0.1.
Yes, it is. Here's why: Before, your user.css was a seperate reference to a CSS file. Now, it is included in the (dynamically generated) serendipity.css. The reason for doing this is that every CSS file (as well as every external JS file, for instance) is a seperate HTTP request, which is bad for performance.

You should actually still be able to tell which styles are part of your user.css at least in some cases. In your user.css, you will usually override styles from your theme's style.css. For instance, you might have changed the background-color of body. Any developer tool will list the styles in the reverse order in which they appear in the stylesheet (serendipity.css), and since the user.css is included after the theme's style.css (among others), it's styles will always show up first in the dev tools.

So if you have multiple instances of CSS rules for body listed in the dev tools, the first one will usually be the one that's part of your user.css.

YL

Re: Serendipity 2.0.1 released

Posted: Sun Mar 15, 2015 3:10 pm
by Ygriega
First, thanks for the feedback on my pictures. I really appreciate it. :)

My Configuration -> Path options seem to be OK. The absolute path contains the /y/ at the end and the relative path is exactly '/y/'. The relative template path is 'templates/' - but according to the documentation this is relative to the HTTP path. So I would say the automated user.css inclusion mechanism is ignoring these settings - or I have a strange combination here... Moreover, all the rest seems to be working smoothly (as always).

So as a summary, in 2.0.0 the user.css was working fine from /y/templates/2k11/user.css
In 2.0.1 this file is being ignored, I needed to copy it to /templates/2k11/user.css in order to make it work again. This is OK for now, but a little bit weird in the long run as I wanted to keep the blog-related stuff in this subdirectory.

Re: Serendipity 2.0.1 released

Posted: Mon Mar 16, 2015 8:16 am
by garvinhicking
Hey Ygriega,

that is really odd. The PHP code to fetch user.css is exactl tthe same like for the "style.css" file; so it should fetch both from the directory inside /y/...?!

Re: Serendipity 2.0.1 released

Posted: Tue Mar 17, 2015 11:35 am
by Dergln
Hi,

opposed to Ygriega it's working just fine for me, and I also have a subfolder installation.

http://dark-world.eu/s9y/

Did you customize a lot since you installed?
What is serendipity.css showing at the bottom? (Should be sth like "/* templates/2k11_dw/user.css */")