Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true

# Matches multiple files with brace expansion notation
[*.{js,jsx,html,sass,css}]
charset = utf-8
indent_style = tab
indent_size = 4
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ assignment_markup_warmup_sprint

And 1 and 2! And 1, and 2...!
[An HTM5 and CSS3 project from the Viking Code School](http://www.vikingcodeschool.com)

Name: Kevin Lezama
223 changes: 223 additions & 0 deletions css/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,223 @@
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}

body {
line-height: 1;
}

ol, ul {
list-style: none;
}

blockquote, q {
quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}

table {
border-collapse: collapse;
border-spacing: 0;
}

*,
*:before,
*:after {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-o-box-sizing: border-box;
box-sizing: border-box;
}

body {
font-family: 'Roboto Condensed', sans-serif;
line-height: 1.5;
}

header {
font-size: 1.125em;
font-weight: 400;
text-transform: capitalize;
width: 100%;
padding: 10px;
font-size: 15px;
font-weight: 400;
background: #FFE497;
border-bottom: 1px solid #939393;
}

.intro {
position: relative;
width: 100%;
height: 100px;
text-align: center;
background: #B4D6A6;
}
.intro .center {
position: absolute;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
width: 80%;
}
.intro h1 {
font-size: 1.75em;
font-weight: 700;
}
.intro h4 {
font-style: italic;
}

/* -------------- MAIN CONTENT LAYOUT -------------- */
#main-content {
width: 90%;
margin: 0 auto;
}
#main-content .blog-post {
margin: 10px 0;
padding: 8px;
font-size: 1em;
font-weight: 300;
text-align: justify;
background: #A0C3C8;
border: 1px solid #000;
border-radius: 4px;
}
#main-content .blog-post .post-title {
font-size: 1.375em;
font-weight: 400;
text-transform: capitalize;
text-align: center;
}
#main-content .post-date {
text-align: center;
}
#main-content .topic {
font-size: 1.125em;
font-weight: 400;
text-transform: capitalize;
}
#main-content .topic:nth-of-type(2) {
margin-top: 8px;
}

/* Tablets */
@media (min-width: 720px) and (min-width: 720px) {
#main-content {
width: 100%;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-webkit-flex-flow: row wrap;
-ms-flex-flow: row wrap;
flex-flow: row wrap;
}
#main-content .blog-post {
margin: 2%;
}
#main-content .blog-post:nth-of-type(1) {
-webkit-box-flex: 1;
-webkit-flex-grow: 1;
-ms-flex-positive: 1;
flex-grow: 1;
-webkit-flex-basis: 35%;
-ms-flex-preferred-size: 35%;
flex-basis: 35%;
}
#main-content .blog-post:nth-of-type(2) {
-webkit-flex-basis: 45%;
-ms-flex-preferred-size: 45%;
flex-basis: 45%;
height: 250px;
}
}

/* Desktops */
@media (min-width: 991px) and (min-width: 991px) {
#main-content {
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
}
#main-content .distraction {
display: block;
margin: 13px 1%;
height: 500px;
border-radius: 4px;
}
#main-content .blog-post {
-webkit-box-flex: 0;
-webkit-flex: 0 1 32%;
-ms-flex: 0 1 32%;
flex: 0 1 32%;
margin: 13px 1%;
}
#main-content .blog-post:nth-of-type(1) {
min-height: 450px;
}
#main-content .blog-post:nth-of-type(2) {
height: 270px;
}
#main-content .blog-post:nth-of-type(3) {
max-height: 480px;
}
}

/* Ad not present in mobile view */
.distraction {
padding-top: 8%;
display: none;
font-size: 1.375em;
text-align: center;
background: #d4a5bc;
}
.distraction img {
max-width: 80%;
margin-top: 1%;
}

/* ------------- FOOTER -------------- */
footer {
padding: 8px;
font-size: 14px;
font-weight: 300;
text-align: justify;
background: #9DC4F8;
}
Empty file added css/mixins/_blog-post.css
Empty file.
Empty file added css/mixins/_borderbox.css
Empty file.
Empty file added css/mixins/_center.css
Empty file.
Empty file added css/mixins/_default.css
Empty file.
Empty file added css/mixins/_desktop.css
Empty file.
Empty file added css/mixins/_logo.css
Empty file.
Empty file added css/mixins/_tablets.css
Empty file.
Empty file added css/mixins/blog-post.css
Empty file.
Empty file added css/mixins/post-title.css
Empty file.
Empty file.
46 changes: 46 additions & 0 deletions css/reset/_reset.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline; }

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block; }

body {
line-height: 1; }

ol, ul {
list-style: none; }

blockquote, q {
quotes: none; }

blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none; }

table {
border-collapse: collapse;
border-spacing: 0; }
Empty file added css/variables/_colors.css
Empty file.
Empty file added css/variables/_text.css
Empty file.
Binary file added images/amazing-animal-beautiful-beautifull.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
76 changes: 76 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>The Lorem Micro Blog</title>
<link href="https://fonts.googleapis.com/css?family=Roboto+Condensed:300,400,700" rel="stylesheet">
<link rel="stylesheet" href="css/main.css">
</head>
<body>
<header>
<h2 id="logo">The Lorem Micro Blog</h2>
</header>

<section class="intro">
<div class="center">
<h1>The Lorem Micro Blog</h1>
<h4>By Foo Bar</h4>
</div>
</section>
<!-- POST -->
<section id="main-content">
<section class="distraction">
<h3>Check out my perfectly centered ad!</h3>
<img src="images/amazing-animal-beautiful-beautifull.jpg">
</section>

<article class="blog-post">
<h3 class="post-title">A Most Posty Post</h3>
<h4 class="post-date">Written 1/3/2000</h4>

<h5 class="topic">First thoughts...</h5>
<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.</p>

<h5 class="topic">Addtional thoughts...</h5>
<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</p>
</article>

<article class="blog-post">
<h3 class="post-title">Another Posty Post</h3>
<h4 class="post-date">Written 1/2/2000</h4>

<h5 class="topic">Only thoughts...</h5>
<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.</p>
</article>

<article class="blog-post">
<h3 class="post-title">A Posty Post</h3>
<h4 class="post-date">Written 1/1/2000</h4>

<h5 class="topic">Be it resolved</h5>
<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.</p>

<p>Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat</p>
</article>
</section>

<footer>
<p>This copyrighted telecast is provided by authority of the Office of Commissioner of Blogging.
It may not be reproduced or retransmitted in any form and the accounts and description of this game
may not be disseminated without express written consent.</p>
</footer>
</body>
</html>
Loading