A Pen by Daniel Hannih on CodePen.
Created
November 4, 2016 04:16
-
-
Save CodeMyUI/a5705fd13fb5a462a7bd95f8d599767e to your computer and use it in GitHub Desktop.
Fancy Arcticle Card
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
.paper | |
img(src="https://d2lm6fxwu08ot6.cloudfront.net/img-thumbs/960w/PD0XWZZSX5.jpg").poster | |
h2 Featured | |
h1 Back to Nature | |
hr | |
p Down on the West Coast where the sand meets the crashing waves and your dreams come true. | |
a.btn Read More | |
.space | |
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 url('https://fonts.googleapis.com/css?family=Open+Sans:700|Playfair+Display'); | |
$san-serif:'Open Sans', | |
sans-serif; | |
$serif:'Playfair Display', | |
serif; | |
$color-shadow:transparentize(#303336, .9); | |
* { | |
user-select: none; | |
transition: .3s ease; | |
-webkit-font-smoothing: antialiased; | |
} | |
body { | |
background-image: linear-gradient(-45deg, #EEF0F3 0%, #F6F5F3 100%); | |
font-size:62.5%; | |
} | |
.paper { | |
margin: 10vh auto; | |
min-width: 20vw; | |
max-width: 60vh; | |
min-height: 20vh; | |
border-radius: 4px; | |
box-shadow: 0 15px 35px rgba(50, 50, 90, .1), 0 5px 15px rgba(0, 0, 0, .07); | |
transition: .6s ease; | |
background: white; | |
text-align: center; | |
} | |
.paper:hover { | |
box-shadow: 0 18px 35px rgba(50, 50, 90, .1), 0 8px 15px rgba(0, 0, 0, .07); | |
transform: translateY(-1px); | |
} | |
img { | |
max-width: 100%; | |
max-height: 100%; | |
} | |
.poster { | |
border-radius: 4px 4px 0 0; | |
margin-bottom: 2vh; | |
} | |
h1 { | |
font-size: 2.6rem; | |
color: #303336; | |
letter-spacing: 1px; | |
margin: 2vh 4vw; | |
font-family: $serif; | |
} | |
h2 { | |
font-size: .4rem; | |
color: #A0A6AB; | |
letter-spacing: 2px; | |
text-transform: uppercase; | |
font-family: $san-serif; | |
font-weight: 700; | |
margin-bottom: 10px; | |
} | |
hr { | |
width: 20%; | |
margin-top: 3vh; | |
margin-bottom: 3vh; | |
border: 0; | |
border-bottom: 1px solid #E6E9EC; | |
} | |
p { | |
margin: 2vh 8vw; | |
text-align: center; | |
padding-bottom: 1vh; | |
color: #A0A6AB; | |
font-family: $serif; | |
font-weight: 400; | |
font-size: .9rem; | |
line-height: 1.25rem; | |
} | |
.btn, | |
a.btn { | |
display: inline-block; | |
text-transform: uppercase; | |
cursor: pointer; | |
text-decoration: none; | |
line-height: 20px; | |
border-radius: 4px; | |
padding: 1vh 2vh; | |
letter-spacing: .02rem; | |
background: #664EF7; | |
color:white; | |
font-family:$san-serif; | |
font-size:.8rem; | |
box-shadow:0 0px 0px $color-shadow, | |
0 0px 0px rgba(0, 0, 0, 0); | |
} | |
.btn, | |
a.btn:hover { | |
background: #7C66FF; | |
box-shadow:0 7px 14px $color-shadow, | |
0 3px 6px rgba(0, 0, 0, .08); | |
transform: translateY(-1px); | |
} | |
.btn, | |
a.btn:active { | |
box-shadow:0 4px 6px $color-shadow, | |
0 1px 3px rgba(0, 0, 0, .12); | |
transform: translateY(1px); | |
} | |
.space{ | |
height:4vh; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment