Created
April 8, 2014 17:30
-
-
Save exarcheia-web/10159932 to your computer and use it in GitHub Desktop.
MODULES BUILT AROUND THE EM UNIT
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
| /* MODULES BUILT AROUND THE EM UNIT */ | |
| *, *:before, *:after { | |
| box-sizing: border-box; | |
| } | |
| body { | |
| font-family: Georgia, serif; | |
| margin-top: 50px; | |
| } | |
| img { | |
| max-width: 100%; | |
| vertical-align: middle; | |
| height: auto; | |
| } | |
| .media { | |
| background: orchid; | |
| overflow: hidden; | |
| font-size: 10px; | |
| width: 60em; | |
| padding: 1em; | |
| } | |
| .media__image { | |
| float: left; | |
| margin: 0 1.5em 0 0; | |
| width: 25em; | |
| } | |
| .media__content { | |
| padding: 0; | |
| } | |
| .media__content > * { | |
| font-size: 1.7em; | |
| } | |
| .media__title { | |
| margin: 0; | |
| font-size: 3em; | |
| } |
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
| <article class="media"> | |
| <figure class="media__image"> | |
| <img src="http://placekitten.com/700/550"> | |
| </figure> | |
| <div class="media__content"> | |
| <h2 class="media__title">My title</h2> | |
| <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Modi inventore atque reprehenderit ipsa quo repellat magni ipsam eius err</p> | |
| <a class="more" href="#0">Read more</a> | |
| </div> | |
| </article> |
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
| // alert('Hello world!'); |
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
| {"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment