-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
15 changed files
with
188 additions
and
151 deletions.
There are no files selected for viewing
Binary file not shown.
36 changes: 36 additions & 0 deletions
36
assets/week6/08_ResponsiveDesign/06_simple_flexbox/index.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,36 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>flexbox examples</title> | ||
<link rel="stylesheet" href="style.css"> | ||
<style> | ||
.flex-container { | ||
background: red; | ||
display: flex; | ||
height: 500px; | ||
/* flex-direction: column; */ | ||
} | ||
|
||
div { | ||
background: orange;; | ||
margin: 10px; | ||
padding: 10px; | ||
width: 100px; | ||
} | ||
|
||
</style> | ||
</head> | ||
<body> | ||
<section class="flex-container"> | ||
<div>1</div> | ||
<div>2</div> | ||
<div>3</div> | ||
<div>4</div> | ||
<div>5</div> | ||
<div>6</div> | ||
<div>7</div> | ||
<div>8</div> | ||
<div>9</div> | ||
</section> | ||
</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,40 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>flexbox examples</title> | ||
<link rel="stylesheet" href="style.css"> | ||
<style> | ||
.flex-container { | ||
background: red; | ||
display: flex; | ||
height: 500px; | ||
/* flex-direction: column; */ | ||
/* flex-wrap: wrap; */ | ||
/* justify-content: center; */ | ||
align-items: baseline; | ||
} | ||
|
||
div { | ||
background: orange;; | ||
margin: 10px; | ||
padding: 10px; | ||
width: 100px; | ||
font-size: 30px; | ||
} | ||
|
||
</style> | ||
</head> | ||
<body> | ||
<section class="flex-container"> | ||
<div>1</div> | ||
<div>2</div> | ||
<div>3</div> | ||
<div>4</div> | ||
<div>5</div> | ||
<div>6</div> | ||
<div>7</div> | ||
<div style="font-size: 50px;">8</div> | ||
<div>9</div> | ||
</section> | ||
</body> | ||
</html> |
27 changes: 27 additions & 0 deletions
27
assets/week6/08_ResponsiveDesign/08_flexbox_vertical_align/index.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,27 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>flexbox examples</title> | ||
<link rel="stylesheet" href="style.css"> | ||
<style> | ||
.flex-container { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
height: 300px; | ||
background-color: DodgerBlue; | ||
} | ||
|
||
div { | ||
background: orange; | ||
font-size: 100px; | ||
} | ||
|
||
</style> | ||
</head> | ||
<body> | ||
<section class="flex-container"> | ||
<div>hello</div> | ||
</section> | ||
</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,47 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>flexbox examples</title> | ||
<link rel="stylesheet" href="style.css"> | ||
<style> | ||
.flex-container { | ||
display: flex; | ||
height: 300px; | ||
background-color: DodgerBlue; | ||
} | ||
|
||
div { | ||
background: orange; | ||
font-size: 100px; | ||
padding: 10px; | ||
flex-grow: 1; | ||
} | ||
|
||
.a { | ||
flex-grow: 2; | ||
background: red; | ||
} | ||
|
||
.b { | ||
background: yellow; | ||
} | ||
|
||
.c { | ||
background: green; | ||
} | ||
.d { | ||
background: purple; | ||
} | ||
|
||
|
||
</style> | ||
</head> | ||
<body> | ||
<section class="flex-container"> | ||
<div class="a">1</div> | ||
<div class="b">2</div> | ||
<div class="c">3</div> | ||
<div class="d">4</div> | ||
</section> | ||
</body> | ||
</html> |
38 changes: 38 additions & 0 deletions
38
assets/week6/08_ResponsiveDesign/10_flex_responsive/index.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,38 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>flexbox examples</title> | ||
<link rel="stylesheet" href="style.css"> | ||
<style> | ||
.flex-container { | ||
display: flex; | ||
flex-direction: row; | ||
background: black | ||
} | ||
.flex-item-left { | ||
background: yellow; | ||
flex: 50%; | ||
} | ||
|
||
.flex-item-right { | ||
background: orange; | ||
flex: 50%; | ||
} | ||
|
||
|
||
/* Responsive layout - makes a one column layout instead of a two-column layout */ | ||
@media (max-width: 800px) { | ||
.flex-container { | ||
flex-direction: column; | ||
} | ||
} | ||
|
||
</style> | ||
</head> | ||
<body> | ||
<section class="flex-container"> | ||
<div class="flex-item-left">1</div> | ||
<div class="flex-item-right">2</div> | ||
</section> | ||
</body> | ||
</html> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
33 changes: 0 additions & 33 deletions
33
assets/week6/08_ResponsiveDesign/12_Responsive_AtMedia/index.html
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
66 changes: 0 additions & 66 deletions
66
assets/week6/08_ResponsiveDesign/13_Responsive_FlexBox/index.html
This file was deleted.
Oops, something went wrong.
52 changes: 0 additions & 52 deletions
52
assets/week6/08_ResponsiveDesign/13_Responsive_FlexBox/style.css
This file was deleted.
Oops, something went wrong.