A Pen by Pan Stav Geffen on CodePen.
Created
November 19, 2014 13:25
-
-
Save panstav/aedd7c1e20ce1d774f65 to your computer and use it in GitHub Desktop.
azzBeo
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="card"> | |
<header> | |
<img class="profile" src="https://s3.amazonaws.com/uifaces/faces/twitter/holdenweb/128.jpg"> | |
<div class="credentials"> | |
<div class="name">ישראל ישראלי</div> | |
<div class="description">כמה וכמה מילים לגבי ישראל ישראלי</div> | |
</div> | |
</header> | |
<main> | |
<ul class="props"> | |
<li class="directMessage fa fa-newspaper-o">מאמרים</li> | |
<li class="directMessage fa fa-envelope-o">פנייה ישירה</li> | |
<li class="personalWebsite fa fa-home">אתר אינטרנט</li> | |
<li class="certificates fa fa-certificate">תעודות</li> | |
</ul> | |
</main> | |
</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
body | |
margin-top: 50px | |
direction: rtl | |
background-color: grey | |
$cardWidth: 420px | |
$profileOffset: 24px | |
.card | |
width: $cardWidth | |
margin: auto | |
background-color: white | |
box-shadow: -1px 1px 5px #3F3F3F | |
$headerColor: #D3D3D3 | |
header | |
$headerHeight: 100px | |
height: $headerHeight | |
margin-bottom: $profileOffset*2 | |
background-color: $headerColor | |
.profile | |
float: right | |
height: $headerHeight | |
width: $headerHeight | |
position: relative | |
top: $profileOffset | |
right: $profileOffset | |
.credentials | |
float: right | |
margin: | |
top: $profileOffset | |
right: $profileOffset*1.5 | |
.name | |
font-weight: bold | |
margin-bottom: $profileOffset/3 | |
.description | |
font-size: .8em | |
main | |
width: $cardWidth | |
min-height: 200px | |
.props | |
margin-right: $profileOffset/4 | |
padding-right: 0px | |
li | |
display: block | |
margin-bottom: .7em | |
cursor: pointer | |
font-size: .9em | |
color: darken($headerColor, 40%) | |
&:before | |
color: $headerColor | |
&:hover | |
color: #1E364E | |
&:before | |
color: darken($headerColor, 40%) | |
.fa:before | |
padding-left: $profileOffset/4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment