Skip to content

Instantly share code, notes, and snippets.

@CharlesAMoss
Created June 13, 2015 02:14
Show Gist options
  • Save CharlesAMoss/babc7f843dae1b1c4378 to your computer and use it in GitHub Desktop.
Save CharlesAMoss/babc7f843dae1b1c4378 to your computer and use it in GitHub Desktop.
example code for card design
/* These styles correspond to card.rb from github.com/CharlesAMoss/ruby-tools */
*, *:before, *:after {
box-sizing: border-box;
}
body {
background: #f9f9f9;
color: #000;
font-family: Tahoma, Verdana, sans-serif;
margin: 0;
width: 98%;
}
.wrapper {
margin: 50px auto;
width: 640px;
}
.card {
margin: 0 auto;
width: 56.25%;
border: 1px solid #aab6c3;
border-radius: 1px;
background-color: #5bc0de; /* #0f9d58 green - #F1BF26 yellow */
box-shadow: 0 3px 6px rgba(0,0,0,.16),
0 3px 6px rgba(0,0,0,.23);
}
.avatar {
border-radius: 50%;
border: 1px solid #aab6c3;
display: block;
margin: 50px auto 70px;
width: 225px;
}
.badge {
background: #428bca;
border-radius: 50%;
box-shadow: 0 3px 6px rgba(0,0,0,.16),
0 3px 6px rgba(0,0,0,.23);
color:#fff;
float: right;
font-size: 25px;
font-weight: 500;
height: 55px;
line-height: 1;
margin-right: 25px;
margin-top: -27px;
padding: 15px;
text-align: center;
width: 55px;
}
.well {
background-color: #fff;
padding: 40px 20px;
}
.well span {
font-size: 36px;
font-weight: 100;
letter-spacing: 1px;
line-height: 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment