Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added mostly fluid,column drop,layout shifter #32

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
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
66 changes: 66 additions & 0 deletions WinterBatch2018/Damak/Column Drop/columnDrop.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>column drop</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
.big-box{
max-width: 1000px;
margin: 0 auto;
display: flex;
flex-wrap: wrap;
}
.box{
width:100%;
height:200px;
}
.box1{
order: 0;
background-color: blue;
}
.box2{
order: 1;
background-color: dodgerblue;
}
.box3{
order: 2;
background-color: skyblue;
}
@media (min-width: 620px) and (max-width: 900px) {
.box1{
order:1;
width:70%;
}
.box2{
order:0;
width:30%;
}
.box3{
order:2;
}
}
@media (min-width: 900px) {
.box1{
order:1;
width:40%;
}
.box2{
order:0;
width:30%;
}
.box3{
order:2;
width:30%;
}
}
</style>
</head>
<body>
<div class="big-box">
<div class="box box1"></div>
<div class="box box2"></div>
<div class="box box3"></div>
</div>
</body>
</html>
49 changes: 49 additions & 0 deletions WinterBatch2018/Damak/Layout shifter/layoutShifter.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Layout Shifter</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
.box{
width:100%;
}
.box1{
background-color: blue;
height:200px;
}
.box2{
background-color: dodgerblue;
height:200px;
}
.box3{
background-color: skyblue;
height: 320px;
}
@media (min-width:780px){
.big-box{
display:flex;
}
.box{
height:500px;
}
.box1{
width:15%;
}
.box2,.box3{
height: 250px;
width:45%;
}
}
</style>
</head>
<body>
<div class="big-box">
<div class="box box1"></div>
<div class="box">
<div class="box box2"></div>
<div class="box box3"></div>
</div>
</div>
</body>
</html>
89 changes: 89 additions & 0 deletions WinterBatch2018/Damak/Mostly Fluid/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Mostly fluid</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
.big-box{
flex-wrap: wrap;
display: flex;
}
.box{
width: 100%;
height: 300px;
}
.box0{
background-color: darkblue;
}
.box1{
background-color: royalblue;
}
.box2{
background-color: dodgerblue;
}
.box3{
background-color: cadetblue;
}
.box4{
background-color: lightblue;
}
@media (min-width:480px) and (max-width: 600px) {
.box{
width:50%;
}
.box0{
width:100%;
}
}

@media (min-width:600px) and (max-width:900px){
.box0{
width:60%;
}
.box1{
width:40%;
}
.box2{
width:33.33%;
}
.box3{
width:33.33%;
}
.box4{
width:33.33%;
}
}
@media (min-width:900px){
.big-box{
width:50%;
margin: 0px auto;
}
.box0{
width:60%;
}
.box1{
width:40%;
}
.box2{
width:33.33%;
}
.box3{
width:33.33%;
}
.box4{
width:33.33%;
}
}
</style>
</head>
<body>
<div class="big-box">
<div class="box box0"></div>
<div class="box box1"></div>
<div class="box box2"></div>
<div class="box box3"></div>
<div class="box box4"></div>
</div>
</body>
</html>
3 changes: 2 additions & 1 deletion WinterBatch2018/readme.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
Winter Batch 2018
Winter Batch 2018
Damak Bajaj: Mostly Fluid