A Pen by Marie Hekel on CodePen.
This file contains hidden or 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
| /* –------------------–----------- | |
| BrutalistCss - by @mhekel | |
| */ | |
| /* ------------------------------------------------------- | |
| FONT IMPORTS | |
| ------------------------------------------------------- */ | |
| @import url("https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700&display=swap"); | |
| @import url("https://fonts.cdnfonts.com/css/boldonse"); |
This file contains hidden or 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
| /** | |
| * FCC - Playing Cards | |
| */ | |
| /* #5 — playing-cards uses flexbox, centers children, wraps, 20px gap */ | |
| #playing-cards { | |
| display: flex; | |
| justify-content: center; | |
| flex-wrap: wrap; | |
| gap: 20px; |
This file contains hidden or 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
| <main id="playing-cards"> | |
| <div class="card hearts" id="hearts"> | |
| <div class="left heart">K♥</div> | |
| <div class="middle"> | |
| <div class="heart">♥</div> | |
| <div class="heart">♥</div> | |
| <div class="heart">♥</div> | |
| </div> |
A Pen by Marie Hekel on CodePen.
A CSS-only demo that simulates picking books off a shelf and previewing a page (on hover) in first-person. It all works using labels and offscreen radio inputs for each book, and a reset input as a Return button allows you to put everything back to its original position. I made up almost all the titles which parody random novels, developer attitudes, and some dark Internet things.
- No 3D support in IE
- Strange state animation behavior in Safari I have no idea how to fix
Update 12/13/23: Restored after being broken by Sass upgrade
This file contains hidden or 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
| <form class="container"> | |
| <input type="radio" name="title" id="book1"/> | |
| <input type="radio" name="title" id="book2"/> | |
| <input type="radio" name="title" id="book3"/> | |
| <input type="radio" name="title" id="book4"/> | |
| <input type="radio" name="title" id="book5"/> | |
| <input type="radio" name="title" id="book6"/> | |
| <input type="radio" name="title" id="book7"/> | |
| <input type="radio" name="title" id="book8"/> | |
| <input type="radio" name="title" id="book9"/> |
This file contains hidden or 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
| .case { | |
| border: 2rem solid #ccc; | |
| } | |
| .shelf { | |
| position: relative; | |
| display: flex; | |
| align-items: flex-end; | |
| height: 15rem; | |
| background: linear-gradient(to top, #666, #777 5%); |
A Pen by Marie Hekel on CodePen.
This file contains hidden or 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
| /** | |
| * Book Inventory App | |
| */ | |
| body { | |
| background: #f06; | |
| background: linear-gradient(45deg, #e5e5e5, #A3A3A3); | |
| min-height: 100%; | |
| } | |
| span {display: inline-block;} |