Javascript meteor手写笔预处理器在每个文本laign:center中添加'j-`前缀
我正在使用官方的meteor手写笔软件包,我在使用Javascript meteor手写笔预处理器在每个文本laign:center中添加'j-`前缀,javascript,css,meteor,stylus,Javascript,Css,Meteor,Stylus,我正在使用官方的meteor手写笔软件包,我在使用mquandalle:stylus软件包时遇到了一些输出css的问题。升级meteor后,该软件包停止工作,因此我切换到官方手写笔软件包。现在,每当我在.styl文件中有一个text-align:center时,它就会在css中输出为text-align:j-center,这显然不起作用。我不知道还包括什么,所以请让我知道我还可以包括什么 下面是.styl代码的示例部分 .hero_d, .hero_d_b h1 font-size
mquandalle:stylus
软件包时遇到了一些输出css的问题。升级meteor后,该软件包停止工作,因此我切换到官方手写笔软件包。现在,每当我在.styl
文件中有一个text-align:center
时,它就会在css中输出为text-align:j-center
,这显然不起作用。我不知道还包括什么,所以请让我知道我还可以包括什么
下面是.styl
代码的示例部分
.hero_d, .hero_d_b
h1
font-size 36px
font-weight 400
color #3e97b7
padding 25px 0 15px 0
text-align center
这是我的包裹清单
# Meteor packages used by this project, one per line.
# Check this file (and the other files in this directory) into your repository.
#
# 'meteor add' and 'meteor remove' will edit this file for you,
# but you can also edit it by hand.
meteor-base@1.4.0 # Packages every Meteor app needs to have
mobile-experience@1.0.5 # Packages for a great mobile UX
mongo@1.5.0 # The database Meteor supports right now
blaze-html-templates # Compile .html files into Meteor Blaze views
session@1.1.7 # Client-side reactive dictionary for your app
jquery # Helpful client-side library
tracker@1.2.0 # Meteor's client-side reactive programming library
standard-minifiers@1.1.0 # JS/CSS minifiers run for production mode
es5-shim@4.8.0 # ECMAScript 5 compatibility for older browsers.
ecmascript@0.11.1 # Enable ECMAScript2015+ syntax in app code
autopublish@1.0.7 # Publish all data to the clients (for prototyping)
insecure@1.0.7 # Allow all DB writes from clients (for prototyping)
iron:router
sewdn:masked-input
themeteorchef:jquery-validation
email@1.2.3
johannesma:meteor-flexslider
slam310:smooth-scroll
underscore
stylus
mquandalle:jeet
pward123:rupture
用coagmano:stylus
我有一个imports.styl
文件,该文件被导入到我的layout.styl
文件中,我得到以下错误
Cannot read file {}/C:/Users/Anders/AppData/Local/.meteor/packages/coagmano_stylus/1.0.3/plugin.compileStylusBatch.os/npm/node_modules/meteor/compileStylusBatch/node_modules/jeet/jeet.styl for
/client/application/styles/imports.styl
client/application/styles/layout.styl: Stylus compiler error: client/application/styles/imports.styl:1:9
1| @import 'jeet'
--------------^
2| @import 'rupture'
3| rupture.scale = 0 320px 525px 600px 700px 850px 1048px 1300px
4|
这是imports.styl
文件
@import 'jeet'
@import 'rupture'
rupture.scale = 0 320px 525px 600px 700px 850px 1048px 1300px
我不确定问题的原因,但可以通过删除当前的手写笔软件包来解决:
stylus
mquandalle:jeet
pward123:rupture
并用coagmano:stylus
(免责声明,我是该叉子的维护者)
该软件包附带了jeet
、breake
、nib
和其他捆绑产品,并设置为自动加载到全局范围
这意味着您不需要导入它们,实际上这样做会抛出错误,因为它与Meteor的导入语法冲突
要删除这些错误,请查找并删除触笔库的任何导入语句,如下所示:
@import 'jeet'
@import 'rupture'
您是否可能创建了名为
center
的变量或mixin?如果你对j-center
进行“全部查找”,你能找到什么?@FredStark当我对j-center
进行“全部查找”时,我的.styl
文件或任何地方都不会显示任何内容。我唯一能想到的是,我正在使用一个名为(1024px)例如,我以前从未遇到过这个问题。试着移除stylus
,mquandalle:jeet
和pward123:break
,然后安装coagmano:stylus
。我是这个叉子的维护者,如果你想写一个关于更改软件包的答案的话,jeet和BreakurePerfect也能正常工作d删除导入我将选择它。再次感谢。
@import 'jeet'
@import 'rupture'