less

VS Error: Octal escape sequences are only supported in ECMAScript 3 compatibility mode

随声附和 提交于 2019-12-10 18:24:21
问题 I have twitter bootstrap setup to build in a new project, but am getting the following error from VS2010. Fatal error, cannot continue: Octal escape sequences are only supported in ECMAScript 3 compatibility mode. Which seems to be related to the following CSS/Less entry in bootstrap (type.less)... blockquote small:before { content: '\2014 \00A0'; } Can anyone help? 回答1: Just wanted to say that I had this error too, and the problem for me ended up being with Chirpy. I tried to make a merged

How to integrate LESS into ZendFramework 2

江枫思渺然 提交于 2019-12-10 18:22:03
问题 I have found this tutorial which is for ZendFramework 1 . I download less and put it under project/vendor/ . Leafo └── Less ├── Lessc.php └── Lessify.php In project/module/Application/Module.php ... public function onBootstrap(MvcEvent $e) { ... $this->compileLess(); } ... public function compileLess() { if (APPLICATION_ENV == 'production') { return; } require_once PROJECT_PATH . '/vendor/Leafo/Less/Lessc.php'; $less_file = PROJECT_PATH . '/public/less/style.less'; $css_file = PROJECT_PATH .

LESS.js + @arguments + Skip One Argument

ⅰ亾dé卋堺 提交于 2019-12-10 18:16:56
问题 I have been searching in Google etc., but I couldnt find what I was looking for (I hope I didnt overlook something).. So I thought my best bet is to ask you guys :) I am playing around with LESS-JS for the first time and I really like it. However I have a little problem now. I am using the @arguments variable like this: .basicBorder(@width:1px, @type:solid, @color:@black){ border:@arguments; } Which works as expected. Now when I want the border to be red, I am adding this to the element in my

HTML CSS doesn't work in Safari

岁酱吖の 提交于 2019-12-10 18:14:27
问题 I have following code, that works well in Chrome and FireFox but doesn't work in Safari. Could you please help me investigate what is going on and how do I make it compatible for Safari and other browsers? CodePen Chrome: Safari: LESS: body { margin-top: 30px; } .time-slice { position: relative; display: flex; align-items: stretch; margin-left: 20px; > * { padding: 20px; } } .circle { width: 16px; height: 16px; box-sizing: content-box; border-color: #29a8bb; background: #ffffff; border-radius

安装Sublime text2及插件~

馋奶兔 提交于 2019-12-10 17:56:38
我记性不好,主要是整理出来写给自己留着的~~o(>_<)o ~~ 去 http://www.sublimetext.com/ 下载下来然后安装 安装好了之后打开按ctrl + ` ,然后界面下方出现一个小框框了,之后把import urllib2,os;pf='Package Control.sublime-package';ipp=sublime.installed_packages_path();os.makedirs(ipp) if not os.path.exists(ipp) else None;open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read())这一堆复制到小框框里头,然后就是这样的啦: 然后关闭sublime,再打开,Ctrl+Shift+P调出命令面板,输入install 调出 Install Package 选项: 然后回车,出现了这个: 然后你就可以输入emmet(就是以前的zencoding ),然后回车,安装好之后这个插件就OK啦,你也可以用相同的步骤安装less或者jade或者你想要的插件~~ over~~ 来源: oschina 链接: https://my.oschina.net/u

Lesscss > bootstrap's darken() and lighten() don't compile

ⅰ亾dé卋堺 提交于 2019-12-10 17:26:37
问题 My Less files aren't compiling as they should. I'm using the Bootstrap less files, most recent ones. It looks like the less-files are failing because of the darken() and lighten() classes. The error is: lessc fatal error: expected color value: failed at background-color: darken(@inputBackground, 1%); /Applications/MAMP/htdocs/foobar/application/less/forms.less on line 195 When I go to that line, I find the darken() of lighten(), remove that and the error is gone. But a new error appears, also

Can Reactjs programmatically handle :before?

依然范特西╮ 提交于 2019-12-10 17:06:14
问题 I somehow have to programmatically set the width of the :before for a div . <div className="something" style={someStyle}> </div> How can I define the someStyle so that the width of the :before of .something``div can change accordingly?? 回答1: Pseudo elements cannot be styled with inline styles as explained in https://stackoverflow.com/a/14141821/368697. You will have to style the something class name in a stylesheet with the .something:before selector. This is not a limitation of React but

LESS - Assign mixin to variable and reuse

房东的猫 提交于 2019-12-10 16:48:37
问题 Given this LESS mixin: #gradient { .vertical (@startColor: #555, @endColor: #333) { background-color: @endColor; background-repeat: repeat-x; background-image: -khtml-gradient(linear, left top, left bottom, from(@startColor), to(@endColor)); /* Konqueror */ background-image: -moz-linear-gradient(@startColor, @endColor); /* FF 3.6+ */ background-image: -ms-linear-gradient(@startColor, @endColor); /* IE10 */ background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,

How to edit variable and compile .less with Bootstrap in Yii Framework?

…衆ロ難τιáo~ 提交于 2019-12-10 16:48:14
问题 I am using the php Framework Yii and I want to use it in combination with the Twitter Bootstrap Framework. I did exactly the same steps like here: http://www.cniska.net/yii-bootstrap/setup.html for setting it up. How can I change the default values for all the colors and so on? I changed it in the "variables.less" and it compiled successful even the bootstrap.less and the style.less, but nothing changed. Sorry that I am such a newbie but could you tell which file I have to change and compile

SASS or LESS Keyframes percentage loop

亡梦爱人 提交于 2019-12-10 16:26:52
问题 I'm testing something special and I'm trying to loop inside keyframes to dynamically write percentages into it. I've tested something like that with SASS but it doesn't work. @keyframes test{ @for $i from 0 through 100 { #{$i}% { //do special stuff } $i: $i + 1; } I want it to output : @keyframes test{ 0%{ ... } 1%{ ... } 2%{ ... } 3%{ ... } ... } But I got Error on line number: 23. Invalid CSS after " #{$i}%": expected placeholder name, was " {" I've tested this in LESS and it doesn't work