Skip to content

Instantly share code, notes, and snippets.

@exwar
Created February 2, 2012 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save exwar/1723646 to your computer and use it in GitHub Desktop.
Save exwar/1723646 to your computer and use it in GitHub Desktop.
DBT
/**
* DBT
*/
body {
font: 13px/1.2 Arial, sans-serif;
}
.b-card {
position: relative;
display: inline-block;
border: 1px solid #bbb;
padding: 6px 6px 6px 26px;
border-radius: 3px;
}
.b-card::after {
content: '';
position: absolute;
top: 100%;
right: 10%;
cursor: pointer;
width: 0;
height: 0;
border-top: 8px solid #bbb;
border-left: 6px solid transparent;
border-right: 6px solid transparent;
}
.b-card:hover {
background: linear-gradient(top, #ddd, #bbb)
}
.b-card__name {
font-weight: bold;
margin: 0;
}
.b-card:hover .b-card__name {
color: #fff;
}
<div class="b-card">
<p class="b-card__name">Анатолий Иванович</p>
</div>
{"view":"split-vertical","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment