Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update from sass-twitter-bootstrap and fix asset-path patch and javascripts [Bootstrap 3] #368

Merged
merged 4 commits into from
May 31, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 19 additions & 15 deletions asseturl.patch
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
diff --git a/vendor/assets/stylesheets/_variables.scss b/vendor/assets/stylesheets/_variables.scss
index e29dc59..85f4d56 100644
--- a/vendor/assets/stylesheets/_variables.scss
+++ b/vendor/assets/stylesheets/_variables.scss
@@ -151,8 +151,8 @@ $zindexModal: 1050 !default;

// Sprite icons path
// -------------------------
-$iconSpritePath: "../img/glyphicons-halflings.png" !default;
-$iconWhiteSpritePath: "../img/glyphicons-halflings-white.png" !default;
+$iconSpritePath: image-path("glyphicons-halflings.png") !default;
+$iconWhiteSpritePath: image-path("glyphicons-halflings-white.png") !default;


// Input placeholder text color
diff --git a/vendor/assets/stylesheets/bootstrap/_glyphicons.scss b/vendor/assets/stylesheets/bootstrap/_glyphicons.scss
index b7dbdb6..ebcf0f4 100644
--- a/vendor/assets/stylesheets/bootstrap/_glyphicons.scss
+++ b/vendor/assets/stylesheets/bootstrap/_glyphicons.scss
@@ -21,11 +21,11 @@
// Import the fonts
@font-face {
font-family: 'Glyphicons Halflings';
- src: url('#{$glyphicons-font-path}/glyphiconshalflings-regular.eot');
- src: url('#{$glyphicons-font-path}/glyphiconshalflings-regular.eot?#iefix') format('embedded-opentype'),
- url('#{$glyphicons-font-path}/glyphiconshalflings-regular.woff') format('woff'),
- url('#{$glyphicons-font-path}/glyphiconshalflings-regular.ttf') format('truetype'),
- url('#{$glyphicons-font-path}/glyphiconshalflings-regular.svg#glyphicons_halflingsregular') format('svg');
+ src: url(font-path("#{$glyphicons-font-path}/glyphiconshalflings-regular.eot"));
+ src: url(font-path("#{$glyphicons-font-path}/glyphiconshalflings-regular.eot?#iefix")) format('embedded-opentype'),
+ url(font-path("#{$glyphicons-font-path}/glyphiconshalflings-regular.woff")) format('woff'),
+ url(font-path("#{$glyphicons-font-path}/glyphiconshalflings-regular.ttf")) format('truetype'),
+ url(font-path("#{$glyphicons-font-path}/glyphiconshalflings-regular.svg#glyphicons_halflingsregular")) format('svg');
}
20 changes: 11 additions & 9 deletions update-bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,25 @@
ROOT=`pwd`"/vendor/assets"
TMP='tmp/sass-twitter-bootstrap'
# Pull down sass-twitter-bootstrap sources
git clone https://github.com/jlong/sass-twitter-bootstrap.git tmp/sass-twitter-bootstrap
git clone https://github.com/jlong/sass-twitter-bootstrap.git tmp/sass-twitter-bootstrap --branch '3.0.0-wip'
# Copy lib/ to stylesheets/
mkdir -p $ROOT/stylesheets/bootstrap
cp -r $TMP/lib/* $ROOT/stylesheets/bootstrap
# Copy js/ to javascripts/
cp -r $TMP/js/* $ROOT/javascripts
# Copy js/ to javascripts/bootstrap
cp -r $TMP/js/* $ROOT/javascripts/bootstrap
# Copy img/ to images/
cp -r $TMP/img/* $ROOT/images
# Copy fonts/ to fonts/
cp -r $TMP/fonts/* $ROOT/fonts
# Remove tests
rm -r $ROOT/javascripts/tests
rm -r $ROOT/stylesheets/bootstrap/tests
rm -r $ROOT/javascripts/bootstrap/tests

# Patch the asset-url in _variables.scss
patch -f vendor/assets/stylesheets/bootstrap/_variables.scss < asseturl.patch
# Patch the asset-url in _glyphicons.scss
patch -f vendor/assets/stylesheets/bootstrap/_glyphicons.scss < asseturl.patch
rm $ROOT/stylesheets/bootstrap/_glyphicons.scss.orig

# Patch paths in bootstrap.scss and responsive.scss
sed -i .bak 's_@import \"_@import \"bootstrap/_g' $ROOT/stylesheets/bootstrap/{bootstrap,responsive}.scss
sed -i .bak 's_@import \"_@import \"bootstrap/_g' $ROOT/stylesheets/bootstrap/bootstrap.scss
rm $ROOT/stylesheets/bootstrap/*.bak

rm -rf $TMP
rm -rf $TMP
117 changes: 0 additions & 117 deletions vendor/assets/javascripts/bootstrap-affix.js

This file was deleted.

207 changes: 0 additions & 207 deletions vendor/assets/javascripts/bootstrap-carousel.js

This file was deleted.

Loading