2012-11-01, 01:13 PM
Hi
Can someone explain me how one should handle CSS with myBB properly? I did some searching but no solid understanding has built one me.
I find strange that supposedly the way to work up a theme (if I'm wrong educate me please) it's to work on a ''cache'', usually synonimous for "temporary file subject to change without notice'. There should be one CSS file like "userstyles.css" where all the user changes would go.
Also I don't understand what css.php is. It wrangles all the styles from forum base, theme, plugins, etc and outputs them all as one, I don't individual css files loading which makes harder to trace the origin of the code?
My problem.
First. I installed a theme (Apart Flame) and edited it with my likings, by editing cache/theme3/global.css (for the record also changed global.php for this, and some templates and images.)
All fine I edited in Notepad++ saved, looked to the site updated. Cool.
But then today I started saving and nothing happens, plus long load time unlike before and my @font-faces failed to load.
So... for my amazement I deleted my global.css from cache and the site styling remain the same... So it's not my file doing it. What it? Where is it stored and how do I control it?
Then I ran it on gtmetrix: http://gtmetrix.com/reports/probiner.x10.mx/rKfbukQ3 and the it showed why my load times were so high now. As you can see in Timeline Tab in the bottom the @font-faces generate the lag. But I had deleted my css why is it still looking for them?... Anyway I noticed it was looking for them in the root of the forum, unlike before where was looking for them in the caches folder where I set them up. This other website tested at the same time shows the css looking for the fonts in the correct place: http://gtmetrix.com/reports/topowiki.x10.mx/cPlW4VpC
I managed to solve the slow down by just moving the fonts to where css is looking for them, the root, but I can't still edit the outcome of the css.
So...? Apparently my global.css code changed place and is "cached" somewhere else, and I don't know how to reach it. Why? Did I do something? What's the predictable behavior of css in mybb. How can I control this without losing my mind?
I so much wished there was a way I could control CSS from top down. Is there?
Thanks for reading.
Cheers.
probiner
myBB:1.608
Can someone explain me how one should handle CSS with myBB properly? I did some searching but no solid understanding has built one me.
I find strange that supposedly the way to work up a theme (if I'm wrong educate me please) it's to work on a ''cache'', usually synonimous for "temporary file subject to change without notice'. There should be one CSS file like "userstyles.css" where all the user changes would go.
Also I don't understand what css.php is. It wrangles all the styles from forum base, theme, plugins, etc and outputs them all as one, I don't individual css files loading which makes harder to trace the origin of the code?
My problem.
First. I installed a theme (Apart Flame) and edited it with my likings, by editing cache/theme3/global.css (for the record also changed global.php for this, and some templates and images.)
All fine I edited in Notepad++ saved, looked to the site updated. Cool.
But then today I started saving and nothing happens, plus long load time unlike before and my @font-faces failed to load.
So... for my amazement I deleted my global.css from cache and the site styling remain the same... So it's not my file doing it. What it? Where is it stored and how do I control it?
Then I ran it on gtmetrix: http://gtmetrix.com/reports/probiner.x10.mx/rKfbukQ3 and the it showed why my load times were so high now. As you can see in Timeline Tab in the bottom the @font-faces generate the lag. But I had deleted my css why is it still looking for them?... Anyway I noticed it was looking for them in the root of the forum, unlike before where was looking for them in the caches folder where I set them up. This other website tested at the same time shows the css looking for the fonts in the correct place: http://gtmetrix.com/reports/topowiki.x10.mx/cPlW4VpC
I managed to solve the slow down by just moving the fonts to where css is looking for them, the root, but I can't still edit the outcome of the css.
So...? Apparently my global.css code changed place and is "cached" somewhere else, and I don't know how to reach it. Why? Did I do something? What's the predictable behavior of css in mybb. How can I control this without losing my mind?
I so much wished there was a way I could control CSS from top down. Is there?
Thanks for reading.
Cheers.
probiner
myBB:1.608