A Pen by ZaynahGiti on CodePen.
Created
June 8, 2017 19:11
-
-
Save ZaynahGiti/a2b98eb2b1b84ef5a6126e11bae25bd4 to your computer and use it in GitHub Desktop.
#DailyCSSImages: sample JS Blog
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
| <body> | |
| <div id="layout" class="pure-g"> | |
| <div class="sidebar pure-u-1 pure-u-md-1-4"> | |
| <div class="header"> | |
| <h1 class="brand-title">A Sample JavaScript Blog</h1> | |
| <nav class="nav"> | |
| <ul class="nav-list"> | |
| <li class="nav-item"> | |
| <img width="148" height="148" alt="javascriptLogo" class="post-logo" src="https://upload.wikimedia.org/wikipedia/commons/thumb/6/6a/JavaScript-logo.png/256px-JavaScript-logo.png"> | |
| </li> | |
| </ul> | |
| </nav> | |
| </div> | |
| </div> | |
| <div class="content pure-u-1 pure-u-md-3-4"> | |
| <div> | |
| <!-- A wrapper for all the blog posts --> | |
| <div class="posts"> | |
| <h1 class="content-subhead">Pinned Post</h1> | |
| <!-- A single blog post --> | |
| <section class="post"> | |
| <header class="post-header"> | |
| <img width="48" height="48" alt="javascriptLogo" class="post-logo" src="https://upload.wikimedia.org/wikipedia/commons/thumb/6/6a/JavaScript-logo.png/256px-JavaScript-logo.png"> | |
| <h2 class="post-title">Introducing ECMA6</h2> | |
| <p class="post-meta"> | |
| By <a href="#" class="post-author">ZeinaChallenges</a> under <a class="post-category post-category-js" href="#">JavaScript</a> | |
| </p> | |
| </header> | |
| <div class="post-description"> | |
| <p> | |
| Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. | |
| </p> | |
| </div> | |
| </section> | |
| </div> | |
| <div class="posts"> | |
| <h1 class="content-subhead">Recent Posts</h1> | |
| <section class="post"> | |
| <header class="post-header"> | |
| <img width="48" height="48" alt="javascriptLogo" class="post-logo" src="https://upload.wikimedia.org/wikipedia/commons/thumb/6/6a/JavaScript-logo.png/256px-JavaScript-logo.png"> | |
| <h2 class="post-title">Introducing JQuery</h2> | |
| <p class="post-meta"> | |
| By <a class="post-author" href="#">ZeinaChallenges</a> under <a class="post-category post-category-js" href="#">JavaScript</a> | |
| </p> | |
| </header> | |
| <div class="post-description"> | |
| <p> | |
| Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. | |
| </p> | |
| </div> | |
| </section> | |
| <section class="post"> | |
| <header class="post-header"> | |
| <img width="48" height="48" alt="javascriptLogo" class="post-logo" src="https://upload.wikimedia.org/wikipedia/commons/thumb/6/6a/JavaScript-logo.png/256px-JavaScript-logo.png"> | |
| <h2 class="post-title">Introducing React</h2> | |
| <p class="post-meta"> | |
| By <a class="post-author" href="#">ZeinaChallenges</a> under <a class="post-category post-category-js" href="#">React</a> | |
| </p> | |
| </header> | |
| <div class="post-description"> | |
| <p> | |
| Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. | |
| </p> | |
| </div> | |
| </section> | |
| </div> | |
| <div class="footer"> | |
| <div class="pure-menu pure-menu-horizontal"> | |
| <ul> | |
| <li class="pure-menu-item"><a href="http://twitter.com/zeina_sadaldeen" class="pure-menu-link">Twitter</a></li> | |
| </ul> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </body> | |
| </html> |
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
| * { | |
| -webkit-box-sizing: border-box; | |
| -moz-box-sizing: border-box; | |
| box-sizing: border-box; | |
| } | |
| a { | |
| text-decoration: none; | |
| color: rgb(61, 146, 201); | |
| } | |
| a:hover, | |
| a:focus { | |
| text-decoration: underline; | |
| } | |
| h3 { | |
| font-weight: 100; | |
| } | |
| .pure-img-responsive { | |
| max-width: 100%; | |
| height: auto; | |
| } | |
| #layout { | |
| padding: 0; | |
| } | |
| .header { | |
| text-align: center; | |
| top: auto; | |
| margin: 3em auto; | |
| } | |
| .sidebar { | |
| background: #F0DB4F; | |
| color: #fff; | |
| } | |
| .brand-title, | |
| .brand-tagline { | |
| margin: 0; | |
| } | |
| .brand-title { | |
| text-transform: uppercase; | |
| } | |
| .brand-tagline { | |
| font-weight: 300; | |
| color: rgb(176, 202, 219); | |
| } | |
| .nav-list { | |
| margin: 0; | |
| padding: 0; | |
| list-style: none; | |
| } | |
| .nav-item { | |
| display: inline-block; | |
| *display: inline; | |
| zoom: 1; | |
| } | |
| .nav-item a { | |
| background: transparent; | |
| border: 2px solid rgb(176, 202, 219); | |
| color: #fff; | |
| margin-top: 1em; | |
| letter-spacing: 0.05em; | |
| text-transform: uppercase; | |
| font-size: 85%; | |
| } | |
| .nav-item a:hover, | |
| .nav-item a:focus { | |
| border: 2px solid rgb(61, 146, 201); | |
| text-decoration: none; | |
| } | |
| .content-subhead { | |
| text-transform: uppercase; | |
| color: #aaa; | |
| border-bottom: 1px solid #eee; | |
| padding: 0.4em 0; | |
| font-size: 80%; | |
| font-weight: 500; | |
| letter-spacing: 0.1em; | |
| } | |
| .content { | |
| padding: 2em 1em 0; | |
| } | |
| .post { | |
| padding-bottom: 2em; | |
| } | |
| .post-title { | |
| font-size: 2em; | |
| color: #222; | |
| margin-bottom: 0.2em; | |
| } | |
| .post-logo { | |
| border-radius: 0px; | |
| float: right; | |
| margin-left: 1em; | |
| } | |
| .post-description { | |
| font-family: Georgia, "Cambria", serif; | |
| color: #444; | |
| line-height: 1.8em; | |
| } | |
| .post-meta { | |
| color: #999; | |
| font-size: 90%; | |
| margin: 0; | |
| } | |
| .post-category { | |
| margin: 0 0.1em; | |
| padding: 0.3em 1em; | |
| color: #fff; | |
| background: #999; | |
| font-size: 80%; | |
| } | |
| .post-category-design { | |
| background: #5aba59; | |
| } | |
| .post-category-pure { | |
| background: #4d85d1; | |
| } | |
| .post-category-yui { | |
| background: #8156a7; | |
| } | |
| .post-category-js { | |
| background: #F0DB4F; | |
| } | |
| .post-images { | |
| margin: 1em 0; | |
| } | |
| .post-image-meta { | |
| margin-top: -3.5em; | |
| margin-left: 1em; | |
| color: #fff; | |
| text-shadow: 0 1px 1px #333; | |
| } | |
| .footer { | |
| padding: 1em 0; | |
| } | |
| .footer a { | |
| color: #ccc; | |
| font-size: 80%; | |
| } | |
| .footer .pure-menu a:hover, | |
| .footer .pure-menu a:focus { | |
| background: none; | |
| } | |
| @media (min-width: 48em) { | |
| .content { | |
| padding: 2em 3em 0; | |
| margin-left: 25%; | |
| } | |
| .header { | |
| margin: 80% 2em 0; | |
| text-align: right; | |
| } | |
| .sidebar { | |
| position: fixed; | |
| top: 0; | |
| bottom: 0; | |
| } | |
| .footer { | |
| text-align: center; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment