Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 3 commits
  • 6 files changed
  • 0 comments
  • 1 contributor
5  GNUmakefile
@@ -34,6 +34,11 @@ BEM_CREATE=bem create block \
34 34
 	$(call BEM_BUILD,bem/techs/css.js)
35 35
 	csso $@ | gzip -cf9 >$@.gz
36 36
 
  37
+.PRECIOUS: %.ie.css
  38
+%.ie.css: %.deps.js
  39
+	$(call BEM_BUILD,bem/techs/ie.css.js)
  40
+	csso $@ | gzip -cf9 >$@.gz
  41
+
37 42
 .PRECIOUS: %.js
38 43
 %.js: %.deps.js
39 44
 	$(call BEM_BUILD,js)
21  bem/techs/css.js
... ...
@@ -1,14 +1,15 @@
1 1
 var fs = require('fs'),
2  
-    css = require('bem/lib/techs/css');
  2
+    INHERIT = require('inherit'),
  3
+    Tech = require('bem/lib/techs/css').Tech;
3 4
 
4  
-for (var n in css) exports[n] = css[n];
  5
+exports.Tech = INHERIT(Tech, {
5 6
 
6  
-exports.techModule = module;
  7
+    getBuildResultChunk: function(relPath, path, suffix) {
  8
+        return [
  9
+                '/* ' + relPath + ': begin */ /**/\n',
  10
+                fs.readFileSync(path),
  11
+                '/* ' + relPath + ': end */ /**/\n\n'
  12
+            ].join('');
  13
+    }
7 14
 
8  
-exports.outFile = function (relFile, file) {
9  
-    return [
10  
-        '/* ' + relFile + ': begin */ /**/',
11  
-        fs.readFileSync(file),
12  
-        '/* ' + relFile + ': end */ /**/',
13  
-        '\n'].join('\n');
14  
-};
  15
+});
15  bem/techs/ie.css.js
... ...
@@ -0,0 +1,15 @@
  1
+var fs = require('fs'),
  2
+    INHERIT = require('inherit'),
  3
+    Tech = require('bem/lib/techs/css').Tech;
  4
+
  5
+exports.Tech = INHERIT(Tech, {
  6
+
  7
+    getBuildResultChunk: function(relPath, path, suffix) {
  8
+        return [
  9
+                '/* ' + relPath + ': begin */ /**/\n',
  10
+                fs.readFileSync(path),
  11
+                '/* ' + relPath + ': end */ /**/\n\n'
  12
+            ].join('');
  13
+    }
  14
+
  15
+});
8  blocks/i-font/_face/i-font_face_textbook-new.css
... ...
@@ -1,9 +1,9 @@
1 1
 @font-face {
2 2
     font-family: 'TextbookNew';
3  
-    src: url('i-font_face_textbook-new.eot');
4  
-    src: url('i-font_face_textbook-new.eot?#iefix') format('embedded-opentype'),
5  
-         url('i-font_face_textbook-new.woff') format('woff'),
6  
-         url('i-font_face_textbook-new.ttf') format('truetype');
  3
+    src: url('blocks/i-font/_face/i-font_face_textbook-new.eot');
  4
+    src: url('blocks/i-font/_face/i-font_face_textbook-new.eot?#iefix') format('embedded-opentype'),
  5
+         url('blocks/i-font/_face/i-font_face_textbook-new.woff') format('woff'),
  6
+         url('blocks/i-font/_face/i-font_face_textbook-new.ttf') format('truetype');
7 7
     font-weight: normal;
8 8
     font-style: normal;
9 9
 }
BIN  pages/mishanga/favicon.ico
Binary file not shown
5  pages/mishanga/mishanga.bemjson.js
... ...
@@ -1,10 +1,11 @@
1 1
 ({
2 2
     block: 'b-page',
3 3
     title: 'Михаил Трошев — mishanga@yandex-team.ru',
4  
-    favicon: '//yandex.ru/favicon.ico',
  4
+    favicon: '/favicon.ico',
5 5
     head: [
6 6
         { elem: 'css', url: 'mishanga.css' },
7  
-        { elem: 'js', url: '//yandex.st/jquery/1.6.2/jquery.min.js' },
  7
+        { elem: 'css', url: 'mishanga.ie.css', ie: 'lte IE 7' },
  8
+        { block: 'i-jquery', elem: 'core' },
8 9
         { elem: 'js', url: 'mishanga.js' }
9 10
     ],
10 11
     i18n: { langs: ['ru', 'en'], lang: 'ru' },

No commit comments for this range

Something went wrong with that request. Please try again.