Created
September 20, 2017 17:29
-
-
Save amundo/0966f9792ac98b83e171204681ea6cce to your computer and use it in GitHub Desktop.
paper text area
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
<div class="paper"> | |
<div class="paper-content"> | |
<textarea autofocus>Hello there ! Here's a paper text area, feel free to type something ...</textarea> | |
</div> | |
</div> | |
<footer> | |
Orginal pen by <a href="https://codepen.io/MarcMalignan/" target="_blank">Marc Malignan</a> inspired by by Allan Peters | |
</footer> |
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=Roboto); | |
@import url(https://fonts.googleapis.com/css?family=Handlee); | |
body { | |
margin: 40px 0 0; | |
background: #91D1D3; | |
font-family: 'Roboto', sans-serif; | |
} | |
.paper { | |
position: relative; | |
width: 90%; | |
max-width: 800px; | |
min-width: 400px; | |
height: 390px; | |
margin: 0 auto; | |
background: #fafafa; | |
border-radius: 10px; | |
box-shadow: 0 2px 8px rgba(0,0,0,.3); | |
overflow: hidden; | |
} | |
.paper:before { | |
content: ''; | |
position: absolute; | |
top: 0; bottom: 0; left: 0; | |
width: 60px; | |
background: radial-gradient(#575450 6px, transparent 7px) repeat-y; | |
background-size: 30px 30px; | |
border-right: 3px solid #D44147; | |
box-sizing: border-box; | |
} | |
.paper-content { | |
position: absolute; | |
top: 30px; right: 0; bottom: 30px; left: 60px; | |
background: linear-gradient(transparent, transparent 28px, #91D1D3 28px); | |
background-size: 30px 30px; | |
} | |
.paper-content textarea { | |
width: 100%; | |
max-width: 100%; | |
height: 100%; | |
max-height: 100%; | |
line-height: 30px; | |
padding: 0 10px; | |
border: 0; | |
outline: 0; | |
background: transparent; | |
color: mediumblue; | |
font-family: 'Handlee', cursive; | |
font-weight: bold; | |
font-size: 18px; | |
box-sizing: border-box; | |
z-index: 1; | |
} | |
footer { | |
margin-top: 30px; | |
text-align: center; | |
font-size: 12px; | |
color: rgba(0,0,0,.6); | |
} | |
footer a { | |
color: rgba(255,255,255,.8); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment