Permalink
Browse files

Fixed #148

  • Loading branch information...
1 parent f79a676 commit b3c33370a8aa5b204a779692a0b46c57a3d787ed @sergeche sergeche committed Feb 5, 2013
Showing with 7 additions and 10 deletions.
  1. +5 −9 javascript/resolvers/css.js
  2. +2 −1 plugins/textarea/customSnippets.js
@@ -771,15 +771,11 @@ emmet.define('cssResolver', function(require, _) {
var valuesData = this.extractValues(prefixData.property);
var abbrData = _.extend(prefixData, valuesData);
- snippet = resources.findSnippet(syntax, abbrData.property);
-
- // fallback to some old snippets like m:a
-// if (!snippet && ~abbrData.property.indexOf(':')) {
-// var parts = abbrData.property.split(':');
-// var propertyName = parts.shift();
-// snippet = resources.findSnippet(syntax, propertyName) || propertyName;
-// abbrData.values = this.parseValues(parts.join(':'));
-// }
+ if (!snippet) {
+ snippet = resources.findSnippet(syntax, abbrData.property);
+ } else {
+ abbrData.values = null;
+ }
if (!snippet && prefs.get('css.fuzzySearch')) {
// let’s try fuzzy search
@@ -31,7 +31,8 @@ emmet.require('resources').setVocabulary({
'css': {
'snippets': {
- 'mm': '@media (min-width: ${class}px) {\n\t|\n}'
+ 'mm': '@media (min-width: ${class}px) {\n\t|\n}',
+ 'm0a': 'margin: 0 auto!!;'
}
}
}, 'user');

0 comments on commit b3c3337

Please sign in to comment.