Created
June 25, 2016 18:23
-
-
Save eharris99/e6ebf2746970ab88e195925ba8e49c76 to your computer and use it in GitHub Desktop.
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
@mixin backface-visibility($visibility) { | |
backface-visibility: $visibility; | |
-webkit-backface-visibility: $visibility; | |
-moz-backface-visibility: $visibility; | |
-ms-backface-visibility: $visibility; | |
-o-backface-visibility: $visibility; | |
} | |
@mixin stripes($direction, $width-percent, $stripe-color, $stripe-background: #FFF) { | |
background: repeating-linear-gradient( | |
$direction, | |
$stripe-background, | |
$stripe-background ($width-percent - 1), | |
$stripe-color 1%, | |
$stripe-background $width-percent | |
); | |
} | |
@mixin transform($transformation) { | |
transform: $transformation; | |
-webkit-transform: $transformation; | |
-moz-transform: $transformation; | |
-ms-transform: $transformation; | |
-o-transform: $transformation; | |
} | |
@mixin photo-content { | |
object-fit: cover; | |
} | |
//Add your own mixins here | |
.notecard { | |
width: 500px; | |
height: 300px; | |
border: 1px solid black; | |
display: inline-block; | |
margin: 20px; | |
font-family: Roboto, sans-serif; | |
box-shadow: 1px 1px 2px 2px rgba(0,0,0,.2); | |
&:hover{ | |
@include transform (rotatey(-180deg)); | |
} | |
.front, .back { | |
width: 500px; | |
height: 300px; | |
position: absolute; | |
@include backface-visibility(hidden); | |
} | |
.front { | |
z-index: 3; | |
font-size: 20px; | |
.word { | |
display: block; | |
text-align: center; | |
position: absolute; | |
top: 40%; | |
} | |
} | |
.back { | |
z-index: 1; | |
word-wrap: break-word; | |
line-height: 1.6; | |
.definition { | |
width: 100%; | |
height: 100%; | |
.photo { | |
width: 60%; | |
margin: 0px auto; | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment