-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a546f91
commit 8729ead
Showing
19 changed files
with
294 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Title</title> | ||
<link rel="stylesheet" href="main.css"> | ||
</head> | ||
<body> | ||
|
||
<header>header</header> | ||
<main> | ||
<article> | ||
<h1>Heading of Article</h1> | ||
<section>section 1</section> | ||
<section> | ||
sdas dfgdf<h2>holy cow we're in section 2</h2>asdas | ||
<p>section 2</p> | ||
</section> | ||
<aside>here's an aside</aside> | ||
<section>section 3</section> | ||
</article> | ||
</main> | ||
|
||
<div>this is my div <a href="https://www.google.com">google</a> <img src="../../../000_img/pup.jpg" alt=""></div> | ||
|
||
<br> | ||
|
||
<a href="https://www.google.com">google</a> <img src="../../../000_img/pup.jpg" alt=""> | ||
|
||
<footer>footer</footer> | ||
|
||
<div id="pf"></div> | ||
|
||
</body> | ||
</html> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
header, main, article, h1, section, aside, h2, p, div, footer { | ||
padding: 0; | ||
margin: 0; | ||
box-sizing: border-box; | ||
} | ||
|
||
* { | ||
border: 1px solid hotpink; | ||
} | ||
|
||
#pf { | ||
position: fixed; | ||
top:0; | ||
right:0; | ||
background-color: red; | ||
height: 100px; | ||
width: 100px; | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Title</title> | ||
<link rel="stylesheet" href="main.css"> | ||
</head> | ||
<body> | ||
|
||
<div> | ||
<span>here is my span</span> | ||
</div> | ||
|
||
</body> | ||
</html> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
span { | ||
border: 1px solid red; | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head lang="en"> | ||
<meta charset="UTF-8"> | ||
<link rel="stylesheet" href="main.css"> | ||
<title></title> | ||
</head> | ||
<body> | ||
<div>one</div> | ||
<div>two</div> | ||
<div id="deviate">three</div> | ||
<div id="manga">four</div> | ||
</body> | ||
</html> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
body { | ||
display: flex; | ||
flex-flow: row nowrap; | ||
align-items: flex-end; | ||
/* formatting */ | ||
height: 500px; | ||
border: 5px solid red; | ||
} | ||
|
||
div { | ||
/* formatting */ | ||
width: 300px; | ||
height: 100px; | ||
margin: 1em; | ||
border: 1px solid red; | ||
background-color: darkgray; | ||
text-align: center; | ||
} | ||
|
||
#deviate { | ||
align-self: flex-start; | ||
/*flex-basis: 500px;*/ | ||
flex-grow: 1; | ||
flex-shrink: 1; | ||
} | ||
|
||
#manga { | ||
flex-shrink: 2; | ||
flex-grow: 2; | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Title</title> | ||
<link rel="stylesheet" href="main.css"> | ||
<link rel="stylesheet" href="mq-600plus.css" media="(min-width:600px)"> | ||
</head> | ||
<body> | ||
|
||
<h1>Here is some text</h1> | ||
|
||
</body> | ||
</html> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
h1 { | ||
color: blue; | ||
font-weight: bold; | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
h1 { | ||
color: red; | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Taco Shop</title> | ||
<link rel="stylesheet" href="main.css"> | ||
<link rel="stylesheet" href="mq-600plus.css" media="(min-width:600px)"> | ||
</head> | ||
<body> | ||
|
||
<main> | ||
<nav> | ||
<a href="#">Home</a> | ||
<a href="#">Menu</a> | ||
<a href="#">Beers</a> | ||
<a href="#">Hours</a> | ||
<a href="#">Eat</a> | ||
</nav> | ||
<section> | ||
<h1>Taco Mucho Grande Calibre</h1> | ||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Adipisci aut, deleniti deserunt dolores earum illum libero modi neque nobis placeat, praesentium quia, reiciendis sapiente? Accusantium fugiat labore libero nemo sit.</p> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Adipisci aut, deleniti deserunt dolores earum illum libero modi neque nobis placeat, praesentium quia, reiciendis sapiente? Accusantium fugiat labore libero nemo sit.</p> | ||
<h2>Two Amigos</h2> | ||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. A, fugit, sequi! Adipisci eaque exercitationem libero maxime mollitia. A aliquam beatae eius ipsam libero obcaecati quaerat quidem ratione. Ab, autem itaque.</p> | ||
<h2>Quality Ingredients</h2> | ||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Adipisci aliquam animi blanditiis, cum doloremque eius, ipsum iste iure laboriosam minima molestiae perspiciatis quos recusandae reiciendis repudiandae sit, unde velit voluptas.</p> | ||
</section> | ||
|
||
</main> | ||
|
||
</body> | ||
</html> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
html, body, main, nav, a, section, h1, p, h2 { | ||
padding: 0; | ||
border: 0; | ||
margin: 0; | ||
box-sizing: border-box; | ||
} | ||
|
||
main { | ||
display: flex; | ||
flex-direction: column; | ||
padding-top: 10px; | ||
border: 5px solid black; | ||
} | ||
|
||
nav { | ||
width: 100%; | ||
text-align: center; | ||
} | ||
|
||
a { | ||
text-decoration: none; | ||
padding: 5px 10px; | ||
border: 1px solid black; | ||
border-radius: 20px; | ||
background-color: rgba(79,188,227,.5); | ||
} | ||
|
||
a:hover { | ||
background-color: rgba(79,188,227,.8); | ||
} | ||
|
||
section { | ||
width: 100%; | ||
padding: 10px; | ||
} |
13 changes: 13 additions & 0 deletions
13
000_temp/09_SPRING-2017/017_flex-media-query/mq-600plus.css
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
main { | ||
flex-direction: row; | ||
} | ||
|
||
nav { | ||
width: 25%; | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
section { | ||
width: 75%; | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Taco Shop</title> | ||
<link rel="stylesheet" href="main.css"> | ||
<link rel="stylesheet" href="mq-600plus.css" media="(min-width:600px)"> | ||
</head> | ||
<body> | ||
|
||
<main> | ||
<nav class="menu"> | ||
<div class="menu-item">tacos</div> | ||
<div class="menu-item">burritos</div> | ||
<div class="menu-item">chimichangas</div> | ||
<div class="menu-item">beer</div> | ||
<div class="menu-item">locations</div> | ||
</nav> | ||
<section> | ||
<h1>Taco Mucho Grande</h1> | ||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Blanditiis corporis doloremque dolores excepturi inventore laudantium non quae, suscipit temporibus voluptatum. Animi ducimus id inventore magni nisi praesentium quis rem repudiandae!</p> | ||
</section> | ||
</main> | ||
|
||
</body> | ||
</html> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
main { | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
nav, section { | ||
border: 1px solid red; | ||
padding: 10px; | ||
} | ||
|
||
.menu { | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: space-between; | ||
border-bottom: none; | ||
} | ||
|
||
.menu-item { | ||
border: none; | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
main { | ||
flex-direction: row; | ||
} | ||
|
||
.menu { | ||
flex-direction: column; | ||
border-bottom: 1px solid red; | ||
border-right: none; | ||
} |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,4 @@ div { | |
border: 1px solid red; | ||
background-color: darkgray; | ||
text-align: center; | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
p { | ||
color: red; | ||
color: green; | ||
} |
This file contains 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