Sass

How to change image on panel when doing mouseover using CSS - ExtJs?

僤鯓⒐⒋嵵緔 提交于 2020-02-03 08:44:31
问题 I'm trying to change images when doing mouseover/mouseleave using CSS or SASS. However, to acomplish this I can always do: header = panel.getHeader().getEl(); and then do this: //mouse enter event header.on('mouseover', function (e) { ....... ....... }, me); //mouseleave event header.on('mouseleave', function (e) { ........ }, me); However, I'm trying to accomplish the same functionality using CSS or SASS . Basically: a) All images should be displayed by default when loading the accordion. (

CSS require Syntax

一曲冷凌霜 提交于 2020-02-03 06:29:04
问题 I have required CSS stylesheets many times in many of my RubyOnRails applications, and actually i need a few things demystified. What is the difference between: //=require mystyles and *=require mystyles Both seem to work, so what is the difference? And is this a part of the asset pipeline or a part of SASS or just plain CSS? 回答1: The two examples you gave are exactly the same for stylesheets, however the //= syntax is the only one that works for Javascript. You also need a standard CSS

CSS require Syntax

[亡魂溺海] 提交于 2020-02-03 06:23:26
问题 I have required CSS stylesheets many times in many of my RubyOnRails applications, and actually i need a few things demystified. What is the difference between: //=require mystyles and *=require mystyles Both seem to work, so what is the difference? And is this a part of the asset pipeline or a part of SASS or just plain CSS? 回答1: The two examples you gave are exactly the same for stylesheets, however the //= syntax is the only one that works for Javascript. You also need a standard CSS

CSS pre-processors in NetBeans

偶尔善良 提交于 2020-02-02 13:53:24
问题 Let's say I have this HTML5 project on NetBeans 7.4 myproject <---project folder | |-- public_html <---web root (the only visible in Projects tab) | | | |-- css | |-- style.css | |-- scss |-- file1.scss |-- file2.scss |-- more |-- file3.scss I want to configure NetBeans in such way that, when I save any of file1.scss , file2.scss and file3.scss , it compiles all these files into style.css , preferably minified... Is it possible? If so, what should I write in project properties (see image)?

CSS pre-processors in NetBeans

扶醉桌前 提交于 2020-02-02 13:51:11
问题 Let's say I have this HTML5 project on NetBeans 7.4 myproject <---project folder | |-- public_html <---web root (the only visible in Projects tab) | | | |-- css | |-- style.css | |-- scss |-- file1.scss |-- file2.scss |-- more |-- file3.scss I want to configure NetBeans in such way that, when I save any of file1.scss , file2.scss and file3.scss , it compiles all these files into style.css , preferably minified... Is it possible? If so, what should I write in project properties (see image)?

How do I use a wildcard asterisk CSS selector in SASS? [closed]

。_饼干妹妹 提交于 2020-02-02 11:06:28
问题 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 4 years ago . How do I use a "*" CSS wildcard selector when using SASS? For instance, how would I make the following CSS code SASSy? * { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; line-height: 1; } *:before, *:after { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box

gulp入门指南

此生再无相见时 提交于 2020-02-02 10:18:12
Grunt靠边,全新的建构工具来了。Gulp的code-over-configuration不只让撰写任务(tasks)更加容易,也更好阅读及维护。 Glup使用node.js串流(streams)让建构更快速,不须写出资料到硬盘的暂存档案/目录。如果你想了解更多有关串流–虽然不是必须的–你可以阅读 这篇文章 。Gulp利用来源档案当作输入,串流到一群外挂(plugins),最后取得输出的结果,并非配置每一个外挂的输入与输出–就像Grunt。让我们来看个范例,分别在Gulp及Grunt建构Sass: Grunt: sass: { dist: { options: { style: 'expanded' }, files: { 'dist/assets/css/main.css': 'src/styles/main.scss', } } }, autoprefixer: { dist: { options: { browsers: [ 'last 2 version', 'safari 5', 'ie 8', 'ie 9', 'opera 12.1', 'ios 6', 'android 4' ] }, src: 'dist/assets/css/main.css', dest: 'dist/assets/css/main.css' } }, grunt.registerTask(

Setting up webpack 4.0 to use Google material design SASS with ExtractTextPlugin

…衆ロ難τιáo~ 提交于 2020-02-02 06:28:25
问题 I'm struggling to get Webpack 4.0 to compile my SASS which I want to use Google material design SASS files with. I think it is an issue with not being able to access the SASS files in the node_modules folder. var ExtractTextPlugin = require('extract-text-webpack-plugin'); const path = require('path'); module.exports = { //entry: path.resolve(__dirname, 'react/test/index.js'), entry: [path.resolve(__dirname, 'react/test/index.js'), path.resolve(__dirname, 'styles/main.scss')], output: { path

前端构建工具gulp入门教程

孤街浪徒 提交于 2020-02-02 05:44:20
新建Gulpfile文件,运行gulp 安装好gulp后我们需要告诉它要为我们执行哪些任务,首先,我们自己需要弄清楚项目需要哪些任务。 检查Javascript 编译Sass(或Less之类的)文件 合并Javascript 压缩并重命名合并后的Javascript 安装依赖 npm install gulp-jshint gulp-sass gulp-concat gulp-uglify gulp-rename --save-dev 新建gulpfile文件 现在,组件都安装完毕,我们需要新建gulpfile文件以指定gulp需要为我们完成什么任务。 gulp只有五个方法: task , run , watch , src ,和 dest ,在项目根目录新建一个js文件并命名为 gulpfile.js ,把下面的代码粘贴进去: // 引入 gulp var gulp = require('gulp'); // 引入组件 var jshint = require('gulp-jshint'); var sass = require('gulp-sass'); var concat = require('gulp-concat'); var uglify = require('gulp-uglify'); var rename = require('gulp-rename');

前端构建工具gulp入门教程

杀马特。学长 韩版系。学妹 提交于 2020-02-02 05:43:54
本文假设你之前没有用过任何任务脚本(task runner)和命令行工具,一步步教你上手Gulp。不要怕,它其实很简单,我会分为五步向你介绍gulp并帮助你完成一些惊人的事情。那就直接开始吧。 第一步:安装Node 首先,最基本也最重要的是,我们需要搭建node环境。访问 http://nodejs.org ,然后点击大大的绿色的 install 按钮,下载完成后直接运行程序,就一切准备就绪。 npm 会随着安装包一起安装,稍后会用到它。 第二步:使用命令行 也许现在你还不是很了解什么是命令行——OSX中的终端(Terminal),windows中的命令提示符(Command Prompt),但很快你就会知道。它看起来没那么简单,但一旦掌握了它的窍门,就可以很方便的执行很多命令行程序,比如Sass,Yeoman和Git等,这些都是非常有用的工具。 如果你很熟悉命令行,直接跳到步骤四。 为了确保Node已经正确安装,我们执行几个简单的命令。 node -v 回车(Enter),如果正确安装的话,你会看到所安装的Node的版本号,接下来看看npm。 npm -v 这同样能得到npm的版本号。 如果这两行命令没有得到返回,可能node就没有安装正确,尝试重启下命令行工具,如果还不行的话,只能回到第一步进行重装。 第三步:定位到项目 现在,我们已经大致了解了命令行并且知道如何简单使用它