Skip to content

Instantly share code, notes, and snippets.

@sanbor
Created March 28, 2012 15:10
Show Gist options
  • Select an option

  • Save sanbor/2227012 to your computer and use it in GitHub Desktop.

Select an option

Save sanbor/2227012 to your computer and use it in GitHub Desktop.
less makes hard to understand something simple like css
ul {
margin:0;
padding:0;
li {
list-style:none;
text-align: left;
position: relative;
a,
p {
line-height: 16px;
font-size: 11px;
border-bottom: 1px solid;
}
a {
display: block;
font-weight: bold;
text-decoration: none;
padding: 3px 7px;
}
a.delete,
&.last-child a.delete {
display: block;
position: absolute;
top: 4px;
right: 4px;
padding: 0;
margin: 0;
height: 14px;
width: 14px;
background: url("${contextPath}/images/icons-sprite.png") left -1484px no-repeat;
}
a.delete:hover {
background: url("${contextPath}/images/icons-sprite.png") left -1502px no-repeat;
}
&.last-child {
a,
p {
position: relative;
-webkit-border-radius: 0 0 10px 10px;
-moz-border-radius: 0 0 10px 10px;
border-radius: 0 0 10px 10px;
border-bottom: 0;
padding-bottom: 5px;
z-index: 1;
.ie & {
behavior: url(${contextPath}/js/libs/PIE.htc);
}
}
&:hover {
a {
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
.ie & {
behavior: url(${contextPath}/js/libs/PIE.htc);
}
}
}
}
p {
display:none;
margin:0;
padding:5px 9px;
color:#707070;
font-size:12px;
font-family:"Humanist521BT-Roman",Arial;
background: #fff !important;
}
&:hover p {
display:block;
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment