Fix typos and improve styles (#2460)

This commit is contained in:
César Suárez Ortega 2016-10-15 16:22:02 +02:00 committed by ven
parent 81ce1c4b71
commit f7a106ebc5

View File

@ -16,11 +16,11 @@ Less (and other preprocessors, such as [Sass](http://sass-lang.com/) help develo
/*Multi line comments are preserved. */
/* Variables
==============================*/
/* You can store a CSS value (such as a color) in a variable.
Use the '@' symbol to create a variable. */
@ -38,6 +38,7 @@ body {
}
/* This would compile to: */
body {
background-color: #a3a4ff;
color: #51527F;
@ -49,11 +50,11 @@ body {
each time it appears throughout your stylesheet. */
/* Mixins
==============================*/
/* If you find you are writing the same code for more than one
element, you might want to reuse that easily.*/
@ -73,6 +74,7 @@ div {
}
/* Which would compile to: */
.center {
display: block;
margin-left: auto;
@ -116,11 +118,11 @@ div {
}
/* Nesting
==============================*/
/* Less allows you to nest selectors within selectors */
ul {
@ -175,16 +177,17 @@ ul li a {
}
/* Functions
==============================*/
/* Less provides functions that can be used to accomplish a variety of
tasks. Consider the following */
tasks. Consider the following: */
/* Functions can be invoked by using their name and passing in the
required arguments */
required arguments. */
body {
width: round(10.25px);
}
@ -215,11 +218,10 @@ body {
mixins. When trying to choose between a function or a mixin, remember
that mixins are best for generating CSS while functions are better for
logic that might be used throughout your Less code. The examples in
the Math Operators' section are ideal candidates for becoming a reusable
the 'Math Operators' section are ideal candidates for becoming a reusable
function. */
/* This function will take a target size and the parent size and calculate
and return the percentage */
/* This function calculates the average of two numbers: */
.average(@x, @y) {
@average-result: ((@x + @y) / 2);
@ -236,11 +238,12 @@ div {
padding: 33px;
}
/*Extend (Inheritance)
==============================*/
/*Extend is a way to share the properties of one selector with another. */
.display {
@ -269,11 +272,11 @@ div {
add unnecessary bloat to the files created by the Less compiler. */
/*Partials and Imports
==============================*/
/* Less allows you to create partial files. This can help keep your Less
code modularized. Partial files conventionally begin with an '_',
e.g. _reset.less. and are imported into a main less file that gets
@ -314,11 +317,11 @@ body {
}
/* Math Operations
==============================*/
/* Less provides the following operators: +, -, *, /, and %. These can
be useful for calculating values directly in your Less files instead
of using values that you've already calculated by hand. Below is an example
@ -377,9 +380,7 @@ If you want to play with Less in your browser, check out:
## Compatibility
Less can be used in any project as long as you have a program to compile it
into CSS. You'll want to verify that the CSS you're using is compatible
with your target browsers.
Less can be used in any project as long as you have a program to compile it into CSS. You'll want to verify that the CSS you're using is compatible with your target browsers.
[QuirksMode CSS](http://www.quirksmode.org/css/) and [CanIUse](http://caniuse.com) are great resources for checking compatibility.