Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-pipeline
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
django-pipeline
Commits
81a0f176
Commit
81a0f176
authored
Jun 20, 2011
by
Timothée Peignier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add some docs about images and font embedding
parent
40a6bb96
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
docs/configuration.rst
+26
-0
No files found.
docs/configuration.rst
View file @
81a0f176
...
@@ -208,6 +208,32 @@ Other settings
...
@@ -208,6 +208,32 @@ Other settings
Defaults to ``"_.template"``
Defaults to ``"_.template"``
Embedding fonts and images
==========================
You can embed fonts and images directly in your compiled css, using Data-URI in
modern browser or MHTML in Internet Explorer 7 or below.
To do so, setup variant group options to the method you wish to use : ::
PIPELINE_CSS = {
'master': {
'source_filenames': (
'css/core.css',
'css/button/*.css',
),
'output_filename': 'css/master.css',
'variant': 'datauri',
},
}
Images and fonts are embedded following these rules :
- If asset is under **32 kilobytes** to avoid rendering delay or not rendering
at all in Internet Explorer 8.
- If asset path contains a directory named "**embed**".
Rewriting CSS urls
Rewriting CSS urls
==================
==================
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment