Skip to content

[style] Best practices for styles, skins, and layouts #350

@Nemquae

Description

@Nemquae

Last update looks great, but there's an issue changing styles. I tried to use the new interface to change styles on a fresh install, and it immediately broke everything. I'm getting the error:

Error rendering: +*self+*style (head_stylesheet view) Error rendering: +*self+*style (decko_script_variables view)

Changing the skin back manually doesn't help, and when I tried to revert to the original version I get this error:

414 Request-URI Too Large

You can see the result here: http://ledgefoundation.org/

On a separate but related note, I'd like to know what the best practices are for changing styles. Was I wrong to try to change the style first thing? Are they not really ready yet? Particularly, I'd like to make cards with a very specific layout whenever they're displayed in open view (and ideally some changes to the header when they're closed). In the past, I used SCSS as style cards, but this is brittle, especially as layouts and labels keep changing. Would it be better to implement this as a mod? If so, how would I go about writing a mod to set strict layouts for cards of a certain type? I know that I can set a rule for all cards of that type, but as I said this can be fairly brittle so I'd like to know if there's a better way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions