less

CSS-Redundancy when using LESS and its @import

假如想象 提交于 2019-12-20 17:37:16
问题 I really like the idea and the concept of LESS. Yet I stumbled upon a bug, which i reported quite a while ago to the author but did not yet get any feedback. Maybe it's just me who is doing something wrong. My application.less -File that looks similar to this: @import "reset"; @import "config"; @import "header"; @import "forms"; […] I like that it is possible to use the @import rule to split up my files to gain a better overview of my css-declarations. Yet every imported file needs to re

Load variables into LESS CSS preprocessor from JSON file

有些话、适合烂在心里 提交于 2019-12-20 17:05:11
问题 Is it possible to load variables into LESS CSS preprocessor from a JSON file like you can do with Stylus? With contents of file myvars.json { "color1": "#112345", "color2": "#667890" } In Stylus I do... json('myvars.json') body{ background-color: color1; } Is it possible to do this in LESS? I want to keep the file as JSON, so I can easily re-use it in javascript. 回答1: In less.js you can make use of javascript interpolation (using the back-ticks). And call a function that loads the json object

vux使用教程

孤者浪人 提交于 2019-12-20 16:39:03
<1>. 在项目里安装vux npm install vux --save <2>. 安装vux-loader (这个vux文档似乎没介绍,当初没安装结果报了一堆错误) npm install vux-loader --save-dev <3>. 安装less-loader (这个是用以正确编译less源码,否则会出现 ' Cannot GET / ') npm install less less-loader --save-dev <4>. 安装yaml-loader (以正确进行语言文件读取, 我没安装似乎也没报错) npm install yaml-loader --save-dev <5>. 在build/webpack.base.conf.js 文件进行配置 const vuxLoader = require('vux-loader') const webpackConfig = originalConfig // 原来的 module.exports 代码赋值给变量 webpackConfig, //即将原来的module.exports 改为 const webpackConfig module.exports = vuxLoader.merge(webpackConfig, { plugins: ['vux-ui'] }) <6>最后别忘了,在resolve: {

Compiling Less CSS for Bootstrap 3 with PHP

牧云@^-^@ 提交于 2019-12-20 12:40:10
问题 There are two LessCSS compilers in PHP that I am aware of: http://leafo.net/lessphp/ http://lessphp.gpeasy.com/ Both claim to be compatible with Bootstrap (version 3). However I am struggling to get anything going given the steep learning curve of these three facets. In short, I just want to achieve the following: Compile multiple .less files together in PHP: bootstrap.less my.less Compiling a single file in leafo.net/lessphp was easy, I found: require_once 'lessc.inc.php'; $less = new lessc;

Twitter Bootstrap 3 Removing RIGHT margin and padding on a row and col-12

廉价感情. 提交于 2019-12-20 11:36:52
问题 I'm using Twitter Bootstrap 3.0 LESS source in my Asp.Net MVC 5 project. I use a Top Navbar (as given here) and then few more rows in the the layout page. I use following for rows to take 100% page width: <div class="row"> <div class="col-md-12"> // More HTML code </div> </div> But this adds an extra padding on the right of each row. This also adds a horizontal scrollbar to the page and a blank vertical gutter throughout the page is visible when scrolled the page to its right. Removing margin

Ruby LESS gem equivalent in Python

╄→尐↘猪︶ㄣ 提交于 2019-12-20 10:41:27
问题 The Ruby LESS gem looks awesome - and I am working on a Python/Pylons web project where it would be highly useful. CSS is, as someone we're all familiar with recently wrote about, clunky in some important ways. So I'd like to make it easier on myself. Is there an existing Python module or library that provides parallel functionality? 回答1: I have need for a Python lesscss compiler too, so have started work on one here: http://code.google.com/p/lesscss-python/ Version 0.0.1 has been released,

Excluding files from assets:precompile in rails

安稳与你 提交于 2019-12-20 10:36:37
问题 I use codekit for writing less which it then converts to css automatically. I don't want rails to convert my less files to css, I rather codekit do it. if I precompile the assets via rake assets:precompile I get rake aborted! cannot load such file -- less How do I exclude a specific folder/file types from precompiling? (all my less files are in app/assets/stylesheets/less and the css (which I do want to be precompiled) are in app/assets/stylesheets/css update deleting application.less solves

webpack error in Cannot find module 'less'

為{幸葍}努か 提交于 2019-12-20 10:24:24
问题 I'm trying to use less loader in webpack and the issues is - I've installed less loader locally, but when I try to compile everything using webpack command in bask, it prints out: "ERROR in Cannot find module 'less'". In my entry point I require some less file like require("./less_components/style.less"); Here is my webpack.config file module.exports = { entry: "./entry.js", output: { path: "./build", filename: "./bundle.js" }, module: { loaders: [ {test: /\.js$/, exlude: /node_modules/,

阿里云ECS漏洞处理(centos): NetworkManager 安全更新

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-20 10:21:59
影响说明 软件:NetworkManager-tui 1.10.2-14.el7_5 命中:NetworkManager-tui version less than 1:1.12.0-8.el7_6 路径:/usr/bin/nmtui 软件:NetworkManager-wifi 1.10.2-14.el7_5 命中:NetworkManager-wifi version less than 1:1.12.0-8.el7_6 路径:/usr/lib64/NetworkManager/libnm-device-plugin-wifi.so 软件:NetworkManager 1.10.2-14.el7_5 命中:NetworkManager version less than 1:1.12.0-8.el7_6 路径:/etc/NetworkManager 软件:NetworkManager-team 1.10.2-14.el7_5 命中:NetworkManager-team version less than 1:1.12.0-8.el7_6 路径:/usr/lib64/NetworkManager/libnm-device-plugin-team.so 软件:NetworkManager-libnm 1.10.2-14.el7_5 命中:NetworkManager-libnm

Is there an online tool to compile LESS? [closed]

只愿长相守 提交于 2019-12-20 10:18:17
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I'm trying to use LESS in my webpage, but am having trouble compiling it. It's built to work on ruby, which I don't have permission to install on my pc. Is there an online tool for this compilation? I know that lessphp exists, but I can't find the demo on their site any longer. To summarise, I'm looking for a