A Pen by Dave Rupert on CodePen.
Last active
August 29, 2015 14:03
-
-
Save lhid/7801fb57238734df6461 to your computer and use it in GitHub Desktop.
A Pen by Dave Rupert.
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
<!-- Every Module Ever Scaffold --> | |
<div class="module"> | |
<header class="module-header"> | |
<h2 class="module-title">Module Title</h2> | |
</header> | |
<div class="module-content"> | |
<p class="module-text">Lorem ipsum dolor sit amet, consectetur adipisicing elit. <a href="#" class="module-link">Dolorum delectus</a> adipisci quos magnam quo ut cumque dolor atque autem omnis in culpa amet quia ducimus odit, recusandae commodi, nam nulla.</p> | |
<ul class="module-list"> | |
<li class="module-item"> | |
<a href="#" class="module-link module-item-link">Link Text</a> | |
</li> | |
</ul> | |
</div> | |
<footer class="module-footer"> | |
<p class="module-text module-footer-text">Short phrase</p> | |
</footer> | |
</div> |
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
// Module | |
// ---------------------------------------------------------------- // | |
// Features | |
// - Namespaced instead of nested, for faster selection. | |
// - No element (<ul>,<li>, <a>) styling, for faster selection. | |
// - Styled off of classes, for maximum overrides. | |
// | |
// How to use: | |
// - Rename "module" to whatever it is you're describing. | |
// - Don't need something? Delete it. | |
// - Add your own super descriptive and helpful comments. | |
// --------------------------------------------------------------- // | |
.module {} | |
// Header | |
.module-header {} | |
.module-title {} | |
// Content | |
.module-content {} | |
.module-text {} | |
.module-link {} | |
.module-list {} | |
.module-item {} | |
.module-item-link {} | |
// Footer | |
.module-footer {} | |
.module-footer-text {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment