Giter Site home page Giter Site logo

Comments (3)

philwareham avatar philwareham commented on August 16, 2024

Whilst on a production site I would not personally store CSS in the database (and I make that quite clear in the comments and readme), this is the default shipping theme for textpattern 4.5 and we will not polute the root directory with static files.

I also disagree with splitting the CSS into multiple files for media types, that is outdated methodology (files should be concatenated wherever possible to lessen http requests).

Thanks for the suggestions but I won't do either of these changes, sorry.

from textpattern-default-theme.

6aKa avatar 6aKa commented on August 16, 2024

By default TXP store css in database(txp_css table). For example, when you using "<txp:css format="link" media="" />" in html code you see "". Script css.php get compressed style from database and gives it to output. This output not cached by browser(good for theme developing).
In production useings direct link to css style such as "".
I propose make buildin css edition system more flexible only for developing by spliting, thats all.
As i mean users which not optimizing txp instalation don't care how many css style parts including.
And users who care optimization split css for parts to develope theme for diferent media types and collect for one static file.
I can't find any txp official recomendation or documents about organization css styles.

from textpattern-default-theme.

philwareham avatar philwareham commented on August 16, 2024

End users can split the CSS file into pieces if they wish to (or better still, can use the sass files from this GitHub repo), and the code is clearly commented to make that very easy. It won't be split for the default shipping theme though, we are keeping the database entries to an absolute minimum. Cheers.

from textpattern-default-theme.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.