This repository has been archived by the owner on Oct 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 739
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
Patrick Kunka
committed
Dec 8, 2016
1 parent
2d6155d
commit 38ae4bc
Showing
3 changed files
with
97 additions
and
0 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,23 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
|
||
<link href="../reset.css" rel="stylesheet"/> | ||
<link href="./style.css" rel="stylesheet"/> | ||
|
||
<title>MixItUp Demo - Float-based Grid</title> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<div class="mix"></div> | ||
<div class="mix"></div> | ||
<div class="mix"></div> | ||
<div class="mix"></div> | ||
<div class="mix"></div> | ||
<div class="mix"></div> | ||
<div class="mix"></div> | ||
<div class="mix"></div> | ||
</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,73 @@ | ||
html, | ||
body { | ||
height: 100%; | ||
background: #f2f2f2; | ||
} | ||
|
||
*, | ||
*:before, | ||
*:after { | ||
box-sizing: border-box; | ||
} | ||
|
||
/* Container | ||
---------------------------------------------------------------------- */ | ||
|
||
.container { | ||
padding: 1rem .5rem; | ||
overflow: hidden; | ||
} | ||
|
||
/* Target Elements | ||
---------------------------------------------------------------------- */ | ||
|
||
.mix { | ||
float: left; | ||
margin: 0 .5rem 1rem; | ||
background: #fff; | ||
border-radius: 2px; | ||
position: relative; | ||
} | ||
|
||
.mix:before { | ||
content: ''; | ||
display: inline-block; | ||
padding-top: 56.25%; | ||
} | ||
|
||
/* Grid Breakpoints | ||
---------------------------------------------------------------------- */ | ||
|
||
/* 2 Columns */ | ||
|
||
.mix { | ||
width: calc(50% - 1rem); | ||
} | ||
|
||
/* 3 Columns */ | ||
|
||
@media screen and (min-width: 541px) { | ||
.mix { | ||
width: calc(100%/3 - 1rem); | ||
} | ||
} | ||
|
||
/* 4 Columns */ | ||
|
||
@media screen and (min-width: 961px) { | ||
.mix, | ||
.gap { | ||
width: calc(100%/4 - 1rem); | ||
} | ||
} | ||
|
||
/* 5 Columns */ | ||
|
||
@media screen and (min-width: 1281px) { | ||
.mix, | ||
.gap { | ||
width: calc(100%/5 - 1rem); | ||
} | ||
} | ||
|
||
|
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