Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap-sass.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugeny Vlasenko <mahnunchik@gmail.com>2014-03-14 23:24:55 +0400
committerEugeny Vlasenko <mahnunchik@gmail.com>2014-03-14 23:39:44 +0400
commit87e8e54df534b1856deaa4086be86d6de810d069 (patch)
treecf25f216a3745760ca1b948c46596ac9ddce13a7
parentedc3b0f669401717663f42c5e6ce0fe565ead988 (diff)
added mincer font/image helpers #551
-rw-r--r--test/dummy_node_mincer/application.css3
-rw-r--r--test/dummy_node_mincer/require_all.css.ejs.scss2
-rw-r--r--vendor/assets/stylesheets/bootstrap/_bootstrap-mincer.scss12
3 files changed, 15 insertions, 2 deletions
diff --git a/test/dummy_node_mincer/application.css b/test/dummy_node_mincer/application.css
index a7bc37fc..f531b9c3 100644
--- a/test/dummy_node_mincer/application.css
+++ b/test/dummy_node_mincer/application.css
@@ -1,4 +1,5 @@
/*
*= require require_all
- */ \ No newline at end of file
+ */
+ \ No newline at end of file
diff --git a/test/dummy_node_mincer/require_all.css.ejs.scss b/test/dummy_node_mincer/require_all.css.ejs.scss
index 458fa55d..b23c4b2b 100644
--- a/test/dummy_node_mincer/require_all.css.ejs.scss
+++ b/test/dummy_node_mincer/require_all.css.ejs.scss
@@ -5,4 +5,4 @@
#image-retina {
@include img-retina("apple-touch-icon-144-precomposed.png", "apple-touch-icon-144-precomposed.png", 72px, 72px);
-} \ No newline at end of file
+}
diff --git a/vendor/assets/stylesheets/bootstrap/_bootstrap-mincer.scss b/vendor/assets/stylesheets/bootstrap/_bootstrap-mincer.scss
new file mode 100644
index 00000000..daf07d0c
--- /dev/null
+++ b/vendor/assets/stylesheets/bootstrap/_bootstrap-mincer.scss
@@ -0,0 +1,12 @@
+
+@function twbs-font-path ($path) {
+ // do something like following
+ // from "path/to/font.ext#suffix" to "<%- asset_path(path/to/font.ext)) + #suffix %>"
+ // from "path/to/font.ext?#suffix" to "<%- asset_path(path/to/font.ext)) + ?#suffix %>"
+ // or from "path/to/font.ext" just "<%- asset_path(path/to/font.ext)) %>"
+ @return "<%- asset_path('#{$path}'.replace(/[#?].*$/, '')) + '#{$path}'.replace(/(^[^#?]*)([#?]?.*$)/, '$2') %>";
+}
+
+@function twbs-image-path ($file) {
+ @return "<%- asset_path('#{$file}') %>";
+}