Difference between revisions of "EssentialsStyles.css"
Line 57: | Line 57: | ||
} | } | ||
− | .tier2 > ol a:before { counter-reset: | + | div.tier2 > ol > li > a:before { counter-reset: li 10 } |
Revision as of 00:33, 8 April 2014
body h1.firstHeading { display:none; }
ol{ counter-reset: li; /* Initiate a counter */ list-style: none; /* Remove default numbering */ *list-style: decimal; /* Keep using default numbering for IE6/7 */ font: 15px 'trebuchet MS', 'lucida sans'; padding: 0; margin-bottom: 4em; text-shadow: 0 1px 0 rgba(255,255,255,.5); }
ol ol{ margin: 0 0 0 2em; /* Add some left margin for inner lists */ }
ol a{ position: relative; display: block; padding: .4em .4em .4em 2em; *padding: .4em; margin: .5em 0; background: #ddd; color: #444; text-decoration: none; border-radius: .3em; transition: all .3s ease-out; }
ol a:hover{ background: #eee;
color: #444;
}
ol a:hover:before{
transform: rotate(360deg);
}
ol a:before{ content: counter(li); counter-increment: li; position: absolute; left: -1.3em; top: 50%; margin-top: -1.3em;
color: #FFF;
background: #fb5235; text-shadow: 0 1px 0 rgba(68,68,68,.5); height: 2em; width: 2em; line-height: 2em; border: .3em solid #fff; text-align: center; font-weight: bold; border-radius: 2em; transition: all .3s ease-out; }
div.tier2 > ol > li > a:before { counter-reset: li 10 }
.menuitem {
background: #eee;
padding: .6em;
border-radius: .3em;
text-shadow: 0 1px 0 rgba(255,255,255,.5);
font: 15px 'trebuchet MS', 'lucida sans';
margin: .5em;
}
.menuitem a{ text-decoration: none; background: #fb5235; padding: .3em .8em; height: 2em; width: 2em; line-height: 2em; text-shadow: 0 1px 0 rgba(68,68,68,.5); color: #FFF; text-align: center; font-weight: bold; border-radius: 2em; transition: all .3s ease-out; }
.menuitem a:hover { background: #FDBAAE; color: #fb5235; text-shadow: 0 1px 0 rgba(255,255,255,.5); }
.menuitem ul {
padding: 0 0 0 2em;
margin: 0 0 .7em;
}
.menuitem ul li {
position: relative;
display: inline;
padding: .5em 2em;
line-height: 2.8em;
margin-right: .5em; background: #ddd; color: #444; text-decoration: none; border-radius: .3em; transition: all .3s ease-out; }
.menuitem ul li:last-child { margin-bottom: 0; }
p {
max-width: none;
}
h2 { cursor: pointer; }