- $bg: darken(white, 10%);
- $shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
- *{
- margin:0;
- padding:10px;
- box-sizing:border-box;
- }
- img{
- max-width:100%;
- }
- body{
- background-color:$bg;
- display:flex;
- height:100vh;
- width:100vw;
- font-family:'Montserrat';
- }
- .container{
- width:1200px;
- max-width:100%;
- margin:auto;
- }
- .display{
- display:flex;
- flex-wrap:wrap;
- justify-content:space-around;
- .display-item{
- flex-grow:1;
- padding:15px;
- >span{
- display:block;
- text-align:center;
- padding:10px;
- font-size:2em;
- }
- }
- }
- .business-card, .flippable-business-card{
- width:340px;
- height:230px;
- max-width:100%;
- border-radius:4px;
- margin:0 auto;
- }
- .business-card{
- display:flex;
- flex-direction:column;
- background: linear-gradient(135deg, #fff 0%,#fff 50%,rgba(0,200,200,.4) 50.5%,rgba(0,200,200, .6) 100%);
- color:rgba(0,0,0,.8);
- box-shadow:$shadow;
- .profile{
- display:flex;
- flex-basis:150px;
- width:100%;
- border-bottom:1px solid rgba(0,0,0,.2);
- padding:15px;
- .profile-title{
- padding-left:15px;
- display:flex;
- flex-direction:column;
- justify-content:space-around;
- h2{
- font-size:1.4em;
- }
- }
- }
- .info{
- display:flex;
- flex-grow:1;
- .info-contact{
- padding:15px;
- display:flex;
- flex-shrink:1;
- flex-direction:column;
- justify-content:space-around;
- a{
- color:rgba(0,0,0,.8);
- }
- i{
- font-size:1.2em;
- width:25px;
- }
- }
- }
- }
- /* Style all font awesome icons */
- .fa {
- padding: 10px;
- font-size: 30px;
- width: 10px;
- text-align: center;
- text-decoration: none;
- border-radius: 20%;
- }
- /* Add a hover effect if you want */
- .fa:hover {
- opacity: 0.7;
- }
- /* Set a specific color for each brand */
- /* Facebook */
- .fa-facebook {
- background: #3B5998;
- color: white;
- }
[text] css
Viewer
Editor
You can edit this paste and save as new: