Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
Generate a jquery.mobile.theme.css for theme roller
Browse files Browse the repository at this point in the history
  • Loading branch information
gseguin committed Mar 1, 2012
1 parent 52fa17a commit d4a842d
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Makefile
Expand Up @@ -16,8 +16,10 @@ OUTPUT = compiled
# The name of the files
NAME = jquery.mobile
BASE_NAME = jquery.mobile
THEME_FILENAME = jquery.mobile.theme
STRUCTURE = jquery.mobile.structure
deploy: NAME = jquery.mobile-${VER_OFFICIAL}
deploy: THEME_FILENAME = jquery.mobile.theme-${VER_OFFICIAL}
deploy: STRUCTURE = jquery.mobile.structure-${VER_OFFICIAL}

# The CSS theme being used
Expand Down Expand Up @@ -77,7 +79,15 @@ css: init
-jar build/yuicompressor-2.4.6.jar \
--type css ${OUTPUT}/${STRUCTURE}.compiled.css >> ${OUTPUT}/${STRUCTURE}.min.css
@@rm ${OUTPUT}/${STRUCTURE}.compiled.css
# ..... and then copy in the images
# Build the theme only file
@@cat LICENSE-INFO.txt | ${VER} > ${OUTPUT}/${THEME_FILENAME}.css
@@cat css/themes/default/jquery.mobile.theme.css >> ${OUTPUT}/${THEME_FILENAME}.css
# ..... and then minify it
@@echo ${VER_MIN} > ${OUTPUT}/${THEME_FILENAME}.min.css
@@java -XX:ReservedCodeCacheSize=64m \
-jar build/yuicompressor-2.4.6.jar \
--type css ${OUTPUT}/${THEME_FILENAME}.css >> ${OUTPUT}/${THEME_FILENAME}.min.css
# Copy in the images
@@cp -R css/themes/${THEME}/images ${OUTPUT}/
# Css portion is complete.
# -------------------------------------------------
Expand Down

3 comments on commit d4a842d

@rbdcti
Copy link
Contributor

@rbdcti rbdcti commented on d4a842d Mar 1, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does this differ with jquery.mobile.structure.css?

@gseguin
Copy link
Contributor Author

@gseguin gseguin commented on d4a842d Mar 1, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jquery.mobile.theme.css is the actual default theme (swatches). This is for use by the Theme Roller.
jquery.mobile.theme.css + jquery.mobile.structure.css = jquery.mobile.css

@rbdcti
Copy link
Contributor

@rbdcti rbdcti commented on d4a842d Mar 1, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks for the clarification @gseguin

Please sign in to comment.