To participate you must create an account on apostrophenow.org. If you have already done so, click Login.
- Timestamp:
- 07/27/10 16:16:09 (22 months ago)
- Author:
- johnnyoffline
- Message:
-
I continued to work with a namespaced reset style. It uses the class .a-ui to scope a partial reset. I also tried to create a logged-in/logged-out separation of the styles but there are pieces of styles needed for logged in and logged out in every separate stylesheet despite the breakdown. really considering a further re-write. Throwing everything out and starting from the ground up. haha psych. but this is really difficult. my previous fix with ticket #36 needed another tweak, needed to check if you could edit the slot at all in addition to if there is a page- see footer partial or the layout.php
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r1859
|
r1861
|
|
| 9 | 9 | { |
| 10 | 10 | $response = sfContext::getInstance()->getResponse(); |
| | 11 | $user = sfContext::getInstance()->getUser(); |
| 11 | 12 | |
| 12 | 13 | sfContext::getInstance()->getConfiguration()->loadHelpers( |
| … |
… |
|
| 17 | 18 | if (sfConfig::get('app_a_use_bundled_stylesheet', true)) |
| 18 | 19 | { |
| 19 | | $response->addStylesheet('/apostrophePlugin/css/a-reset.css'); |
| | 20 | |
| | 21 | // This could be used as a way to manage what styles are included when logged in / out. |
| | 22 | // But it really seems like we use pieces of every one of these when logged in and out. |
| | 23 | if ($user->isAuthenticated()) |
| | 24 | { |
| | 25 | $response->addStylesheet('/apostrophePlugin/css/a-reset.css'); |
| | 26 | } |
| | 27 | |
| 20 | 28 | $response->addStylesheet('/apostrophePlugin/css/a-utility.css'); |
| 21 | 29 | $response->addStylesheet('/apostrophePlugin/css/a-forms.css'); |
Download in other formats: