freenet/fred-staging — pull request #66 by Thynix (2011-11-24 01:46:53+00:00)
Title: Theme CSS Changes

This implements the FProxy CSS attribute changes requested by FreeStyle for the FreeStyle.Darknet theme.

* The current path is now appended to "page-" in an `id` on the `

`.
* The `fproxy-page` attribute on the `

` has been changed from an `id` to a `class`. None of the official themes reference this attribute.

* Fred `navlist` entries now have an `id` based on the localization key.
* Plugin `navlist` entires now have an `id` based on the localization key appended to the class name, separated by a dash.
* The `navlist-selected` attribute has been changed from an `id` to a `class`. The official themes are updated to reflect this.

All the dynamically defined attributes are subjected to a regex which replaces anything that is not an underscore, dash, or alphanumeric character with an underscore. Thanks and credit go to Bombe for this suggestion.