Notepad Style with CSS
CSS Code
body { padding-top: 10vh; background-color: #FCFC62; width: 100%; height: 100%; overflow: hidden; } .notepad-background { width: 100vw; height: 70%; background-color: #FCE53A; position: absolute; top: 24%; left: 20%; transform-origin: bottom left; transform: rotate(45deg); box-shadow: -15vw -25.5vw 0 0 #FCE53A; } .notepad-wrapper { position: relative; margin: auto; width: 70vw; height: 70vw; } .notepad-glossy { width: 54%; height: 90%; position: absolute; top: 5%; left: 26%; border-radius: 0 0.5vw 0.5vw 0; overflow: hidden; } .notepad-glossy::before { content: " "; display: block; width: 100%; height: 1.2%; position: absolute; top: 98.8%; left: 0%; background-color: #F89356; } .notepad-glossy .inner { width: 140%; height: 60%; position: absolute; top: 60%; left: -5%; background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 40%); transform: rotate(-30deg); } .notepad-cover { width: 60%; height: 90%; border-radius: 0.5vw; } .notepad-cover.top { position: absolute; top: 5%; left: 20%; background-color: #F78154; } .notepad-cover.bottom { position: absolute; top: 3.5%; left: 21.5%; background-color: #f55d23; } .notepad-rings, .notepad-holes { width: 9%; height: 100%; position: absolute; top: 0%; left: -3.7%; display: flex; flex-direction: column; justify-content: space-around; } .notepad-ring { width: 100%; height: 0.5%; background-color: #a19a92; } .notepad-ring::after { content: " "; display: block; width: 100%; height: 100%; background-color: #a19a92; margin-top: 15%; border-radius: 1vw; } .notepad-border { width: 10%; height: 100%; position: absolute; top: 0%; left: 0%; border-radius: 0.5vw 0 0 0.5vw; background-color: #f66f3c; } .notepad-holes { position: absolute; top: 0.4%; left: 3.2%; } .notepad-hole { width: 100%; height: 2.5%; } .notepad-hole::after { content: " "; display: block; width: 40%; height: 100%; background-color: #db440a; border-radius: 50%; box-shadow: inset 0.5vw 0 0 0 #FFFFFF; } .notepad-box { width: 60%; height: 20%; position: absolute; top: 10%; left: 25%; background-color: #FFFFFF; border-radius: 0.5vw; } .notepad-box::after { content: " "; display: block; width: 80%; height: 80%; position: absolute; top: 10%; left: 10%; background: linear-gradient(to bottom, transparent 91%, #F78154 91%); background-size: 100% 25%; background-position: 0 -1vw; } .notepad-papers { width: 59%; height: 89%; background-color: #FFFFFF; border-radius: 0 0.2vw 0 0; position: absolute; top: 4%; left: 22%; box-shadow: -0.1vw 0.1vw 0 0 #FFFFFF, -0.2vw 0.2vw 0 0 #FFFFFF, -0.3vw 0.3vw 0 0 #FFFFFF, -0.4vw 0.4vw 0 0 #FFFFFF, -0.5vw 0.5vw 0 0 #FFFFFF, -0.6vw 0.6vw 0 0 #FFFFFF, -0.7vw 0.8vw 0 0 #FFFFFF; } .notepad-transparency { width: 85%; height: 80%; position: absolute; top: 15%; left: 10%; background: linear-gradient(to bottom, transparent 91%, #f77a4a 91%); background-size: 100% 5%; } .notepad-transparency::after { content: " "; display: block; width: 30%; height: 10%; position: absolute; top: -15%; left: 70%; border: 0.2vw solid #f77a4a; }
HTML Code
<div class="notepad-wrapper"> <div class="notepad-background"></div> <div class="notepad-cover bottom"></div> <div class="notepad-papers"></div> <div class="notepad-cover top"> <div class="notepad-border"></div> <div class="notepad-transparency"></div> <div class="notepad-box"></div> <div class="notepad-holes"> <div class="notepad-hole"></div> <div class="notepad-hole"></div> <div class="notepad-hole"></div> <div class="notepad-hole"></div> <div class="notepad-hole"></div> <div class="notepad-hole"></div> <div class="notepad-hole"></div> <div class="notepad-hole"></div> <div class="notepad-hole"></div> <div class="notepad-hole"></div> <div class="notepad-hole"></div> <div class="notepad-hole"></div> <div class="notepad-hole"></div> <div class="notepad-hole"></div> </div> <div class="notepad-rings"> <div class="notepad-ring"></div> <div class="notepad-ring"></div> <div class="notepad-ring"></div> <div class="notepad-ring"></div> <div class="notepad-ring"></div> <div class="notepad-ring"></div> <div class="notepad-ring"></div> <div class="notepad-ring"></div> <div class="notepad-ring"></div> <div class="notepad-ring"></div> <div class="notepad-ring"></div> <div class="notepad-ring"></div> <div class="notepad-ring"></div> <div class="notepad-ring"></div> </div> </div> <div class="notepad-glossy"> <div class="inner"></div> </div> </div>
LIVE PREVIEW
See the Pen Notepad Style with CSS by Peternak Blog (@peternakblog) on CodePen.
Credit: Davide Francesco Merico