body
{
counter-reset:section;
}
h1
{
counter-reset:subsection;
}
h1:before
{
counter-increment:section;
content:"Section " counter(section) ". ";
}
h2:before
{
counter-increment:subsection;
content:counter(section) "." counter(subsection) " ";
}
element
{
width:110px;
height:110px;
border:thin solid black;
overflow-x:hidden;
overflow-y:hidden;
}
overflow-x: visible / hidden / scroll / auto / no-display / no-content;
#myDIV
{
background-color:lightblue;
transform:scaleY(1.1);
}
#myDIV
{
background-color:lightblue;
transform:scale(1.1);
}
#myDIV
{
background-color:lightblue;
transform:skewX(10deg));
}
element
{
width:200px;
height:100px;
background-color:yellow;
/* Rotate div */
transform:rotate(7deg);
-ms-transform:rotate(7deg); /* Internet Explorer */
-moz-transform:rotate(7deg); /* Firefox */
-webkit-transform:rotate(7deg); /* Safari and Chrome */
-o-transform:rotate(7deg); /* Opera */
}
element {
background:
#fff
url(image.png)
no-repeat
20px 100px
fixed;
}
element {
background-color: color || #hex || (rgb / % || 0-255);
background-image:url(URI);
background-repeat: repeat || repeat-x || repeat-y || no-repeat;
background-position: X Y || (top||bottom||center) (left||right||center);
background-attachment: scroll || fixed;
}
ul
{
list-style-type:none;
margin:0;
padding:0;
}
li {
display: inline;
padding-right: 10px;
}
.clearfix:after {
display: block;
clear: both;
visibility: hidden;
line-height: 0;
height: 0;
}
sass --watch style.scss:style.css
sass --watch custom.scss:./styles/custom.css
input, textarea {
width: 280px;
-webkit-transition: width 1s ease;
-moz-transition: width 1s ease;
-o-transition: width 1s ease;
-ms-transition: width 1s ease;
transition: width 1s ease;
}
input:focus, textarea:focus {
width: 340px;
}
a, a:link, a:visited {
color: lightblue;
-webkit-transition: color .4s linear;
-moz-transition: color .4s linear;
-o-transition: color .4s linear;
-ms-transition: color .4s linear;
transition: color .4s linear;
}
a:hover {
color: white;
}
/* unvisited link */
a:link {
color:#000000;
}
a:visited {color:#FFF000;} /* visited link */
a:hover {color:#c7c7c7;} /* mouse over link */
a:active {color:#b5b2b2;} /* selected link */
.center
{
margin-left:auto;
margin-right:auto;
width:70%;
background-color:#b0e0e6;
}
selector {
width:100%;
height:100%;
background:url(logo.png) center center no-repeat;
}