This article comes from ThoughtWorks Jing Ren, thanks to Jing Ren translation (Chinese version, English original). I feel very ashamed, a bit of stealing the act, so I must declare again from our lovely Jing Ren, and once again thank her for the painstaking.
If you are still in front of the web for CSS design, maintenance, development puzzles, I think you can try less or sass alternative dynamic CSS system.
The original text reads as follows:
Since I
Please note: You will need to install git before you step into this git installation tutorial.ObjectiveTo date, almost everyone is talking about bootstrap, less or sass. We know that they are newer front-end technologies, and there are trends that are starting to get more popular, but how do you use them?Imagine that we now have a new case to use to bootstrap, but we also want to make some changes, what should we do?Let's pretend you already know what
At the sassconf Conference, we were given the new features of sass3.3. These new features have a lot of significance, especially@at-rootCommand to make your code better clean.
Today, we will take a look@at-rootUsage specification of features.
Learn more@at-rootWe will first recall the sass nesting function. Let's look at an example. The following code is common in our CSS:
.foo { color:green;}.foo .bar { color:gray;}
Return to
Sass Getting StartedWhat makes sass? Anyone who learns to become a language knows that it is not a programming language! We know that CSS is basically not a programmer's tool, because it is cumbersome, no variables, no conditional statements, but just a line of simple description, very inconvenient! based on this, someone began to more easily write CSS to add programming elements to the CSS, this is the "
What is a CSS preprocessor?Defined:CSS preprocessor defines a new language, the basic idea is, with a special programming language, for the CSS to add some programming features, CSS as a target to generate files, and then developers just use this language to encode work.In layman's terms, "CSS preprocessing uses a specialized programming language, Web page style design, and then compiled into a normal CSS file for the project to use." CSS preprocessor adds some programming features to CSS, regar
">
Main Content
div>
div class="span-4 last">
Right Sidebar
div>
div class="span-24 last">
Footer
div>
div>
body>
html>
Span-x indicates that the content spans X meshes, while the right side has a margin of 10 pixels, such as the span-4 width of 4*40-10=150 pixels. Note that when the content crosses the 24th style, the last style needs to be defined, and the last style is set Right-margin to 0. So the above example is clear, the header and footer acros
I. What is SASS/SCSS and less?Sass (syntactically Awesome stylesheets) is a dynamic style language, Sass syntax is the indentation syntax, more than CSS more than a number of functions (such as variables, nesting, operation, mixing (Mixin), inheritance, color processing, functions, etc.), easier to read.What is the relationship between
Let the font-size of the paragraph keep a certain orbit (track) based on the response breakpoint, from H1 to H6 set a variable for the font size for each breakpoint, which makes things much more cumbersome, especially when the type is not on a linear scale.If you try to solve such a layout in response, the following code looks very familiar:p {font-size:15px;}@media screen and (min-width:480px) {p {font-size:16px;}}@media screen and (min-width:640px) {p {font-size:17px;}}@media screen and (min-w
Sass Simple Introduction: Sass is a door to the CSS to compile the extended language, making CSS compiler more logical and malleableInstallation and configuration of SASSFirst step: Install Ruby.Ruby's official: Http://rubyinstaller.org/downloads.Note: 1. You should download the version that matches the system, and it is best not to download the latest version. For 64-bit operating systems, General download
Article Introduction: introduction of less and its difference with sass.
Original:
introduction of less and its difference with sass
Translated from:
An Introduction to less, and Comparison to Sass
Original Author:
Jeremy Hixon
Please respect the copyright, reproduced please indicate the source, thank you!
Since I stumbled upon less one months ago
Sass BASICS (8)-Mr. Lemon
@ Import
Sass supports all css @ rules and some Sass exclusive rules, also known as "directive". These rules have different
The function is described as follows.
@ Import
Sass extends the @ import rule of CSS so that it can introduce SCSS and Sass
F
">
Main Content
div>
div class="span-4 last">
Right Sidebar
div>
div class="span-24 last">
Footer
div>
div>
body>
html>
Span-x indicates that the content spans X meshes, while the right side has a margin of 10 pixels, such as the span-4 width of 4*40-10=150 pixels. Note that when the content crosses the 24th style, the last style needs to be defined, and the last style is set Right-margin to 0. So the above example is clear, the header and footer acros
Objective
Sass is a CSS preprocessor (CSS preprocessor). Its basic idea is to use a special programming language, Web page style design, and then compiled into a normal CSS file.
Sass offers four compile-style options:
Nested: Nested indentation of the CSS code, which is the default value.
Expanded: No indented, extended CSS code.
Compact: A concise form of CSS code.
Compressed: Compressed CS
= ' testborder '> p> input /> P > Div >Assuming that the above 3 DOM elements have such requirements, div to the border, p display border, input only shows the bottom border, and unified with the!important keyword to improve the style of priority;If the handwritten pure CSS would be like this:. Testborder { border:none!important; } . Testborder P { border:1px solid!important;} . Testborder P Input { border-width:0 0 1px 0!important; border-style: solid!important;
Sass on the official website is this description of Sass:
Sass is a meta language that is higher than CSS, and it can be used to describe file styles clearly and structurally, and has more powerful functions than ordinary CSS.
Sass can provide a more concise and elegant syntax, while providing a variety of features t
I. What is SASS/SCSS and less?Sass (syntactically Awesome stylesheets) is a dynamic style language, Sass syntax is the indentation syntax, more than CSS more than a number of functions (such as variables, nesting, operation, mixing (Mixin), inheritance, color processing, functions, etc.), easier to read.What is the relationship between
This article mainly introduces the SASS style programming guide for CSS, including the use of nesting tools and comments. For more and more developers, see SASS, we need to pay attention to the number of SASS codes. We can start with the CSS (stacked style sheet) syntax to explain some of the SASS syntax's special poin
As a member of the graph cutting field, or rolling in the front-end field for a period of time, you will slowly find that the current css writing cannot meet your own efficiency. If you have a more powerful framework that makes your css more flexible and easier to reuse and maintain, that would be nice. Obviously, this is nothing new. sass and less are two excellent style preprocessors, which can greatly improve your efficiency. Next we will talk abou
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.