A Pen by @BrawadaCom on CodePen.
Created
July 26, 2016 13:14
-
-
Save CodeMyUI/3f0f1da85f6fd78bf1365a8e0aa9931d to your computer and use it in GitHub Desktop.
Pricing cards
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
.w-table | |
.w-table-cell | |
.w-container | |
.w-card.color-violet | |
.card-header | |
.w-title Basic | |
.w-price $9.99 | |
.container-button | |
a.w-button href="http://codepen.io/Anna_Batura/" target="_blank" | |
' Sign up | |
.card-content | |
.w-item | |
span | |
' 1GB | |
' Disk Space | |
.w-item | |
span | |
' 10GB | |
' Monthly Bandwidth | |
.w-item | |
span | |
' 1 | |
' Email Accounts | |
.w-card.color-green | |
.card-header | |
.w-title Standard | |
.w-price $19.99 | |
.container-button | |
.w-button Sign up | |
.card-content | |
.w-item | |
span | |
' 2GB | |
' Disk Space | |
.w-item | |
span | |
' 25GB | |
' Monthly Bandwidth | |
.w-item | |
span | |
' 2 | |
' Email Accounts | |
.w-card.color-blue | |
.card-header | |
.w-title Professional | |
.w-price $29.99 | |
.container-button | |
.w-button Sign up | |
.card-content | |
.w-item | |
span | |
' 5GB | |
' Disk Space | |
.w-item | |
span | |
' 50GB | |
' Monthly Bandwidth | |
.w-item | |
span | |
' 10 | |
' Email Accounts |
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
@import "compass/css3" | |
@import url(https://fonts.googleapis.com/css?family=Roboto:400,300,500) | |
$color-violet: #98f | |
$color-green: #1bbc9d | |
$color-blue: #3498db | |
$color-red: #DB343A | |
$color-pink: #E91E63 | |
.color-violet | |
.container-button | |
background-color: $color-violet | |
&:before | |
background-color: $color-violet | |
.w-item | |
span | |
color: $color-violet | |
.color-green | |
.container-button | |
background-color: $color-green | |
&:before | |
background-color: $color-green | |
.w-item | |
span | |
color: $color-green | |
.color-red | |
.container-button | |
background-color: $color-red | |
&:before | |
background-color: $color-red | |
.w-item | |
span | |
color: $color-red | |
.color-pink | |
.container-button | |
background-color: $color-pink | |
&:before | |
background-color: $color-pink | |
.w-item | |
span | |
color: $color-pink | |
.color-blue | |
.container-button | |
background-color: $color-blue | |
&:before | |
background-color: $color-blue | |
.w-item | |
span | |
color: $color-blue | |
body | |
height: 100vh | |
overflow: hidden | |
background-color: #D4D9ED | |
font-family: 'Roboto', sans-serif | |
.w-table | |
display: table | |
width: 100% | |
height: 100% | |
.w-table-cell | |
display: table-cell | |
vertical-align: middle | |
.w-container | |
position: relative | |
max-width: 100% | |
margin: 30px auto 0 | |
font-size: 0 | |
text-align: center | |
.w-card | |
cursor: pointer | |
background-color: #fff | |
display: inline-block | |
vertical-align: top | |
width: 300px | |
color: #333 | |
font-size: 30px | |
font-weight: 300 | |
margin: 0 0 30px | |
@include transition(all 0.3s) | |
.card-header | |
overflow: hidden | |
padding: 20px 0 0 | |
.w-title, .w-price | |
position: relative | |
z-index: 2 | |
.w-price | |
font-size: 42px | |
font-weight: 500 | |
padding: 1px 20px 20px | |
.card-content | |
padding: 20px | |
.w-item | |
font-size: 20px | |
padding: 10px | |
border-bottom: 1px solid #ddd | |
&:last-child | |
border-bottom: none | |
span | |
font-weight: 500 | |
.container-button | |
position: relative | |
.w-button | |
position: relative | |
display: block | |
padding: 20px | |
color: #fff | |
font-weight: 400 | |
z-index: 2 | |
text-decoration: none | |
@include transition(all 0.3s) | |
&:before, &:after | |
content: "" | |
position: absolute | |
top: 0px | |
left: 50% | |
width: 0% | |
height: 0% | |
border-radius: 50% | |
@include transition(all 0.3s) | |
&:after | |
z-index: 1 | |
background-color: rgba(255, 255, 255, 0.1) | |
@include transition(all 0.5s) | |
&:hover | |
.w-button | |
padding: 0px 20px 40px | |
&:before | |
top: -200px | |
left: -50px | |
width: 400px | |
height: 400px | |
&:after | |
top: -200px | |
left: -50px | |
width: 400px | |
height: 400px | |
&:hover | |
z-index: 2 | |
margin: -20px 0 50px | |
.w-button | |
opacity: 1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment