Created
February 2, 2012 14:13
-
-
Save exwar/1723646 to your computer and use it in GitHub Desktop.
DBT
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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; | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="b-card"> | |
<p class="b-card__name">Анатолий Иванович</p> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"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