less

Linux命令——less、cp、mv

主宰稳场 提交于 2019-12-03 20:18:34
1.less   功能描述:按页显示文件,less命令在显示文件时,用户可以向前也可以向后翻阅文件   命令语法:less [选项] 文件   选项含义:     -c:从顶部(从上到下)刷新屏幕,并显示文件内容,而不是通过底部滚动完成刷新     -i:搜索时忽略大小写,除非搜索串中包含大写字母     -I:搜索时忽略大小写,除非搜索串中包含小写字母     -m:显示读取文件的百分比     -M:显示读取文件的百分比、行号和总行数     -N:在每行前输出行号     -p pattern:搜索pattern,比如在/etc/profile下搜索当初MAIL,就用less -p MAIL /etc/profile     -s:把连续多个空白行作为一个空白行显示     -Q:在终端下不响铃   less的支持文件操作:     回车键(Enter键):向下移动一行     y:向上移动一行     空格键(Space键):向下滚动一屏     b:向上滚动一屏     d:向下滚动半屏     h:less的帮助     u:向上滚动半屏     w:可以指定从哪行开始显示,从指定数字的下一行显示,比如指定的时6,那么就从第七行显示     g:跳到第一行     G:跳到最后一行     p n%:跳到n%,比如10%,也就是说到整个文件内容的10%处开始     

How can I place three buttons in the same row at the left, middle and right in a fluid-width container?

我的梦境 提交于 2019-12-03 18:56:45
I'm using LESS in a Twitter Bootstrap environment, but I'd accept straight CSS answers as well. | Fluid-width container | | | | [Btn1] [Btn2] [Btn3] | | | Another width: | Fluid-width container | | | | [Btn1] [Btn2] [Btn3] | | | In my opinion you can do this with a stock bootstrap environment like this: <div class="row-fluid"> <div class="span4 text-left"><a href="#" class="btn">Btn1</a></div> <div class="span4 text-center"><a href="#" class="btn">Btn2</a></div> <div class="span4 text-right"><a href="#" class="btn">Btn3</a></div> </div> This makes three <div> 's that span4 columns that make up

vue.config.js 配置 scss,less,sass全局配置 vuecli3

浪尽此生 提交于 2019-12-03 17:29:29
module.exports = { /* 部署生产环境和开发环境下的URL:可对当前环境进行区分,baseUrl 从 Vue CLI 3.3 起已弃用,要使用publicPath */ publicPath: process.env.NODE_ENV === 'production' ? '/public/' : '/', /* 输出文件目录:在npm run build时,生成文件的目录名称 */ outputDir: process.env.VUE_APP_FLAG, /* 放置生成的静态资源 (js、css、img、fonts) 的 (相对于 outputDir 的) 目录 */ assetsDir: "assets", /* 是否在构建生产包时生成 sourceMap 文件,false将提高构建速度 */ productionSourceMap: false, /* 默认情况下,生成的静态资源在它们的文件名中包含了 hash 以便更好的控制缓存,你可以通过将这个选项设为 false 来关闭文件名哈希。(false的时候就是让原来的文件名不改变) */ filenameHashing: false, /* 代码保存时进行eslint检测 */ lintOnSave: true, /* 注意sass,scss,less的配置 */ css: { loaderOptions:

How can I use Bootstrap styles in a LESS file?

我的未来我决定 提交于 2019-12-03 17:09:41
I am trying to import bootstrap.css into a .less file, so that I can conditionally apply Bootstrap styles with media-queries. Here is my LESS code: // Visual Studio is saying "Couldn't locate" the file for both, yet they are there: @import url("bootstrap.min.css"); @import url("bootstrap-theme.min.css"); // ...can't find the source of the "@screen" at-rules: @extra-small: ~"screen and (max-width: @screen-xs-max)"; @small: ~"screen and (min-width: @screen-sm-min) and (max-width: @screen-sm-max)"; @medium: ~"screen and (min-width: @screen-md-min) and (max-width: @screen-md-max)"; @large: ~

React配置less与antd定制主题

好久不见. 提交于 2019-12-03 15:44:41
CRA版本为3.0.1。 eject出来之后只有一个webpack.config.js。不再区分为dev和prod两个配置文件。 首先安装 antd,less,less-loader npm install antd npm install less less-loader eject CRA新建的项目 config目录下的文件如下: image.png 修改webpack.config.js 首先配置less module 在cssRegex和sassRegex附近(line 42左右)添加如下代码 const lessRegex = /\.less$/; const lessModuleRegex = /\.module\.less$/; 再找到使用cssRegex的代码位置(line 460左右)添加如下代码 { test: lessRegex, // exclude: lessModuleRegex, exclude: /node_modules/, use: getStyleLoaders( { modules: true, importLoaders: 3, // javascriptEnabled: true, sourceMap: isEnvProduction ? shouldUseSourceMap : isEnvDevelopment }, "less

How to effectively use the Frameless grid?

浪尽此生 提交于 2019-12-03 15:33:34
问题 I'm starting building a website good for mobile devices too. So I'm also starting studying media queries and the various grid frameworks. I've taken a look to all the 'main players' like Inuit.css, the semantic grid etc.. and found that probably the best one for me is the frameless grid The author says it's 'the spiritual successor to Less Framework': Ok. I've studied a lot all the less/css code and html code of the main framelessgrid.com page (that should implement the frameless grid) but I

Dynamic CSS properties in LESS?

て烟熏妆下的殇ゞ 提交于 2019-12-03 14:51:50
I am writing a less stylesheet for a bi-directional website, and I need to write a single less file and produce two different stylesheets one for left-to-right layouts (ltr) and the other for right-to-lef layouts (rtl) so when i am styling for rtl layouts, i want to convert every left value to be right, wither it is a float, padding or margin, to do so, I have defined the required variables at the top of my less file as follows: @left: right; @right: left; simply, i can float elements dynamically like this float: @left; // this will be floated to left in ltr layout while it will be right in

React脚手架解决不能使用less问题

≯℡__Kan透↙ 提交于 2019-12-03 14:40:45
引言 学编程,还是多敲代码呀,React脚手架不支持less,因此需要配置webpack的 webpack.config.js 文件 释放配置文件 我们在使用React脚手架的时候,发现发现是没有 webpack.config.js 文件的,需要在项目中执行 yarn eject 命令,我试过使用 npm 不行,因此需要安装 yarn // 全局安装 npm install yarn -g 下载less less-loader 使用 npm 或 yarn 下载均可 // 使用npm npm install less less-loader --save-dev // 使用 yarn yarn add less less-loader 配置 webpack.config.js文件 当我们执行 yarn eject 命令之后,项目根目录会多出一个文件夹 config ,点击打开即可看到 webpack.config.js 文件 第一步 找到 const cssRegex = /\.css$/; 这一句 修改为 `const cssRegex = /.(css|less)$/; 第二步 在 module 属性下的 rules 添加一个对象 {test: /\.less$/, use: ['less-loader']} ` 来源: https://www.cnblogs.com/HJ412

Why is Bootstrap trying to load LESS files in Edge?

谁说胖子不能爱 提交于 2019-12-03 14:39:02
问题 I have a web page using Twitter Bootstrap. It works well in Chrome, Firefox, and Safari. However, when I try to view it in Edge on Windows 10, I get a bunch of 403 errors saying it failed to load a slew of .less files from the Bootstrap CDN. Why are .less files being requested if the browser can't do anything with them? I am not using LESS at all, just plain CSS3, which is rendering just fine. How do I make this stop? 回答1: The good news is this won't be affecting regular users of the site.

Glyphicons from bootstrap doesn't show up

こ雲淡風輕ζ 提交于 2019-12-03 14:00:13
问题 <div class="container-fluid"> <div class="sidebar left"> <div id="app-navigation" class="well"> <h5>Administration</h5> <ul class="administration-list"> <li class="user"><a href="#user">User</a></li> <li class="emails"><a href="#emails">Emails</a></li> <li class="settings"><a href="#Settings">Settings</a></li> <li class="logs"><a href="#Logs">Logs</a></li> <li class="help"><a href="#Help">Help</a></li> </ul> <h5>Managing tools</h5> <ul class="tools-list"> <li class="ressource"><a href="