Sass end of file has more stringent formatting requirements, scss files closer to native CSS
Like sass files.
CSS code copy content to clipboard
#main
Color: #fff
-sidebar
BORDER:1PX Solid
Equal to the SCSS
CSS code copy content to clipboard
#main {
Color:black;
-sidebar {border:1px solid;}
}
After compilation for
The that represents the parent element can only appear on the head, otherwise i
Variable
If you are a developer, variables should be your best friend. If you want to reuse a message (color in this example), set it to a variable. In this way, you can ensure your consistency and reduce the complexity of scrolling code to search for color values, copy and paste. You can even add or subtract the HEX value you need to render to these colors. Let's take a look at the example:
@ Blue: # 00c; @ light_blue: @ blue + #333; @ dark_blue: @ blue-#333;
If we apply these styles to three D
The applications of max-width and min-width in css, max-widthmin-width
Max-width: It can be seen from the literal meaning that the maximum width of the element itself is specified, and the width of the element itself should be less than or equal to the maximum width.
Min-width: It can be seen from the literal meaning that the minimum width of the element itself i
The apache prompts that the max-age or expires solution is not set. max-ageexpires
You should know that you only need to Set max-age or expires. The following method is used to set apache:
Generate to enable
The Code is as follows:LoadModule headers_module modules/mod_headers.so
Then write it under the. htaccess File
The Code is as follows:Header set Cache-Contr
CSS 3 allows you to set multiple background images, each background image occupies a layer, the layer up and down according to the order in the CSS, the first written background in the top, each layer of the picture definition using commas separated.For example, the following code:[HTML] view Plaincopy
background:url (http://dotnet.aspx.cc/Book/Images/CSS1_s.jpg) 00no-repeat,
According to the code can be seen, each picture can be set their own displacement,
); /*opera Browser Compatible code * /background:-moz-linear-gradient (45deg, red, blue); /*firefox Browser Compatible code * /background:linear-gradient (45deg, red, blue); /* Standard syntax */}As shown in effect 5.11.Figure 5.11 Specifying a gradient direction of 45°Linear gradients not only support gradients in two colors, but can also add any color, such as a rainbow effect that can be constructed with a linear gradient, as show
Efficient CSS development practices: CSS 3, LESS, SASS, Bootstrap, Foundation, and sassbootstrap
Compared with traditional image backgrounds, constructing a background color using CSS not only reduces the overhead of network transmission, but also attracts developers for its controllability.
As shown in figure 5.18, the designer designed a background image as the title background. For users who use computers to browse Web pages, there is basically n
Use LiveReload in combination with browsers and less/sass.
Preface: After searching for a long time, there were all kinds of recommended articles, such as the top ten tools and excellent tool collections, but none of them described how to get them. I worked with article on the official website to study the configuration for a long time. By the way, the sass/less settings on the official website are ambiguou
Inuit.css is a powerful and scalableCSSThe framework is also based on Sass, an object-oriented framework. Inuit.css is a naming convention based on the BEM style. It is very suitable for designers who want to focus on creativity rather than code and developers who like abstract and object-oriented methods. It provides you with design patterns rather than design decisions.Articles you may be interested in
Metronic-Bootstrap-based responsive backgro
Bourbon is an easy-to-use Sass (Mixin) Library without configuration. This entry containsCSS3Attribute prefix. Prefix needs to ensure that the old browser supports graceful degradation. Bourbon uses SCSS syntax.Articles you may be interested in
It's really good! 13 very dynamic page loading animation Effects
Have you ever seen it? 9 superb check box Effects
Awesome! Bootstrap-based responsive background management template
Awesome! Amazing p
The new development of technology, in addition to computers can be connected to the Internet, tablet computers, smartphones, smart TVs and other devices can access the Internet.In the multi-device age, building a multi-screen experience is not as difficult as it is heard. But does this also add to the difficulty of learning CSS? Do not know how to get started, only a bit of basic CSS grammar, in the mobile internet era, we are so outdated ?? Study well, read the "CSS Efficient Development Combat
Compiling with KoalaKoala is a Chinese-developed open source preprocessing language graphics compiler tool that currently supports less, Sass,Compass and coffeescript.The following systems are currently supported: Windows,mac, 10.7+,linux:32bit/64bit,ubuntu:32bit/64bit;We can download koala from their official website: Click to enter, use the document click to enterHow to use:
When the installation is complete, open the Koala, drag the folder
a variable? 1, the value repeats at least two times, 2, the value may be updated at least once, 3, the value of all the changes are related to the variable (non-coincidental)NestingSelector NestingThere is such a structureTo select the a tag in the header, CSS:{ color:red;} { color:green;}Sass:nav { a{ color: red; Header { color: green; } }}Property NestingCSS Some properties are just suffixes, like prefixes, such as Margin-top/margin-bottom if the CSS is this:{ border-
Introduction to Opacity functionsIn addition to using Rgba,Hsla , and transform to control color transparency in CSS, you can use opacity to control it, except that the first two are only for color transparent channels are processed, while the latter controls the transparency of the entire element .In Sass, a series of transparent functions are provided, except that this series of transparent functions are mainly used to deal with color transparency:
LASS1. Import: filename of the file where the @import is located2. Variable: @ name: value attribute name: @ name;3. Mix:. Name {multiple attribute: value}. Name;4. Mixed with parameters:. Name (@ name {property}). Name (value)5. Multi-parameter blending:. Name (@x,@y,@) {multiple attribute: value}. Name (x,y,);PS: File name post-stamp:. LassSASS1.$ variable Name ($ property: value;) Property Name: $ name {value}2.mixin Mixed parameters: @mixin declaration blending, called by @include:@mixin nam
Less noon website has detailed description:http://www.1024i.com/demo/less/Where I use the Koala full platform support, domestic. : http://koala-app.com/index-zh.html
Multi-lingual support: Support for less, Sass, Coffeescript, and Compass frameworks.
Real-time compilation: Listen to the file, when the file changes automatically perform the compilation, all this in the background, without manual operation.
Compile options: You can set compi
Okay. shows the effects and main principles of the SASS circular animation menu.
Click here for online research and click here for download.
Are you ready? Go->
Html file
In css, we use the scss Syntax of sass and the compass library.
/* Variable declaration $ n, number of sub-menus $ r, radius of the circular menu */$ n: 10; $ r: 100px ;. menu {/* align the residence of the circular menu */position: ab
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.