Comments (3)
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.
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.
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)
- Improve the "alt" content for images HOT 1
- Error with secondpass < 1 HOT 2
- Demo files - this repo or another one? HOT 2
- Add `audio` instance? HOT 1
- json="escape" missing into tag
- Consider including CSS for Dark Mode HOT 3
- iOS Shrink to fit HOT 2
- Remove reliance on Google Fonts HOT 2
- Google Fonts in `popup_comments` and mockups HOT 1
- Canonical links HOT 12
- Convert navigation from float to flex
- Google Lighthouse reporting
- Consider a `4.9.x` branch HOT 3
- Offer the 'Zero' theme for download HOT 1
- Tag error into the latest default theme HOT 3
- favicon HOT 2
- Logical positioning to the 'older' page link HOT 1
- "Second pass < 1" error HOT 8
- Dark Mode support
- Fix stylelint in build
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from textpattern-default-theme.